Exception |
The class Exception (see Figure C-4) is descended from std::exception . It contains a message describing the assertion failure and a SourceLine giving its location.
Exception contains a nested class named Exception::Type . The Type value represents the named Exception type, allowing runtime Exception type identification. For the base Exception class, the Type is CppUnit::Exception .
Exception belongs to the namespace CppUnit . It is declared in Exception.h and implemented in Exception.cpp .
class Exception : public std::exception
A constructor for Exception . The message and sourceLine arguments have default empty values.
A copy constructor.
A destructor.
A copy operator.
Returns a copy of the Exception .
Returns TRUE if the Exception is of the given Type . Used for runtime Exception type identification.
Returns m_sourceLine .
Returns CppUnit::Exception .
Returns m_message as a C-style string.
None.
Assertion failure message ( private ).
SourceLine giving the location of the assertion failure ( private ).