#include <exception.h>


Public Member Functions | |
| IOException (const char *message) throw () | |
| IOException (const char *message, const char *fileName, int lineNumber) throw () | |
| IOException (const char *message, const char *functionName, const char *fileName, int lineNumber) throw () | |
| IOException (const IOException &source) throw () | |
| virtual void | addTrace (const char *message) throw () |
| This public method appends the provided text to the internal "trace()" message. | |
| virtual const char * | trace () const throw () |
| This public method returns a C-style string describing the accumulated trace information from the exception throw. | |
| virtual const char * | what () const throw () |
| This public method returns a C-style string describing the condition which caused the exception to be thrown. | |
Protected Member Functions | |
| IOException (const char *message, const char *childClassName) throw () | |
| IOException (const char *message, const char *childClassName, const char *functionName, const char *fileName, int lineNumber) throw () | |
Protected Attributes | |
| char | m_message [DLR_EXCEPTION_MESSAGE_LENGTH] |
| This protected member is a C-style string which holds a message describing the condition which caused the exception to be thrown. | |
| char | m_traceMessage [DLR_EXCEPTION_TRACE_REQUIRED_STACK_LEVELS *DLR_EXCEPTION_TRACE_MESSAGE_LENGTH] |
| This protected member is a C-style string which holds the accumulated exception trace message. | |
| size_t | m_traceMessageIndex |
| This protected member is used to keep track of how much of m_traceMessage has been filled with stack information. | |
This is also an example of how to subclass Exception without using the DLR_DECLARE_EXCEPTION_TYPE macro.
Definition at line 523 of file exception.h.
| void dlr::common::Exception::addTrace | ( | const char * | message | ) | throw () [virtual, inherited] |
This public method appends the provided text to the internal "trace()" message.
Note that the trace message is shared between all dlr::Exception instances, so if you use the addTrace() method of more than one exception at once, the trace message can get garbled.
| message | This argument is a C-style string containing the text to be added. |
Definition at line 230 of file exception.cpp.
References DLR_EXCEPTION_TRACE_MESSAGE_LENGTH, and DLR_EXCEPTION_TRACE_REQUIRED_STACK_LEVELS.
| virtual const char* dlr::common::Exception::trace | ( | ) | const throw () [inline, virtual, inherited] |
This public method returns a C-style string describing the accumulated trace information from the exception throw.
The value of this string is set using calls to the addTrace() method.
Definition at line 401 of file exception.h.
| virtual const char* dlr::common::Exception::what | ( | ) | const throw () [inline, virtual, inherited] |
This public method returns a C-style string describing the condition which caused the exception to be thrown.
The value of this string is set during construction based on the provided constructor arguments.
Definition at line 413 of file exception.h.
char dlr::common::Exception::m_message[DLR_EXCEPTION_MESSAGE_LENGTH] [protected, inherited] |
This protected member is a C-style string which holds a message describing the condition which caused the exception to be thrown.
Definition at line 498 of file exception.h.
char dlr::common::Exception::m_traceMessage[DLR_EXCEPTION_TRACE_REQUIRED_STACK_LEVELS *DLR_EXCEPTION_TRACE_MESSAGE_LENGTH] [protected, inherited] |
This protected member is a C-style string which holds the accumulated exception trace message.
Definition at line 506 of file exception.h.
size_t dlr::common::Exception::m_traceMessageIndex [protected, inherited] |
This protected member is used to keep track of how much of m_traceMessage has been filled with stack information.
Definition at line 513 of file exception.h.
1.5.4