Class Index | Cross Index | Namespace Index |
A singleton class to initialise unexpected()
Contained in: General
Derived from:
none
Derived by:
none
#include "general/LDASUnexpected.hh"
public function member index: |
|||
~LDASUnexpected | (); | Destructor | |
static void | makeAbort | (bool Abort); | Specify if process should abort (thereby providing a core) |
static void | makeQuiet | (); | Turn off logging |
static void | makeVerbose | (); | Turn on logging |
private function member index: |
|||
LDASUnexpected | (); | Constructor (private) | |
static void | unexpected | (); | The replacement for unexpected() |
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.
No instances of this object may be created outside of the class itself
Resets the unexpected handler back to its original value
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.
Parameters:
Parameter | Description |
bool Abort | true to dump core, false otherwise. |
By default, logging is on. Shouldn't be turned off unless you really want to suppress error reporting
By default, logging is on
Having a static instance of the class ensures that initialisation is done during library initialisation. It would not be thread-safe to allow initialisation after main() has been entered.