include
dynamic-graph
exception-signal.h
Go to the documentation of this file.
1
// -*- mode: c++ -*-
2
// Copyright 2010, François Bleibel, Thomas Moulard, Olivier Stasse,
3
// JRL, CNRS/AIST.
4
//
5
6
#ifndef DYNAMIC_GRAPH_EXCEPTION_SIGNAL_H
7
#define DYNAMIC_GRAPH_EXCEPTION_SIGNAL_H
8
9
#include <
dynamic-graph/dynamic-graph-api.h
>
10
#include <
dynamic-graph/exception-abstract.h
>
11
12
#include <
dynamic-graph/fwd.hh
>
13
14
namespace
dynamicgraph
{
19
class
DYNAMIC_GRAPH_DLLAPI
ExceptionSignal
:
public
ExceptionAbstract
{
20
public
:
21
enum
ErrorCodeEnum
{
22
GENERIC =
ExceptionAbstract::SIGNAL
,
23
READWRITE_LOCK
,
24
COPY_NOT_INITIALIZED
,
25
NOT_INITIALIZED
,
26
PLUG_IMPOSSIBLE
,
27
SET_IMPOSSIBLE
,
28
BAD_CAST
29
};
30
31
static
const
std::string
EXCEPTION_NAME
;
32
33
explicit
ExceptionSignal
(
const
ExceptionSignal::ErrorCodeEnum
&errcode,
34
const
std::string &msg =
""
);
35
ExceptionSignal
(
const
ExceptionSignal::ErrorCodeEnum
&errcode,
36
const
std::string &msg,
const
char
*format, ...);
37
virtual
~ExceptionSignal
() throw() {}
38
39
virtual
const
std::string &
getExceptionName
()
const
{
return
EXCEPTION_NAME; }
40
};
41
42
}
// end of namespace dynamicgraph
43
44
#endif
dynamic-graph-api.h
dynamicgraph::ExceptionSignal::EXCEPTION_NAME
static const std::string EXCEPTION_NAME
Definition:
exception-signal.h:31
dynamicgraph::ExceptionAbstract::SIGNAL
Definition:
exception-abstract.h:69
dynamicgraph::ExceptionSignal
Exceptions raised when an error related to signals happen.
Definition:
exception-signal.h:19
dynamicgraph::ExceptionSignal::COPY_NOT_INITIALIZED
Definition:
exception-signal.h:24
dynamicgraph::ExceptionSignal::READWRITE_LOCK
Definition:
exception-signal.h:23
dynamicgraph::ExceptionSignal::PLUG_IMPOSSIBLE
Definition:
exception-signal.h:26
dynamicgraph::ExceptionSignal::SET_IMPOSSIBLE
Definition:
exception-signal.h:27
dynamicgraph::ExceptionAbstract
Abstract root class for all dynamic-graph exceptions.
Definition:
exception-abstract.h:31
dynamicgraph::ExceptionSignal::NOT_INITIALIZED
Definition:
exception-signal.h:25
fwd.hh
dynamicgraph::ExceptionSignal::ErrorCodeEnum
ErrorCodeEnum
Definition:
exception-signal.h:21
exception-abstract.h
dynamicgraph::ExceptionSignal::getExceptionName
virtual const std::string & getExceptionName() const
Definition:
exception-signal.h:39
dynamicgraph
dynamicgraph::ExceptionSignal::~ExceptionSignal
virtual ~ExceptionSignal()
Definition:
exception-signal.h:37
dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:06:03