libcrn
3.9.5
A document image processing library
|
Base class for exceptions. More...
#include <CRNException.h>
Public Member Functions | |
Exception () noexcept | |
Default constructor. More... | |
Exception (const StringUTF8 &msg) noexcept | |
Constructor with a message. More... | |
Exception (const char *msg) noexcept | |
Constructor with a message. More... | |
Exception (const Exception &ex) noexcept | |
Copy constructor. More... | |
virtual | ~Exception () noexceptoverride |
Destructor. More... | |
const std::string & | GetContext () const noexcept |
String containing the call stack at the moment of throw. More... | |
const std::string & | GetMessage () const noexcept |
String containing a description of the exception. More... | |
virtual const char * | what () const noexceptoverride |
String containing a description of the exception. More... | |
Static Public Member Functions | |
static void | SetDefaultHandler () |
Sets the default exception handler to print message and context to the standard error. More... | |
static bool & | TraceStack () |
Shall the stack be traced at each exception thrown? (very slow) More... | |
Base class for exceptions.
Definition at line 39 of file CRNException.h.
|
explicitnoexcept |
|
explicitnoexcept |
Constructor with a message.
Constructor with a message
[in] | msg | the message describing the exception |
Definition at line 122 of file CRNException.cpp.
|
explicitnoexcept |
Constructor with a message.
Constructor with a message
[in] | msg | the message describing the exception |
Definition at line 131 of file CRNException.cpp.
|
explicitnoexcept |
Copy constructor.
Constructor with a message
[in] | ex | the message describing the exception |
Definition at line 140 of file CRNException.cpp.
|
overridevirtualnoexcept |
|
noexcept |
String containing the call stack at the moment of throw.
String containing the call stack at the moment of throw
Definition at line 153 of file CRNException.cpp.
|
noexcept |
String containing a description of the exception.
String containing a description of the exception
Definition at line 159 of file CRNException.cpp.
|
static |
Sets the default exception handler to print message and context to the standard error.
Sets the default exception handler to print message and context to the standard error
Definition at line 219 of file CRNException.cpp.
|
static |
Shall the stack be traced at each exception thrown? (very slow)
Shall the stack be traced at each exception thrown (default: false).
Definition at line 107 of file CRNException.cpp.
|
overridevirtualnoexcept |
String containing a description of the exception.
String containing a description of the exception
Definition at line 165 of file CRNException.cpp.