ldas-tools-al  2.5.7
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
LDASTools::Error::LDASUnexpected Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

LDASTools::Error::LDASUnexpected::~LDASUnexpected ( )

Destructor.

Resets the unexpected handler back to its original value

Member Function Documentation

void LDASTools::Error::LDASUnexpected::makeAbort ( bool  Abort)
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.

Parameters
Aborttrue to dump core, false otherwise.
void LDASTools::Error::LDASUnexpected::makeQuiet ( )
static

Turn off logging.

By default, logging is on. Shouldn't be turned off unless you really want to suppress error reporting

void LDASTools::Error::LDASUnexpected::makeVerbose ( )
static

Turn on logging.

By default, logging is on


The documentation for this class was generated from the following files: