EpcTools
An event based multi-threaded C++ development framework.
|
Defines base class for exceptions and declaration helper macros. More...
Go to the source code of this file.
Classes | |
class | EError |
The base class for exceptions derived from std::exception. More... | |
Macros | |
#define | DECLARE_ERR_MAP(__name__) EErrorMapEntry __name__[]; |
#define | BGN_ERR_MAP(__name__) EErrorMapEntry __name__[] = { |
Starts the definition of the error map in the code. More... | |
#define | ERR_MAP_ENTRY(id, err) {id, err}, |
Adds an error map entry. More... | |
#define | END_ERR_MAP() |
Ends (closes) the error map definition. More... | |
#define | DECLARE_ERROR(__e__) |
Declares exception class derived from EError with no constructor parameters. More... | |
#define | DECLARE_ERROR_ADVANCED(__e__) |
Declares exception class derived from EError with no constructor parameters and developer defined constructor body. More... | |
#define | DECLARE_ERROR_ADVANCED2(__e__) |
Declares exception class derived from EError with an Int as a constructor parameter and developer defined constructor body. More... | |
#define | DECLARE_ERROR_ADVANCED3(__e__) |
Declares exception class derived from EError with an Int and a const char * as constructor parameters and developer defined constructor body. More... | |
#define | DECLARE_ERROR_ADVANCED4(__e__) |
Declares exception class derived from EError with an const char* as a constructor parameter and developer defined constructor body. More... | |
Defines base class for exceptions and declaration helper macros.
#define BGN_ERR_MAP | ( | __name__ | ) | EErrorMapEntry __name__[] = { |
Starts the definition of the error map in the code.
#define DECLARE_ERR_MAP | ( | __name__ | ) | EErrorMapEntry __name__[]; |
Declares the error map in the EError derived object. The error map is used in conjunction with the static cpStr EError::getError() method to return a description of an application specific error code.
#define DECLARE_ERROR | ( | __e__ | ) |
#define DECLARE_ERROR_ADVANCED | ( | __e__ | ) |
#define DECLARE_ERROR_ADVANCED2 | ( | __e__ | ) |
#define DECLARE_ERROR_ADVANCED3 | ( | __e__ | ) |
#define DECLARE_ERROR_ADVANCED4 | ( | __e__ | ) |
#define END_ERR_MAP | ( | ) |
Ends (closes) the error map definition.
#define ERR_MAP_ENTRY | ( | id, | |
err | |||
) | {id, err}, |
Adds an error map entry.