LibCT 2.0
Static Public Member Functions | Private Member Functions

LibCT::ExceptionFactory Class Reference

A class impementing dispatch methods. More...

#include <Exception.h>

List of all members.

Static Public Member Functions

static IOException Create (ExceptionCodeType< ExceptionCodeIO > code, const std::string &desc, const std::string &src, const char *pFile, long lineNum)
static VariableException Create (ExceptionCodeType< ExceptionCodeVariable > code, const std::string &desc, const std::string &src, const char *pFile, long lineNum)

Private Member Functions

 ExceptionFactory ()
 Constructor.

Detailed Description

A class impementing dispatch methods.

We do it like this in order to construct by-value exceptions of a derived type based just on an exception code.


Constructor & Destructor Documentation

LibCT::ExceptionFactory::ExceptionFactory ( ) [inline, private]

Constructor.


Member Function Documentation

static IOException LibCT::ExceptionFactory::Create ( ExceptionCodeType< ExceptionCodeIO >  code,
const std::string &  desc,
const std::string &  src,
const char *  pFile,
long  lineNum 
) [inline, static]

Create an IO Exception

Returns:
An IOException
Parameters:
codeException code type
descException description
srcSource of the exception
pFileFile the exception occured in
lineNumThe line number the exception occured on
static VariableException LibCT::ExceptionFactory::Create ( ExceptionCodeType< ExceptionCodeVariable >  code,
const std::string &  desc,
const std::string &  src,
const char *  pFile,
long  lineNum 
) [inline, static]

Create a Variable Exception

Returns:
A VariableException
Parameters:
codeException code type
descException description
srcSource of the exception
pFileFile the exception occured in
lineNumThe line number the exception occured on

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