Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
i
j
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
a
b
c
d
f
g
i
j
l
m
o
p
q
r
s
t
u
v
+
Variables
_
a
b
c
d
e
f
g
i
j
l
m
n
p
r
s
u
v
w
+
Typedefs
c
e
f
i
m
q
r
s
v
Enumerations
Enumerator
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Typedefs
b
d
e
f
k
l
m
s
t
v
Enumerations
+
Enumerator
a
b
c
d
e
f
g
i
j
k
m
n
o
p
r
s
t
u
Related Functions
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
+
Functions
b
c
d
e
f
g
i
l
m
o
p
r
s
t
u
Variables
+
Typedefs
c
d
e
f
k
r
s
t
Enumerations
Enumerator
+
Macros
_
a
b
c
d
e
f
i
l
m
n
o
p
r
s
t
v
src
exception
exception-feature.cpp
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
#include <stdarg.h>
11
12
#include <cstdio>
13
#include <
sot/core/exception-feature.hh
>
14
15
using namespace
dynamicgraph::sot
;
16
17
/* --------------------------------------------------------------------- */
18
/* --- CLASS ----------------------------------------------------------- */
19
/* --------------------------------------------------------------------- */
20
21
const
std::string
ExceptionFeature::EXCEPTION_NAME
=
"Feature"
;
22
23
ExceptionFeature::ExceptionFeature
(
24
const
ExceptionFeature::ErrorCodeEnum
&errcode,
const
std::string &msg)
25
:
ExceptionAbstract
(errcode, msg) {}
26
27
ExceptionFeature::ExceptionFeature
(
28
const
ExceptionFeature::ErrorCodeEnum
&errcode,
const
std::string &msg,
29
const
char
*format, ...)
30
:
ExceptionAbstract
(errcode, msg) {
31
va_list
args
;
32
va_start(args, format);
33
34
const
unsigned
int
SIZE = 256;
35
char
buffer[SIZE];
36
vsnprintf(buffer, SIZE, format, args);
37
38
message
= buffer;
39
40
va_end(args);
41
}
42
43
/*
44
* Local variables:
45
* c-basic-offset: 2
46
* End:
47
*/
dynamicgraph::ExceptionAbstract::message
std::string message
exception-feature.hh
dynamicgraph::sot::ExceptionFeature::ExceptionFeature
ExceptionFeature(const ExceptionFeature::ErrorCodeEnum &errcode, const std::string &msg="")
Definition:
exception-feature.cpp:23
dynamicgraph::sot::ExceptionFeature::EXCEPTION_NAME
static const std::string EXCEPTION_NAME
Definition:
exception-feature.hh:39
args
args
dynamicgraph::ExceptionAbstract
dynamicgraph::sot::ExceptionFeature::ErrorCodeEnum
ErrorCodeEnum
Definition:
exception-feature.hh:33
dynamicgraph::sot
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:26