codaObject::CodaException Class Reference

Basic codaObject exception class contains description and code. More...

#include <CodaException.hxx>

List of all members.

Public Member Functions

 CodaException (const string &c)
 Constructor with description.
 CodaException (const string &c, int i)
 Constructor with description and code.
virtual ~CodaException (void) throw ()
 Destructor does nothing.
virtual void setReturnCode (int i) throw ()
 Sets return code.
virtual int getReturnCode (void) const throw ()
 Gets return code.
virtual string toString (void) const throw ()
 Converts exception to string.
virtual const char * what (void) const throw ()
 Converts exception to const char*.

Detailed Description

Basic codaObject exception class contains description and code.

Definition at line 38 of file CodaException.hxx.


Constructor & Destructor Documentation

CodaException::CodaException ( const string &  d  ) 

Constructor with description.

Parameters:
d Description.

Definition at line 32 of file CodaException.cc.

CodaException::CodaException ( const string &  d,
int  code 
)

Constructor with description and code.

Parameters:
d Description.
code Code.

Definition at line 43 of file CodaException.cc.

CodaException::~CodaException ( void   )  throw () [virtual]

Destructor does nothing.

Definition at line 52 of file CodaException.cc.


Member Function Documentation

int CodaException::getReturnCode ( void   )  const throw () [virtual]

Gets return code.

Returns:
Code.

Definition at line 74 of file CodaException.cc.

void CodaException::setReturnCode ( int  code  )  throw () [virtual]

Sets return code.

Parameters:
code Code

Definition at line 62 of file CodaException.cc.

string CodaException::toString ( void   )  const throw () [virtual]

Converts exception to string.

Returns:
String representing exception.

Definition at line 87 of file CodaException.cc.

Referenced by what().

const char * CodaException::what ( void   )  const throw () [virtual]

Converts exception to const char*.

Returns:
const char* representing exception.

Definition at line 102 of file CodaException.cc.

References toString().


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

Generated on 4 Feb 2014 for CodaObject by  doxygen 1.6.1