#include <exception.h>
Static Public Member Functions | |
static ValueNotDeletedException | create (Int2Type< ERR_VALUE_NOT_DELETED_ERROR > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static SourceCompilationException | create (Int2Type< ERR_SOURCE_COMPILATION_ERROR > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static RuntimeAssertionException | create (Int2Type< ERR_RT_ASSERTION_FAILED > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static RenderingAPIException | create (Int2Type< ERR_RENDERINGAPI_ERROR > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static InternalErrorException | create (Int2Type< ERR_INTERNAL_ERROR > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static ItemIdentityException | create (Int2Type< ERR_DUPLICATE_ITEM > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static ItemIdentityException | create (Int2Type< ERR_ITEM_NOT_FOUND > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static InvalidParametersException | create (Int2Type< ERR_INVALIDPARAMS > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static InvalidStateException | create (Int2Type< ERR_INVALID_STATE > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static IOException | create (Int2Type< ERR_CANNOT_WRITE_TO_FILE > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static FileNotFoundException | create (Int2Type< ERR_FILE_NOT_FOUND > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static UnimplementedException | create (Int2Type< ERR_NOT_IMPLEMENTED > code, const Object *object, const std::string &desc, const std::string &src, const char *file, long line) |
static ValueNotDeletedException | create (Int2Type< ERR_VALUE_NOT_DELETED_ERROR > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static SourceCompilationException | create (Int2Type< ERR_SOURCE_COMPILATION_ERROR > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static RuntimeAssertionException | create (Int2Type< ERR_RT_ASSERTION_FAILED > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static RenderingAPIException | create (Int2Type< ERR_RENDERINGAPI_ERROR > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static InternalErrorException | create (Int2Type< ERR_INTERNAL_ERROR > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static ItemIdentityException | create (Int2Type< ERR_DUPLICATE_ITEM > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static ItemIdentityException | create (Int2Type< ERR_ITEM_NOT_FOUND > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static InvalidParametersException | create (Int2Type< ERR_INVALIDPARAMS > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static InvalidStateException | create (Int2Type< ERR_INVALID_STATE > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static IOException | create (Int2Type< ERR_CANNOT_WRITE_TO_FILE > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static FileNotFoundException | create (Int2Type< ERR_FILE_NOT_FOUND > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
static UnimplementedException | create (Int2Type< ERR_NOT_IMPLEMENTED > code, const Object &object, const std::string &desc, const std::string &src, const char *file, long line) |
Private Member Functions | |
ExceptionFactory () | |
Private constructor, no construction. |
This nicely handles construction of derived Exceptions by value (needed for throwing) without suffering from ambiguity - each code is turned into a distinct type so that methods can be overloaded. This allows EXCEPT to stay small in implementation (desirable since it is embedded) whilst still performing rich code-to-type mapping.
Definition at line 328 of file exception.h.
gpucalc::ExceptionFactory::ExceptionFactory | ( | ) | [inline, private] |
static ValueNotDeletedException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_VALUE_NOT_DELETED_ERROR > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static SourceCompilationException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_SOURCE_COMPILATION_ERROR > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
Definition at line 496 of file exception.h.
00498 { 00499 return SourceCompilationException(code.number, *object, desc, src, file, line); 00500 }
static RuntimeAssertionException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_RT_ASSERTION_FAILED > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
Definition at line 489 of file exception.h.
00491 { 00492 return RuntimeAssertionException(code.number, *object, desc, src, file, line); 00493 }
static RenderingAPIException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_RENDERINGAPI_ERROR > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static InternalErrorException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_INTERNAL_ERROR > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static ItemIdentityException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_DUPLICATE_ITEM > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static ItemIdentityException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_ITEM_NOT_FOUND > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static InvalidParametersException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_INVALIDPARAMS > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
Definition at line 454 of file exception.h.
00456 { 00457 return InvalidParametersException(code.number, *object, desc, src, file, line); 00458 }
static InvalidStateException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_INVALID_STATE > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static IOException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_CANNOT_WRITE_TO_FILE > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static FileNotFoundException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_FILE_NOT_FOUND > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static UnimplementedException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_NOT_IMPLEMENTED > | code, | |
const Object * | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static ValueNotDeletedException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_VALUE_NOT_DELETED_ERROR > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static SourceCompilationException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_SOURCE_COMPILATION_ERROR > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
Definition at line 411 of file exception.h.
00413 { 00414 return SourceCompilationException(code.number, object, desc, src, file, line); 00415 }
static RuntimeAssertionException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_RT_ASSERTION_FAILED > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static RenderingAPIException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_RENDERINGAPI_ERROR > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static InternalErrorException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_INTERNAL_ERROR > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static ItemIdentityException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_DUPLICATE_ITEM > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static ItemIdentityException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_ITEM_NOT_FOUND > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static InvalidParametersException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_INVALIDPARAMS > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
Definition at line 369 of file exception.h.
00371 { 00372 return InvalidParametersException(code.number, object, desc, src, file, line); 00373 }
static InvalidStateException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_INVALID_STATE > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static IOException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_CANNOT_WRITE_TO_FILE > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static FileNotFoundException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_FILE_NOT_FOUND > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |
static UnimplementedException gpucalc::ExceptionFactory::create | ( | Int2Type< ERR_NOT_IMPLEMENTED > | code, | |
const Object & | object, | |||
const std::string & | desc, | |||
const std::string & | src, | |||
const char * | file, | |||
long | line | |||
) | [inline, static] |