OPERA  1.0
Open source echelle spectrograph reduction pipeline
operaException Class Reference

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.

Detailed Description

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)

operaException

Author:
Doug Teeple

Basic Exception class constructor.

Returns:
none

Basic Exception class constructor with an errorcode.

Parameters:
Errorcode
Returns:
none

Basic Exception class constructor with an additional informatonal message and error code.

Parameters:
Message
Errorcode
Returns:
none

Basic Exception class constructor with an additional informatonal message, error code, and file, function, line.

Parameters:
Message
Errorcode
Filename
Function
Line
Returns:
none

exception

Returns:
none
none

Constructor & Destructor Documentation

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]

Member Function Documentation

operaErrorCode operaException::getErrorCode ( )

Return the error code part of an error message.

string operaException::getErrorCode()

Parameters:
errcodeconst operaErrorCode
Returns:
string

operaErrorCode operaException::getErrorCode()

Returns:
operaErrorCode
string operaException::getFile ( )

Return the file name part of an error message.

string operaException::getFile()

Returns:
string
string operaException::getFormattedMessage ( )

Return a string containing a fully formatted error message.

operaException::getFormattedMessage()

Returns:
string

Here is the call graph for this function:

string operaException::getFunction ( )

Return the function name part of an error message.

string operaException::getFunction()

Returns:
string
int operaException::getLine ( )

Return the line number part of an error message.

string operaException::getLine()

Returns:
int
string operaException::getMessage ( )

Return the string part of an error message.

string operaException::getMessage()

Returns:
string
void operaException::setErrorCode ( const operaErrorCode  errcode)

Set the error code part of an error message.

operaException::setErrorCode(const operaErrorCode errcode)

Returns:
void

operaException::setErrorCode(const operaErrorCode errcode)

Parameters:
errcodeconst operaErrorCode
Returns:
void
void operaException::setFile ( string  func)

Set the file name part of an error message.

operaException::setFile(string func)

Parameters:
funcstring
Returns:
void
void operaException::setFunction ( string  func)

Set the function name part of an error message.

operaException::setFunction(string func)

Parameters:
funcstring
Returns:
void
void operaException::setLine ( int  l)

Set the line number part of an error message.

operaException::setLine((int l)

Parameters:
lint
Returns:
void
void operaException::setMessage ( string  m)

Return the string part of an error message.

Set the string part of an error message.

string operaException::getMessage()

Parameters:
m- message string
Returns:
string

operaException::setMessage(string m)

Parameters:
m- message string
Returns:
void

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