|
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. | |
| virtual const char * | what () const throw () |
Returns the error message, as specified by std::exception. | |
Public Attributes | |
| const char * | assertion |
| String describing the assertion. | |
| const char * | filename |
| File where the exception occurred. | |
| const char * | function |
| Function where the exception occurred. | |
| const int | line |
| Line number where the exception occurred. | |
| const char * | msg |
| The error message. | |
| const int | value |
| Value associated with the exception. | |
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.