LibCT 2.0
|
A class impementing dispatch methods. More...
#include <Exception.h>
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. |
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.
LibCT::ExceptionFactory::ExceptionFactory | ( | ) | [inline, private] |
Constructor.
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
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