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