#include <iso_math_exception.h>
Public Member Functions | |
MathException (base::String pType, base::String pMessage, base::String pSourceFile, base::String pFunction, int pLineNumber) | |
parameter based contstructor | |
MathException (base::String pMessage, base::String pSourceFile, base::String pFunction, int pLineNumber) | |
parameter based contstructor | |
~MathException () | |
destructor | |
Protected Member Functions | |
MathException () | |
default constructur | |
Static Protected Member Functions | |
static void | initExceptionTypes () |
initialize exception types | |
Static Protected Attributes | |
static bool | sExceptionTypesInitialized |
reflects whether exception types have been initialized | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const MathException &pException) |
print exception information |
handling all kinds of math related run time errors
Defines a variety of run time errors, which are specific to the math classes: ERR_VALUE_NOT_POWER_OF_TWO : Value is not a Power of Two ERR_VECTOR_VECTOR_MISMATCH : Vectors Don't Match ERR_VECTOR_MATRIX_MISMATCH : Vector and Matrix Don't Match ERR_MATRIX_MATRIX_MISMATCH : Matrix and Matrix Don't Match ERR_VECTOR_ERROR : Vector ERROR ERR_MATRIX_ERROR : Matrix ERROR ERR_DIMENSION_MISMATCH : Dimension Mismatch Error
Created by Daniel Bisig on 5/17/06. Copyright 2006 Daniel Bisig All rights reserved.
MathException::MathException | ( | base::String | pType, | |
base::String | pMessage, | |||
base::String | pSourceFile, | |||
base::String | pFunction, | |||
int | pLineNumber | |||
) |
parameter based contstructor
pType | type of exception | |
pMessage | addition text describing exception | |
pSourceFile | source code file name in which exception occurred | |
pFunction | function name in which exception occurred | |
pLineNumber | line number within source file at which exception occurred |
MathException::MathException | ( | base::String | pMessage, | |
base::String | pSourceFile, | |||
base::String | pFunction, | |||
int | pLineNumber | |||
) |
parameter based contstructor
pMessage | addition text describing exception | |
pSourceFile | source code file name in which exception occurred | |
pFunction | function name in which exception occurred | |
pLineNumber | line number within source file at which exception occurred |
MathException::~MathException | ( | ) |
destructor
MathException::MathException | ( | ) | [protected] |
default constructur
void MathException::initExceptionTypes | ( | ) | [static, protected] |
initialize exception types
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const MathException & | pException | |||
) | [friend] |
print exception information
bool MathException::sExceptionTypesInitialized [static, protected] |
reflects whether exception types have been initialized