Inheritance diagram for DefectixError::ErrorMgr:
Public Member Functions | |
ErrorMgr (const bool verbose) | |
Standard constructor. | |
const errorCodes | getError () const |
returns the current error code | |
void | resetError () |
reset the error code to NO_ERROR | |
const errorCodes | printError () const |
Print a message corresponding to the current error. | |
Protected Member Functions | |
const errorCodes | setError (std::string c, errorCodes e) |
Set error value and message. | |
void | setFitsError (int status) |
Set error value when cfitsio crashes. | |
Protected Attributes | |
errorCodes | _error |
Current error code. | |
bool | _verbose |
Verbose mode. |
The class handles errors and messages
|
Standard constructor. if verbose is true, the error manager outputs debug messages.
|
|
Set error value and message. The function sets the error code and prints a string in debug message.
|
|
Set error value when cfitsio crashes. The function prints the cfitsio error message and then set the error code.
|
|
Current error code. The error code corresponds to the first error. |
|
Verbose mode. If _verbose is true, debug messages are printed. |