#include <exceptions.h>
Inheritance diagram for SPARK::XAssertion:
Public Types | |
typedef enum ExitCodes | TCode |
Locally rename ExitCodes as TCode. | |
Public Member Functions | |
XAssertion (const std::string &type, const std::string &where, const std::string &message, TCode code) | |
Constructor with message specified as std::string. | |
XAssertion (const XAssertion &x) | |
Copy constructor. | |
virtual | ~XAssertion () throw () |
Trivial destructor. | |
virtual const char * | what () const throw () |
Returns a description of the exception as a const char*. | |
const char * | type () const throw () |
Returns type of the exception as const char*. | |
const char * | message () const throw () |
Returns message associated with the exception as const char*. | |
const char * | where () const throw () |
Returns where the exception was thrown from as const char*. | |
TCode | code () const throw () |
Returns code of the exception as TCode. | |
XAssertion & | operator[] (const std::string &where) |
Appends sender's information to Where string following " <- ". | |
XAssertion & | operator() (const std::string &msg) |
Appends msg to Message string on a new line. |
|
Locally rename ExitCodes as TCode.
|
|
Constructor with message specified as std::string.
|
|
Copy constructor.
|
|
Trivial destructor.
|
|
Returns a description of the exception as a const char*.
|
|
Returns type of the exception as const char*.
|
|
Returns message associated with the exception as const char*.
|
|
Returns where the exception was thrown from as const char*.
|
|
Returns code of the exception as TCode.
|
|
Appends sender's information to Where string following " <- ".
|
|
Appends msg to Message string on a new line.
|