include
sot
core
exception-factory.hh
Go to the documentation of this file.
1
/*
2
* Copyright 2010,
3
* François Bleibel,
4
* Olivier Stasse,
5
*
6
* CNRS/AIST
7
*
8
*/
9
10
#ifndef __SOT_EXCEPTION_FACTORY_H
11
#define __SOT_EXCEPTION_FACTORY_H
12
13
/* --------------------------------------------------------------------- */
14
/* --- INCLUDE --------------------------------------------------------- */
15
/* --------------------------------------------------------------------- */
16
17
#include <
sot/core/exception-abstract.hh
>
18
19
#include "
sot/core/api.hh
"
20
/* --------------------------------------------------------------------- */
21
/* --- CLASS ----------------------------------------------------------- */
22
/* --------------------------------------------------------------------- */
23
24
namespace
dynamicgraph
{
25
namespace
sot {
26
27
/* \class ExceptionFactory
28
*/
29
class
SOT_CORE_EXPORT
ExceptionFactory
:
public
ExceptionAbstract
30
31
{
32
public
:
33
enum
ErrorCodeEnum
{
34
GENERIC =
ExceptionAbstract::FACTORY
,
35
UNREFERED_OBJECT
,
36
UNREFERED_SIGNAL
,
37
UNREFERED_FUNCTION
,
38
DYNAMIC_LOADING
,
39
SIGNAL_CONFLICT
,
40
FUNCTION_CONFLICT
,
41
OBJECT_CONFLICT
,
42
SYNTAX_ERROR
// j' aime bien FATAL_ERROR aussi faut que je la case qq
43
// part...
44
,
45
READ_FILE
46
};
47
48
static
const
std::string
EXCEPTION_NAME
;
49
virtual
const
std::string &
getExceptionName
(
void
)
const
{
50
return
ExceptionFactory::EXCEPTION_NAME
;
51
}
52
53
ExceptionFactory
(
const
ExceptionFactory::ErrorCodeEnum
&errcode,
54
const
std::string &msg =
""
);
55
ExceptionFactory
(
const
ExceptionFactory::ErrorCodeEnum
&errcode,
56
const
std::string &msg,
const
char
*format, ...);
57
virtual
~ExceptionFactory
(
void
)
throw
() {}
58
};
59
60
}
/* namespace sot */
61
}
/* namespace dynamicgraph */
62
63
#endif
/* #ifndef __SOT_EXCEPTION_FACTORY_H */
64
65
/*
66
* Local variables:
67
* c-basic-offset: 2
68
* End:
69
*/
dynamicgraph::sot::ExceptionFactory::UNREFERED_FUNCTION
@ UNREFERED_FUNCTION
Definition:
exception-factory.hh:37
SOT_CORE_EXPORT
#define SOT_CORE_EXPORT
Definition:
api.hh:20
dynamicgraph
dynamicgraph::sot::ExceptionFactory::getExceptionName
virtual const std::string & getExceptionName(void) const
Definition:
exception-factory.hh:49
dynamicgraph::sot::ExceptionFactory::UNREFERED_SIGNAL
@ UNREFERED_SIGNAL
Definition:
exception-factory.hh:36
dynamicgraph::sot::ExceptionFactory::ErrorCodeEnum
ErrorCodeEnum
Definition:
exception-factory.hh:33
dynamicgraph::sot::ExceptionFactory::DYNAMIC_LOADING
@ DYNAMIC_LOADING
Definition:
exception-factory.hh:38
dynamicgraph::ExceptionAbstract
dynamicgraph::sot::ExceptionFactory::~ExceptionFactory
virtual ~ExceptionFactory(void)
Definition:
exception-factory.hh:57
dynamicgraph::sot::ExceptionFactory::OBJECT_CONFLICT
@ OBJECT_CONFLICT
Definition:
exception-factory.hh:41
dynamicgraph::sot::ExceptionFactory::UNREFERED_OBJECT
@ UNREFERED_OBJECT
Definition:
exception-factory.hh:35
api.hh
dynamicgraph::sot::ExceptionFactory::SIGNAL_CONFLICT
@ SIGNAL_CONFLICT
Definition:
exception-factory.hh:39
dynamicgraph::ExceptionFactory
dynamicgraph::ExceptionFactory::EXCEPTION_NAME
static const std::string EXCEPTION_NAME
dynamicgraph::sot::ExceptionFactory::FUNCTION_CONFLICT
@ FUNCTION_CONFLICT
Definition:
exception-factory.hh:40
dynamicgraph::sot::ExceptionFactory::EXCEPTION_NAME
static const std::string EXCEPTION_NAME
Definition:
exception-factory.hh:48
dynamicgraph::ExceptionAbstract::FACTORY
FACTORY
exception-abstract.hh
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31