include
dynamic-graph
exception-factory.h
Go to the documentation of this file.
1
// -*- mode: c++ -*-
2
// Copyright 2010, François Bleibel, Thomas Moulard, Olivier Stasse,
3
// JRL, CNRS/AIST.
4
//
5
6
#ifndef DYNAMIC_GRAPH_EXCEPTION_FACTORY_H
7
#define DYNAMIC_GRAPH_EXCEPTION_FACTORY_H
8
#include <
dynamic-graph/dynamic-graph-api.h
>
9
#include <
dynamic-graph/exception-abstract.h
>
10
11
#include <
dynamic-graph/fwd.hh
>
12
#include <string>
13
14
namespace
dynamicgraph
{
18
class
DYNAMIC_GRAPH_DLLAPI
ExceptionFactory
:
public
ExceptionAbstract
{
19
public
:
20
enum
ErrorCodeEnum
{
21
GENERIC =
ExceptionAbstract::FACTORY
,
22
UNREFERED_OBJECT
,
23
UNREFERED_SIGNAL
,
24
UNREFERED_FUNCTION
,
25
DYNAMIC_LOADING
,
26
SIGNAL_CONFLICT
,
27
FUNCTION_CONFLICT
,
28
OBJECT_CONFLICT
,
29
SYNTAX_ERROR
,
30
READ_FILE
31
};
32
33
static
const
std::string
EXCEPTION_NAME
;
34
35
explicit
ExceptionFactory
(
const
ExceptionFactory::ErrorCodeEnum
&errcode,
36
const
std::string &msg =
""
);
37
38
ExceptionFactory
(
const
ExceptionFactory::ErrorCodeEnum
&errcode,
39
const
std::string &msg,
const
char
*format, ...);
40
41
virtual
~ExceptionFactory
() throw() {}
42
43
virtual
const
std::string &
getExceptionName
()
const
{
44
return
ExceptionFactory::EXCEPTION_NAME
;
45
}
46
};
47
}
// end of namespace dynamicgraph
48
49
#endif
dynamicgraph::ExceptionFactory::UNREFERED_SIGNAL
@ UNREFERED_SIGNAL
Definition:
exception-factory.h:23
dynamicgraph::ExceptionFactory::SYNTAX_ERROR
@ SYNTAX_ERROR
Definition:
exception-factory.h:29
dynamicgraph::ExceptionFactory::SIGNAL_CONFLICT
@ SIGNAL_CONFLICT
Definition:
exception-factory.h:26
dynamicgraph::ExceptionFactory::ErrorCodeEnum
ErrorCodeEnum
Definition:
exception-factory.h:20
dynamic-graph-api.h
dynamicgraph::ExceptionFactory::~ExceptionFactory
virtual ~ExceptionFactory()
Definition:
exception-factory.h:41
dynamicgraph
dynamicgraph::ExceptionFactory::UNREFERED_FUNCTION
@ UNREFERED_FUNCTION
Definition:
exception-factory.h:24
dynamicgraph::ExceptionFactory::OBJECT_CONFLICT
@ OBJECT_CONFLICT
Definition:
exception-factory.h:28
fwd.hh
dynamicgraph::ExceptionFactory::FUNCTION_CONFLICT
@ FUNCTION_CONFLICT
Definition:
exception-factory.h:27
dynamicgraph::ExceptionFactory::DYNAMIC_LOADING
@ DYNAMIC_LOADING
Definition:
exception-factory.h:25
dynamicgraph::ExceptionAbstract
Abstract root class for all dynamic-graph exceptions.
Definition:
exception-abstract.h:31
dynamicgraph::ExceptionFactory
Generic error class.
Definition:
exception-factory.h:18
dynamicgraph::ExceptionFactory::EXCEPTION_NAME
static const std::string EXCEPTION_NAME
Definition:
exception-factory.h:33
dynamicgraph::ExceptionFactory::UNREFERED_OBJECT
@ UNREFERED_OBJECT
Definition:
exception-factory.h:22
dynamicgraph::ExceptionAbstract::FACTORY
@ FACTORY
Definition:
exception-abstract.h:70
dynamicgraph::ExceptionFactory::getExceptionName
virtual const std::string & getExceptionName() const
Definition:
exception-factory.h:43
exception-abstract.h
dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Aug 2 2024 08:36:38