OpenWalnut
1.3.1
|
An exception that gets thrown when preconditions of a function are not met. More...
#include <WPreconditionNotMet.h>
Public Member Functions | |
WPreconditionNotMet (std::string const &msg) | |
Constructor. | |
virtual | ~WPreconditionNotMet () throw () |
Destructor. | |
![]() | |
WException (const std::string &msg=std::string()) | |
Default constructor. | |
WException (const std::exception &e) | |
Copy a std::exception and encapsulate it. | |
virtual | ~WException () throw () |
Destructor. | |
virtual const char * | what () const throw () |
Returns the message string set on throw. | |
std::string | getTrace () const |
Prints the trace of the call chain which caused this exception. | |
std::string | getBacktrace () const |
Returns a call stacktrace. |
Additional Inherited Members | |
![]() | |
static void | disableBacktrace () |
Function disables backtraces. | |
![]() | |
std::string | m_msg |
Message given during throw. | |
std::list< std::string > | m_trace |
Stack trace for identifying the source where this exception came from. | |
![]() | |
static bool | noBacktrace = false |
True if the backtrace should NOT be printed. |
An exception that gets thrown when preconditions of a function are not met.
Definition at line 38 of file WPreconditionNotMet.h.
|
explicit |
|
virtual |
Destructor.
Definition at line 34 of file WPreconditionNotMet.cpp.