Generic error class. More...
#include <dynamic-graph/exception-factory.h>
Public Types | |
enum | ErrorCodeEnum { GENERIC = ExceptionAbstract::FACTORY , UNREFERED_OBJECT , UNREFERED_SIGNAL , UNREFERED_FUNCTION , DYNAMIC_LOADING , SIGNAL_CONFLICT , FUNCTION_CONFLICT , OBJECT_CONFLICT , SYNTAX_ERROR , READ_FILE } |
![]() | |
enum | ExceptionEnum { ABSTRACT = 0 , SIGNAL = 100 , FACTORY = 200 , TRACES = 300 , TOOLS = 700 } |
Categories error code. More... | |
Public Member Functions | |
ExceptionFactory (const ExceptionFactory::ErrorCodeEnum &errcode, const std::string &msg, const char *format,...) | |
ExceptionFactory (const ExceptionFactory::ErrorCodeEnum &errcode, const std::string &msg="") | |
virtual const std::string & | getExceptionName () const |
![]() | |
ExceptionAbstract (const int &code, const std::string &msg="") | |
int | getCode () const |
Access to the error code. | |
const char * | getMessage () const |
Access to the pointer on the array of char related to the error string. More... | |
const std::string & | getStringMessage () const |
Reference access to the error message (can be empty). | |
virtual const char * | what () const throw () |
Static Public Attributes | |
static const std::string | EXCEPTION_NAME |
![]() | |
static const std::string | EXCEPTION_NAME |
Additional Inherited Members | |
![]() | |
int | code |
Error code. More... | |
std::string | message |
Error message (can be empty). | |
Generic error class.
Definition at line 18 of file exception-factory.h.