Loading...
Searching...
No Matches
dynamicgraph::ExceptionTraces Class Reference

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

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

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

Public Types

enum  ErrorCodeEnum {
  GENERIC = ExceptionAbstract::TRACES ,
  NOT_OPEN
}
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

 ExceptionTraces (const ExceptionTraces::ErrorCodeEnum &errcode, const std::string &msg="")
 ExceptionTraces (const ExceptionTraces::ErrorCodeEnum &errcode, const std::string &msg, const char *format,...)
virtual ~ExceptionTraces () 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.
const std::string & getStringMessage () const
 Reference access to the error message (can be empty).
const char * getMessage () const
 Access to the pointer on the array of char related to the error string.
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.
std::string message
 Error message (can be empty).

Detailed Description

Exceptions raised when an error related to traces happen.

Member Enumeration Documentation

◆ ErrorCodeEnum

Enumerator
GENERIC 
NOT_OPEN 

Constructor & Destructor Documentation

◆ ExceptionTraces() [1/2]

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

◆ ExceptionTraces() [2/2]

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

◆ ~ExceptionTraces()

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

Member Function Documentation

◆ getExceptionName()

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

Reimplemented from dynamicgraph::ExceptionAbstract.

References EXCEPTION_NAME.

Member Data Documentation

◆ EXCEPTION_NAME

const std::string dynamicgraph::ExceptionTraces::EXCEPTION_NAME
static

Referenced by getExceptionName().