#include <Error.h>
Inheritance diagram for TSE3::Error:
Public Member Functions | |
Error (ErrorCode reason) | |
~Error () throw () | |
ErrorCode | reason () const |
virtual const char * | what () const throw () |
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 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.)
|
Creates an Error object with the specified reason code.
|
|
|
|
Returns the ErrorCode for this Error object. Use errString to get a string representation of this error. |
|
|