Public Member Functions | |
| Exception (Result number, const std::string &description, const std::string &source) | |
| Exception (Result number, const std::string &description, const std::string &source, char *file, long line) | |
| Exception (const Exception &rhs) | |
Static Public Member Functions | |
| static void | Assert (bool exp, const char *szExp, const char *szFilename, const char *szFuncName, int iLineNum) |
Definition at line 57 of file Exception.h.
| nrEngine::Exception::Exception | ( | Result | number, | |
| const std::string & | description, | |||
| const std::string & | source | |||
| ) |
Default constructor.
| number | Error code. Can be combined of more than one error code | |
| description | Description of the esception | |
| source | Where was exception thrown (function name) |
Definition at line 22 of file Exception.cpp.
| nrEngine::Exception::Exception | ( | Result | number, | |
| const std::string & | description, | |||
| const std::string & | source, | |||
| char * | file, | |||
| long | line | |||
| ) |
Advanced constructor.
| number | Error code. Can be combined of more than one error code | |
| description | Description of the esception | |
| source | Where was exception thrown (function name) | |
| file | In which file was the exception | |
| line | Where was the exception thrown |
Definition at line 30 of file Exception.cpp.
| nrEngine::Exception::Exception | ( | const Exception & | rhs | ) |
Copy constructor.
Definition at line 43 of file Exception.cpp.
References description, file, lineNumber, number, and source.
| void nrEngine::Exception::Assert | ( | bool | exp, | |
| const char * | szExp, | |||
| const char * | szFilename, | |||
| const char * | szFuncName, | |||
| int | iLineNum | |||
| ) | [static] |
Assert function declared as static to allow using without initialisation of the object itself. This function will generate a formatted error message and will log it.
| exp | Boolean expression to be checked (false = fail) | |
| szExp | Error message | |
| szFilename | Filename of the file where error happens | |
| szFuncName | Name of the function where assertion is checked | |
| iLineNum | Line number where assert fails |
Definition at line 84 of file Exception.cpp.
1.5.1