|
CXI
|
Constructs an exception object. More...
Public Member Functions | |
| Exception (const Exception &exc) | |
| Exception (const char *where, int err) | |
| Exception (const char *where, int line, int err) | |
| Exception (const char *where, const char *err_str) | |
| Exception (const char *where, int line, const char *err_str) | |
| Exception (const char *where, int line, int err, const char *err_str) | |
| Exception & | operator= (const Exception &exc) |
| virtual | ~Exception (void) |
Public Attributes | |
| int | err |
| error code | |
| char * | err_str |
| plain text error message | |
| char * | where |
| name of function where error occurs | |
| int | line |
| line number in source code | |
Constructs an exception object.
The following example illustrates the usage of the Exception class:
| Exception | ( | const char * | where, |
| int | err | ||
| ) |
Creates exception from given error code.
| where | name of function or method where error occurs |
| err | error code |
Note:
| Exception | ( | const char * | where, |
| int | line, | ||
| int | err | ||
| ) |
Creates exception from given error code.
| where | name of function or method where error occurs |
| line | line number in source code |
| err | error code |
Note:
| Exception | ( | const char * | where, |
| const char * | err_str | ||
| ) |
Creates exception with the given error message.
| where | name of function or method where error occurs |
| err_str | error message |
| Exception | ( | const char * | where, |
| int | line, | ||
| const char * | err_str | ||
| ) |
Creates exception with the given error message.
| where | name of function or method where error occurs |
| line | line number in source code |
| err_str | error message |
| Exception | ( | const char * | where, |
| int | line, | ||
| int | err, | ||
| const char * | err_str | ||
| ) |
Creates exception from given error code and error string.
| where | name of function or method where error occurs |
| line | line number in source code |
| err | error code |
| err_str | error message |
Note:
|
virtual |
Destructor