|
|
This is the base class of all TSE3 errors.
The Error class provides a reason code for each type of error that can be raised, although subclasses are also used to distinguish the type of the error. Each subclass may have more than one reason code associated with it. The reason codes are provided by the ErrorCodes enum type.
The rationale for the reason codes, rather than use of pure subclassing to denote error type, is to allow the application to provide internationalised error messages for the user. It is easier to lookup a string via an integer reason code than convert a class type to some error string. (See ErrorCode and errString() for more information on this.)
Error (ErrorCode reason)
| Error |
Creates an Error object with the specified reason code.
Parameters:
reason | Reason code for this Error |
~Error ()
throw () | ~Error |
ErrorCode reason ()
| reason |
[const]
Returns the ErrorCode for this Error object.
Use errString to get a string representation of this error.
const char * what ()
throw() | what |
[const virtual]
See also: errString