libStatGen Software 1
|
Class that controls the handling of errors. More...
#include <ErrorHandler.h>
Public Types | |
enum | HandlingType { EXCEPTION , ABORT , RETURN } |
This specifies how this class should respond to errors. More... | |
Public Member Functions | |
ErrorHandler () | |
Constructor. | |
~ErrorHandler () | |
Destructor. | |
Static Public Member Functions | |
static void | handleError (const char *message, HandlingType handlingType=EXCEPTION) |
Handle an error based on the error handling type. | |
Class that controls the handling of errors.
Definition at line 24 of file ErrorHandler.h.
This specifies how this class should respond to errors.
Enumerator | |
---|---|
EXCEPTION | throw an exception for the error |
ABORT | exit the program on the error |
RETURN | just return failure on the error |
Definition at line 29 of file ErrorHandler.h.
ErrorHandler::ErrorHandler | ( | ) |
ErrorHandler::~ErrorHandler | ( | ) |
|
static |
Handle an error based on the error handling type.
Definition at line 36 of file ErrorHandler.cpp.
References ABORT, EXCEPTION, and RETURN.
Referenced by CigarHelper::softClipBeginByRefPos(), and CigarHelper::softClipEndByRefPos().