include
sot
core
exception-feature.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_FEATURE_H
11
#define __SOT_EXCEPTION_FEATURE_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 ExceptionFeature
28
*/
29
class
SOT_CORE_EXPORT
ExceptionFeature
:
public
ExceptionAbstract
30
31
{
32
public
:
33
enum
ErrorCodeEnum
{
34
GENERIC = ExceptionAbstract::FEATURE,
35
BAD_INIT
,
36
UNCOMPATIBLE_SIZE
37
};
38
39
static
const
std::string
EXCEPTION_NAME
;
40
virtual
const
std::string &
getExceptionName
(
void
)
const
{
41
return
ExceptionFeature::EXCEPTION_NAME
;
42
}
43
44
ExceptionFeature
(
const
ExceptionFeature::ErrorCodeEnum
&errcode,
45
const
std::string &msg =
""
);
46
47
ExceptionFeature
(
const
ExceptionFeature::ErrorCodeEnum
&errcode,
48
const
std::string &msg,
const
char
*format, ...);
49
50
virtual
~ExceptionFeature
(
void
)
throw
() {}
51
};
52
53
}
/* namespace sot */
54
}
/* namespace dynamicgraph */
55
56
#endif
/* #ifndef __SOT_EXCEPTION_FEATURE_H */
57
58
/*
59
* Local variables:
60
* c-basic-offset: 2
61
* End:
62
*/
SOT_CORE_EXPORT
#define SOT_CORE_EXPORT
Definition:
api.hh:20
dynamicgraph::sot::ExceptionFeature::EXCEPTION_NAME
static const std::string EXCEPTION_NAME
Definition:
exception-feature.hh:39
dynamicgraph::sot::ExceptionFeature::getExceptionName
virtual const std::string & getExceptionName(void) const
Definition:
exception-feature.hh:40
dynamicgraph::sot::ExceptionFeature::BAD_INIT
Definition:
exception-feature.hh:35
exception-abstract.hh
dynamicgraph::sot::ExceptionFeature
Definition:
exception-feature.hh:29
dynamicgraph::ExceptionAbstract
dynamicgraph::sot::ExceptionFeature::ErrorCodeEnum
ErrorCodeEnum
Definition:
exception-feature.hh:33
dynamicgraph::sot::ExceptionFeature::~ExceptionFeature
virtual ~ExceptionFeature(void)
Definition:
exception-feature.hh:50
dynamicgraph
api.hh
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:26