LibCT 2.0
|
A base class for all LibCT exceptions. More...
#include <Exception.h>
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. |
A base class for all LibCT exceptions.
LibCT::Exception::Exception | ( | int | errCode, |
const std::string & | desc, | ||
const std::string & | src, | ||
const char * | pFile, | ||
long | lineNum | ||
) | [inline] |
Constructor.
errCode | Code for the exception |
desc | Exception description |
src | Source of the exception |
pFile | File the exception occured in |
lineNum | The line number the exception occured on |
LibCT::Exception::~Exception | ( | ) | throw () [inline] |
Destructor.
virtual const char* LibCT::Exception::GetErrorCodeString | ( | ) | const [inline, virtual] |
Get 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
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.