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