OPERA
1.0
Open source echelle spectrograph reduction pipeline
|
The opera exception class. More...
#include <operaException.h>
Public Member Functions | |
operaException () | |
operaException (operaErrorCode Errorcode) | |
operaException (string Message, operaErrorCode Errorcode) | |
operaException (string Message, operaErrorCode Errorcode, string Filename, string Function, int Line) | |
~operaException () throw () | |
string | getFormattedMessage () |
Return a string containing a fully formatted error message. | |
void | setErrorCode (const operaErrorCode errcode) |
Set the error code part of an error message. | |
operaErrorCode | getErrorCode () |
Return the error code part of an error message. | |
void | setMessage (string m) |
Return the string part of an error message. | |
string | getMessage () |
Return the string part of an error message. | |
void | setLine (int l) |
Set the line number part of an error message. | |
int | getLine () |
Return the line number part of an error message. | |
void | setFunction (string func) |
Set the function name part of an error message. | |
string | getFunction () |
Return the function name part of an error message. | |
void | setFile (string f) |
Set the file name part of an error message. | |
string | getFile () |
Return the file name part of an error message. |
The opera exception class.
Basic Exception class constructor.
operaException(string Message, operaErrorCode Errorcode, string Filename, string Function, int Line)
operaException(string Message, operaErrorCode Errorcode)
operaException(operaErrorCode Errorcode)
Basic Exception class constructor.
Basic Exception class constructor with an errorcode.
Errorcode |
Basic Exception class constructor with an additional informatonal message and error code.
Message | |
Errorcode |
Basic Exception class constructor with an additional informatonal message, error code, and file, function, line.
Message | |
Errorcode | |
Filename | |
Function | |
Line |
exception
operaException::operaException | ( | ) |
operaException::operaException | ( | operaErrorCode | Errorcode | ) |
operaException::operaException | ( | string | Message, |
operaErrorCode | Errorcode | ||
) |
operaException::operaException | ( | string | Message, |
operaErrorCode | Errorcode, | ||
string | Filename, | ||
string | Function, | ||
int | Line | ||
) |
operaException::~operaException | ( | ) | throw () [inline] |
operaErrorCode operaException::getErrorCode | ( | ) |
Return the error code part of an error message.
string operaException::getErrorCode()
errcode | const operaErrorCode |
operaErrorCode operaException::getErrorCode()
string operaException::getFile | ( | ) |
string operaException::getFormattedMessage | ( | ) |
Return a string containing a fully formatted error message.
operaException::getFormattedMessage()
string operaException::getFunction | ( | ) |
Return the function name part of an error message.
string operaException::getFunction()
int operaException::getLine | ( | ) |
string operaException::getMessage | ( | ) |
void operaException::setErrorCode | ( | const operaErrorCode | errcode | ) |
Set the error code part of an error message.
operaException::setErrorCode(const operaErrorCode errcode)
operaException::setErrorCode(const operaErrorCode errcode)
errcode | const operaErrorCode |
void operaException::setFile | ( | string | func | ) |
Set the file name part of an error message.
operaException::setFile(string func)
func | string |
void operaException::setFunction | ( | string | func | ) |
Set the function name part of an error message.
operaException::setFunction(string func)
func | string |
void operaException::setLine | ( | int | l | ) |
Set the line number part of an error message.
operaException::setLine((int l)
l | int |
void operaException::setMessage | ( | string | m | ) |
Return the string part of an error message.
Set the string part of an error message.
string operaException::getMessage()
m | - message string |
operaException::setMessage(string m)
m | - message string |