Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | Friends

dynamicgraph::ExceptionAbstract Class Reference

List of all members.

Public Types

enum  ExceptionEnum {
  ABSTRACT = 0,
  SIGNAL = 100,
  FACTORY = 200,
  TRACES = 300,
  TOOLS = 700
}

Public Member Functions

virtual const std::string & getExceptionName (void) const
 ExceptionAbstract (const int &code, const std::string &msg="")
virtual ~ExceptionAbstract (void) throw ()
int getCode (void)
 Access to the error code.
const std::string & getStringMessage (void) const
 Reference access to the error message (can be empty).
const char * getMessage (void)
 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

Protected Attributes

int code
 Error code.
std::string message
 Error message (can be empty).

Private Member Functions

 ExceptionAbstract (void)
 forbid the empty constructor (private).

Friends

DYNAMICGRAPH_EXPORT friend
std::ostream & 
operator<< (std::ostream &os, const ExceptionAbstract &err)
 Print the error structure.

Member Enumeration Documentation

Enumerator:
ABSTRACT 
SIGNAL 
FACTORY 
TRACES 
TOOLS 

Constructor & Destructor Documentation

dynamicgraph::ExceptionAbstract::ExceptionAbstract ( void   )  [private]

forbid the empty constructor (private).

dynamicgraph::ExceptionAbstract::ExceptionAbstract ( const int &  code,
const std::string &  msg = "" 
)
virtual dynamicgraph::ExceptionAbstract::~ExceptionAbstract ( void   )  throw () [inline, virtual]

Member Function Documentation

int dynamicgraph::ExceptionAbstract::getCode ( void   ) 

Access to the error code.

virtual const std::string& dynamicgraph::ExceptionAbstract::getExceptionName ( void   )  const [inline, virtual]
const char* dynamicgraph::ExceptionAbstract::getMessage ( void   ) 

Access to the pointer on the array of char related to the error string.

Cannot be NULL.

const std::string& dynamicgraph::ExceptionAbstract::getStringMessage ( void   )  const

Reference access to the error message (can be empty).

virtual const char* dynamicgraph::ExceptionAbstract::what (  )  const throw () [inline, virtual]

Friends And Related Function Documentation

DYNAMICGRAPH_EXPORT friend std::ostream& operator<< ( std::ostream &  os,
const ExceptionAbstract err 
) [friend]

Print the error structure.


Member Data Documentation

Error code.

See also:
ErrorCodeEnum

Error message (can be empty).





dynamicGraph library documentation