#include <exceptions.h>
Inheritance diagram for Exception:
Public Member Functions | |
Exception (const string &errMessage="", const char *fileName="", int lineNumber=0, const char *funcName="") | |
Default constructor. | |
virtual | ~Exception () throw () |
Destructor. | |
virtual const char * | what () throw () |
Returns a C-style character string describing the general cause of the current error. | |
virtual void | PrintErr () const |
Prints error message to the standard error (debugging purposes). | |
virtual void | ShowErrWindow () const |
Shows window containing error message for the end user. | |
virtual void | ShowError () const |
Shows error message. | |
virtual const char * | GetExceptionName () const |
Returns the name of the exception. | |
Static Public Member Functions | |
static void | ShowStdExceptionErr (const exception &stdException) |
Shows standard exception error message. | |
Private Attributes | |
const string | message |
Error message that will be shown to the user. | |
const string | file |
File from which the exception was thrown (debugging). | |
const int | line |
Line in which the exception was thrown (debugging). | |
const string | func |
Function from which the exception was thrown (debugging). |
Exception::Exception | ( | const string & | errMessage = "" , |
|
const char * | fileName = "" , |
|||
int | lineNumber = 0 , |
|||
const char * | funcName = "" | |||
) | [inline, explicit] |
Default constructor.
errMessage | Error message that will be shown to the user | |
fileName | File from which the exception was thrown (debugging) | |
lineNumber | Line in which the exception was thrown (debugging) | |
funcName | Function from which the exception was thrown (debugging) |
virtual Exception::~Exception | ( | ) | throw () [inline, virtual] |
Destructor.
virtual const char* Exception::GetExceptionName | ( | ) | const [inline, virtual] |
Returns the name of the exception.
void Exception::PrintErr | ( | ) | const [virtual] |
Prints error message to the standard error (debugging purposes).
void Exception::ShowError | ( | ) | const [virtual] |
Shows error message.
Display format depends on the debugging configuration. If debugging mode is turned on, text message (on the standard error) will be shown. If it's off, graphics window will be shown instead.
void Exception::ShowErrWindow | ( | ) | const [virtual] |
Shows window containing error message for the end user.
void Exception::ShowStdExceptionErr | ( | const exception & | stdException | ) | [static] |
Shows standard exception error message.
Display format depends on the debugging configuration. If debugging mode is turned on, text message (on the standard error) will be shown. If it's off, graphics window will be shown instead.
virtual const char* Exception::what | ( | ) | throw () [inline, virtual] |
Returns a C-style character string describing the general cause of the current error.
const string Exception::file [private] |
File from which the exception was thrown (debugging).
const string Exception::func [private] |
Function from which the exception was thrown (debugging).
const int Exception::line [private] |
Line in which the exception was thrown (debugging).
const string Exception::message [private] |
Error message that will be shown to the user.