Exception
.
It stores context information about an information: What the program tried, when an error occurred, the file where this occured etc. in short: where, why, how it went wrong.
It should rarely be necessary to use this class directly, since most of the exceptions are designed to be used via macros, that will take care of creating context objects for you.
Public Member Functions | |
ErrorContext (const ErrorMessage &clMsg=ErrorMessage(), const char *pszFilename=0, const char *pszFunction=0, unsigned long ulLineNumber=0) | |
Constructor. | |
const ErrorMessage & | getMessage () const |
accessor for the text | |
const char * | getFileName () const |
accessor for the file name | |
const char * | getFunctionName () const |
accessor for the function name | |
unsigned long | getLineNumber () const |
accessor for the line number | |
std::string | asString () const |
formatted for error output of the context to string |
|
Constructor.
|
|
accessor for the text
|
|
accessor for the file name
|
|
accessor for the function name
|
|
accessor for the line number
|
|
formatted for error output of the context to string
|