ldas-tools-al
2.6.0
|
A singleton class to initialise unexpected() More...
#include <LDASUnexpected.hh>
Public Member Functions | |
~LDASUnexpected () | |
Destructor. More... | |
Static Public Member Functions | |
static void | makeAbort (bool Abort) |
Specify if process should abort (thereby providing a core) More... | |
static void | makeQuiet () |
Turn off logging. More... | |
static void | makeVerbose () |
Turn on logging. More... | |
A singleton class to initialise unexpected()
Linking against a library that includes this header file will automatically turn on special handling for bad exceptions.
If used inside an LDAS API, unexpected exceptions will be logged to the API's log by default. This indicates that a function threw an exception which was not in its exception specification.
LDASTools::Error::LDASUnexpected::~LDASUnexpected | ( | ) |
Destructor.
Resets the unexpected handler back to its original value
|
static |
Specify if process should abort (thereby providing a core)
By default, aborting is turned off. By passing true, the library will abort allowing for stack tracing with a debugger. This will allow for faster location of Unexpected exceptions.
Abort | true to dump core, false otherwise. |
|
static |
Turn off logging.
By default, logging is on. Shouldn't be turned off unless you really want to suppress error reporting
|
static |
Turn on logging.
By default, logging is on