Public Types | Public Member Functions | Static Public Attributes | List of all members
dynamicgraph::ExceptionFactory Class Reference

Generic error class. More...

#include <exception-factory.h>

Inheritance diagram for dynamicgraph::ExceptionFactory:
Inheritance graph
[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::ExceptionAbstract
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="")
 
 ExceptionFactory (const ExceptionFactory::ErrorCodeEnum &errcode, const std::string &msg, const char *format,...)
 
virtual const std::string & getExceptionName () const
 
virtual ~ExceptionFactory () 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 = "Factory"
 
- 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...
 

Detailed Description

Generic error class.

Definition at line 18 of file exception-factory.h.

Member Enumeration Documentation

◆ ErrorCodeEnum

Enumerator
GENERIC 
UNREFERED_OBJECT 
UNREFERED_SIGNAL 
UNREFERED_FUNCTION 
DYNAMIC_LOADING 
SIGNAL_CONFLICT 
FUNCTION_CONFLICT 
OBJECT_CONFLICT 
SYNTAX_ERROR 
READ_FILE 

Definition at line 20 of file exception-factory.h.

Constructor & Destructor Documentation

◆ ExceptionFactory() [1/2]

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

Definition at line 24 of file exception-factory.cpp.

◆ ExceptionFactory() [2/2]

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

Definition at line 31 of file exception-factory.cpp.

◆ ~ExceptionFactory()

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

Definition at line 41 of file exception-factory.h.

Member Function Documentation

◆ getExceptionName()

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

Reimplemented from dynamicgraph::ExceptionAbstract.

Definition at line 43 of file exception-factory.h.

Member Data Documentation

◆ EXCEPTION_NAME

const std::string ExceptionFactory::EXCEPTION_NAME = "Factory"
static

Definition at line 33 of file exception-factory.h.


The documentation for this class was generated from the following files:


dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:06:03