dynamicgraph::sot::ExceptionFactory Class Reference

#include <sot/core/exception-factory.hh>

Inheritance diagram for dynamicgraph::sot::ExceptionFactory:
[legend]

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
}
 
- Public Types inherited from dynamicgraph::sot::ExceptionAbstract
enum  ExceptionEnum {
  ABSTRACT = 0,
  SIGNAL = 100,
  TASK = 200,
  FEATURE = 300,
  FACTORY = 400,
  DYNAMIC = 500,
  TRACES = 600,
  TOOLS = 700,
  PATTERN_GENERATOR = 800
}
 

Public Member Functions

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

Static Public Attributes

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

Additional Inherited Members

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

Member Enumeration Documentation

◆ ErrorCodeEnum

Enumerator
GENERIC 
UNREFERED_OBJECT 
UNREFERED_SIGNAL 
UNREFERED_FUNCTION 
DYNAMIC_LOADING 
SIGNAL_CONFLICT 
FUNCTION_CONFLICT 
OBJECT_CONFLICT 
SYNTAX_ERROR 
READ_FILE 

Constructor & Destructor Documentation

◆ ExceptionFactory() [1/2]

dynamicgraph::sot::ExceptionFactory::ExceptionFactory ( const ExceptionFactory::ErrorCodeEnum errcode,
const std::string &  msg = "" 
)

◆ ExceptionFactory() [2/2]

dynamicgraph::sot::ExceptionFactory::ExceptionFactory ( const ExceptionFactory::ErrorCodeEnum errcode,
const std::string &  msg,
const char *  format,
  ... 
)

◆ ~ExceptionFactory()

virtual dynamicgraph::sot::ExceptionFactory::~ExceptionFactory ( void  )
throw (
)
inlinevirtual

Member Function Documentation

◆ getExceptionName()

virtual const std::string& dynamicgraph::sot::ExceptionFactory::getExceptionName ( void  ) const
inlinevirtual

Reimplemented from dynamicgraph::sot::ExceptionAbstract.

References EXCEPTION_NAME.

Member Data Documentation

◆ EXCEPTION_NAME

const std::string dynamicgraph::sot::ExceptionFactory::EXCEPTION_NAME
static

Referenced by getExceptionName().