| CppUnit project page | FAQ |
Exceptions thrown by failed assertions. More...
#include <Exception.h>


Public Member Functions | |
| Exception (const Message &message=Message(), const SourceLine &sourceLine=SourceLine()) | |
| Constructs the exception with the specified message and source location. More... | |
| Exception (const Exception &other) | |
| Constructs a copy of an exception. More... | |
| virtual | ~Exception () throw () |
| Destructs the exception. More... | |
| Exception & | operator= (const Exception &other) |
| Performs an assignment. More... | |
| const char * | what () const throw () |
| Returns descriptive message. More... | |
| SourceLine | sourceLine () const |
| Location where the error occured. More... | |
| Message | message () const |
| Message related to the exception. More... | |
| void | setMessage (const Message &message) |
| Set the message. More... | |
| virtual Exception * | clone () const |
| Clones the exception. More... | |
Protected Types | |
| typedef std::exception | SuperClass |
Protected Attributes | |
| Message | m_message |
| SourceLine | m_sourceLine |
| std::string | m_whatMessage |
Exceptions thrown by failed assertions.
Exception is an exception that serves descriptive strings through its what() method
|
protected |
| Exception::Exception | ( | const Message & | message = Message(), |
| const SourceLine & | sourceLine = SourceLine() |
||
| ) |
Constructs the exception with the specified message and source location.
| message | Message associated to the exception. |
| sourceLine | Source location related to the exception. |
| CPPUNIT_NS_BEGIN Exception::Exception | ( | const Exception & | other | ) |
Constructs a copy of an exception.
| other | Exception to copy. |
|
virtual | |||||||||||||
Destructs the exception.
|
virtual |
Clones the exception.
| void Exception::setMessage | ( | const Message & | message | ) |
Set the message.
| SourceLine Exception::sourceLine | ( | ) | const |
Location where the error occured.
| const char * Exception::what | ( | ) | const | |
| throw | ( | |||
| ) | ||||
Returns descriptive message.
|
protected |
|
protected |
|
protected |
|
Send comments to: CppUnit Developers |