MADNESS
0.10.1
|
Base class for exceptions thrown in MADNESS. More...
#include <madness_exception.h>
Public Member Functions | |
MadnessException (const char *m, const char *a, int v, int l, const char *fn, const char *f) | |
Constructor that processes the requisite information. More... | |
virtual const char * | what () const throw () |
Returns the error message, as specified by std::exception . More... | |
Public Attributes | |
const char * | assertion |
String describing the assertion. More... | |
const char * | filename |
File where the exception occurred. More... | |
const char * | function |
Function where the exception occurred. More... | |
const int | line |
Line number where the exception occurred. More... | |
const char * | msg |
The error message. More... | |
const int | value |
Value associated with the exception. More... | |
Base class for exceptions thrown in MADNESS.
Most exceptions thrown in MADNESS should be derived from this.
|
inline |
Constructor that processes the requisite information.
Capturing the line/function/filename info is best done with the macros listed below.
[in] | m | The error message. |
[in] | a | String describing the exception. |
[in] | v | Value associated with the exception. |
[in] | l | Line number where the exception occurred. |
[in] | fn | Function where the exception occurred. |
[in] | f | File where the exception occurred. |
|
inlinevirtual |
Returns the error message, as specified by std::exception
.
References msg.
const char* madness::MadnessException::assertion |
String describing the assertion.
const char* madness::MadnessException::filename |
File where the exception occurred.
const char* madness::MadnessException::function |
Function where the exception occurred.
const int madness::MadnessException::line |
Line number where the exception occurred.
const char* madness::MadnessException::msg |
The error message.
Referenced by what().
const int madness::MadnessException::value |
Value associated with the exception.