|
| | DtException (const char *errorMessage, const DtException *previousException=0) noexcept |
| | Default CTOR takes error message and a previous exception, if there is one. More...
|
| |
| | DtException (const DtString &errorMessage, const DtException *previousException=0) noexcept |
| |
| | DtException (const char *errorMessage, const char *functionName, const char *fileName, unsigned int lineNumber, const DtException *previousException=0) noexcept |
| | CTOR takes error message, a fileName, Function, and line number which is prefixed to the error message. More...
|
| |
| | DtException (const DtString &errorMessage, const char *functionName, const DtString &fileName, unsigned int lineNumber, const DtException *previousException=0) noexcept |
| |
| | DtException (const DtException &other) noexcept |
| | Copy CTOR. More...
|
| |
| DtException & | operator= (const DtException &other) noexcept |
| | Assignment Operator. More...
|
| |
| virtual | ~DtException () noexcept |
| | DTOR. More...
|
| |
| virtual const DtException * | lastException () const noexcept |
| | returns a pointer to a copy of the last exception, if there was one. More...
|
| |
| virtual const DtException & | initialException () const noexcept |
| | Returns the initial exception in the chain of exceptions. More...
|
| |
| virtual const char * | message () const noexcept |
| | Returns a printable description of the error. More...
|
| |
| virtual DtString | what () const noexcept |
| | This function is exactly the same as message() except it returned as a DtString. More...
|
| |
| virtual DtString | where () const noexcept |
| | Returns a printable location of the error. More...
|
| |
DtException is the generic MAK Exception from which all other Exceptions thrown by MAK products are derived.
DtExceptions must be copyable. DtExceptions must not throw.
Exceptions can be chained, that is, a new exception can be created and passed a pointer to an old exception, to create an exception trace. A pointer is passed as its acceptable to pass no exception.