|
| | DtTemplatedException (const char *errorMessage, const DtException *previousException=0) throw () |
| | Default CTOR, exactly the same as the DtException CTOR. More...
|
| |
| | DtTemplatedException (const char *errorMessage, const char *functionName, const char *fileName, unsigned int lineNumber, const DtException *previousException=0) throw () |
| | CTOR, exactly the same as the DtException CTOR. More...
|
| |
| | DtTemplatedException (const DtTemplatedException &other) throw () |
| | Copy CTOR. More...
|
| |
| DtTemplatedException & | operator= (const DtTemplatedException &other) throw () |
| | Assignment Operator. More...
|
| |
| virtual | ~DtTemplatedException () throw () |
| |
| | DtException (const char *errorMessage, const DtException *previousException=0) throw () |
| | Default CTOR takes error message and a previous exception, if there is one. More...
|
| |
| | DtException (const char *errorMessage, const char *functionName, const char *fileName, unsigned int lineNumber, const DtException *previousException=0) throw () |
| | CTOR takes error message, a fileName, Function, and line number which is prefixed to the error message. More...
|
| |
| | DtException (const DtException &other) throw () |
| | Copy CTOR. More...
|
| |
| DtException & | operator= (const DtException &other) throw () |
| | Assignment Operator. More...
|
| |
| virtual | ~DtException () throw () |
| | DTOR. More...
|
| |
| virtual const DtException * | lastException () const throw () |
| | returns a pointer to a copy of the last exception, if there was one. More...
|
| |
| virtual const DtException & | initialException () const throw () |
| | Returns the initial exception in the chain of exceptions. More...
|
| |
| virtual const char * | message () const throw () |
| | Returns a printable description of the error. More...
|
| |
| virtual DtString | what () const throw () |
| | This function is exactly the same as message() except it returned as a DtString. More...
|
| |
| virtual DtString | where () const throw () |
| | Returns a printable location of the error. More...
|
| |
template<int I>
class DtTemplatedException< I >
A Templated version of DtException.
Template instances of this class will have unique types, and also inherit from DtException. This is useful when you want to subclass DtException exclusively because you want a new type of exception, and don't want to change functionality.
Warning: The Template parameter I is an integer, and each template instance of this needs to use a different value for I.