Exceptions raised when an error related to signals happen. More...
#include <exception-signal.h>
Public Types | |
enum | ErrorCodeEnum { GENERIC = ExceptionAbstract::SIGNAL, READWRITE_LOCK, COPY_NOT_INITIALIZED, NOT_INITIALIZED, PLUG_IMPOSSIBLE, SET_IMPOSSIBLE, BAD_CAST } |
Public Types inherited from dynamicgraph::ExceptionAbstract | |
enum | ExceptionEnum { ABSTRACT = 0, SIGNAL = 100, FACTORY = 200, TRACES = 300, TOOLS = 700 } |
Categories error code. More... | |
Public Member Functions | |
ExceptionSignal (const ExceptionSignal::ErrorCodeEnum &errcode, const std::string &msg, const char *format,...) | |
ExceptionSignal (const ExceptionSignal::ErrorCodeEnum &errcode, const std::string &msg="") | |
virtual const std::string & | getExceptionName () const |
virtual | ~ExceptionSignal () throw () |
Public Member Functions inherited from dynamicgraph::ExceptionAbstract | |
ExceptionAbstract (const int &code, const std::string &msg="") | |
int | getCode () const |
Access to the error code. More... | |
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). More... | |
virtual const char * | what () const throw () |
virtual | ~ExceptionAbstract () throw () |
Static Public Attributes | |
static const std::string | EXCEPTION_NAME = "Signal" |
Static Public Attributes inherited from dynamicgraph::ExceptionAbstract | |
static const std::string | EXCEPTION_NAME = "Abstract" |
Additional Inherited Members | |
Protected Attributes inherited from dynamicgraph::ExceptionAbstract | |
int | code |
Error code. More... | |
std::string | message |
Error message (can be empty). More... | |
Exceptions raised when an error related to signals happen.
Definition at line 19 of file exception-signal.h.
Enumerator | |
---|---|
GENERIC | |
READWRITE_LOCK | |
COPY_NOT_INITIALIZED | |
NOT_INITIALIZED | |
PLUG_IMPOSSIBLE | |
SET_IMPOSSIBLE | |
BAD_CAST |
Definition at line 21 of file exception-signal.h.
|
explicit |
Definition at line 23 of file exception-signal.cpp.
ExceptionSignal::ExceptionSignal | ( | const ExceptionSignal::ErrorCodeEnum & | errcode, |
const std::string & | msg, | ||
const char * | format, | ||
... | |||
) |
Definition at line 27 of file exception-signal.cpp.
|
inlinevirtual |
Definition at line 37 of file exception-signal.h.
|
inlinevirtual |
Reimplemented from dynamicgraph::ExceptionAbstract.
Definition at line 39 of file exception-signal.h.
|
static |
Definition at line 31 of file exception-signal.h.