dynamicgraph::ExceptionSignal Class Reference

Exceptions raised when an error related to signals happen. More...

#include <dynamic-graph/exception-signal.h>

Inheritance diagram for dynamicgraph::ExceptionSignal:
[legend]
Collaboration diagram for dynamicgraph::ExceptionSignal:
[legend]

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="")
 
 ExceptionSignal (const ExceptionSignal::ErrorCodeEnum &errcode, const std::string &msg, const char *format,...)
 
virtual ~ExceptionSignal () throw ()
 
virtual const std::string & getExceptionName () const
 
- Public Member Functions inherited from dynamicgraph::ExceptionAbstract
 ExceptionAbstract (const int &code, const std::string &msg="")
 
virtual ~ExceptionAbstract () throw ()
 
int getCode () const
 Access to the error code. More...
 
const std::string & getStringMessage () const
 Reference access to the error message (can be empty). More...
 
const char * getMessage () const
 Access to the pointer on the array of char related to the error string. More...
 
virtual const char * what () const throw ()
 

Static Public Attributes

static const std::string EXCEPTION_NAME
 
- Static Public Attributes inherited from dynamicgraph::ExceptionAbstract
static const std::string EXCEPTION_NAME
 

Additional Inherited Members

- Protected Attributes inherited from dynamicgraph::ExceptionAbstract
int code
 Error code. More...
 
std::string message
 Error message (can be empty). More...
 

Detailed Description

Exceptions raised when an error related to signals happen.

Member Enumeration Documentation

Enumerator
GENERIC 
READWRITE_LOCK 
COPY_NOT_INITIALIZED 
NOT_INITIALIZED 
PLUG_IMPOSSIBLE 
SET_IMPOSSIBLE 
BAD_CAST 

Constructor & Destructor Documentation

dynamicgraph::ExceptionSignal::ExceptionSignal ( const ExceptionSignal::ErrorCodeEnum errcode,
const std::string &  msg = "" 
)
explicit
dynamicgraph::ExceptionSignal::ExceptionSignal ( const ExceptionSignal::ErrorCodeEnum errcode,
const std::string &  msg,
const char *  format,
  ... 
)
virtual dynamicgraph::ExceptionSignal::~ExceptionSignal ( )
throw (
)
inlinevirtual

Member Function Documentation

virtual const std::string& dynamicgraph::ExceptionSignal::getExceptionName ( ) const
inlinevirtual

Reimplemented from dynamicgraph::ExceptionAbstract.

Member Data Documentation

const std::string dynamicgraph::ExceptionSignal::EXCEPTION_NAME
static