LibCT 2.0
Public Member Functions | Protected Attributes

LibCT::Exception Class Reference

A base class for all LibCT exceptions. More...

#include <Exception.h>

Inheritance diagram for LibCT::Exception:
LibCT::IOException LibCT::VariableException

List of all members.

Public Member Functions

 Exception (int errCode, const std::string &desc, const std::string &src, const char *pFile, long lineNum)
 Constructor.
 ~Exception () throw ()
 Destructor.
const char * what () const throw ()
virtual const char * GetErrorCodeString () const

Protected Attributes

int m_ErrCode
 Exception code.
std::string m_Desc
 Exception description.
std::string m_Src
 Source of the exception.
const char * m_pFile
 File the exception occured in.
long m_LineNum
 Line the exception occured on.
std::string m_FullDesc
 Nicely formatted full description of the error.

Detailed Description

A base class for all LibCT exceptions.


Constructor & Destructor Documentation

LibCT::Exception::Exception ( int  errCode,
const std::string &  desc,
const std::string &  src,
const char *  pFile,
long  lineNum 
) [inline]

Constructor.

Parameters:
errCodeCode for the exception
descException description
srcSource of the exception
pFileFile the exception occured in
lineNumThe line number the exception occured on
LibCT::Exception::~Exception ( ) throw () [inline]

Destructor.


Member Function Documentation

virtual const char* LibCT::Exception::GetErrorCodeString ( ) const [inline, virtual]

Get the string representation of the error code

Returns:
The string representation of the error code

Reimplemented in LibCT::IOException, and LibCT::VariableException.

const char* LibCT::Exception::what ( ) const throw () [inline]

Get the full description

Returns:
The full description of the exception

Member Data Documentation

std::string LibCT::Exception::m_Desc [protected]

Exception description.

int LibCT::Exception::m_ErrCode [protected]

Exception code.

std::string LibCT::Exception::m_FullDesc [protected]

Nicely formatted full description of the error.

long LibCT::Exception::m_LineNum [protected]

Line the exception occured on.

const char* LibCT::Exception::m_pFile [protected]

File the exception occured in.

std::string LibCT::Exception::m_Src [protected]

Source of the exception.


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