include
dynamic-graph
exception-traces.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_TRACES_H
7
#define DYNAMIC_GRAPH_EXCEPTION_TRACES_H
8
#include <
dynamic-graph/dynamic-graph-api.h
>
9
#include <
dynamic-graph/exception-abstract.h
>
10
11
#include <
dynamic-graph/fwd.hh
>
12
#include <string>
13
14
namespace
dynamicgraph
{
18
class
DYNAMIC_GRAPH_DLLAPI
ExceptionTraces
:
public
ExceptionAbstract
{
19
public
:
20
enum
ErrorCodeEnum
{ GENERIC =
ExceptionAbstract::TRACES
, NOT_OPEN };
21
22
static
const
std::string
EXCEPTION_NAME
;
23
24
explicit
ExceptionTraces
(
const
ExceptionTraces::ErrorCodeEnum
&errcode,
25
const
std::string &msg =
""
);
26
ExceptionTraces
(
const
ExceptionTraces::ErrorCodeEnum
&errcode,
27
const
std::string &msg,
const
char
*format, ...);
28
virtual
~ExceptionTraces
() throw() {}
29
30
virtual
const
std::string &
getExceptionName
()
const
{
return
EXCEPTION_NAME; }
31
};
32
}
// end of namespace dynamicgraph.
33
34
#endif
dynamic-graph-api.h
dynamicgraph::ExceptionTraces::EXCEPTION_NAME
static const std::string EXCEPTION_NAME
Definition:
exception-traces.h:22
dynamicgraph::ExceptionTraces::~ExceptionTraces
virtual ~ExceptionTraces()
Definition:
exception-traces.h:28
dynamicgraph::ExceptionTraces::ErrorCodeEnum
ErrorCodeEnum
Definition:
exception-traces.h:20
dynamicgraph::ExceptionTraces::getExceptionName
virtual const std::string & getExceptionName() const
Definition:
exception-traces.h:30
dynamicgraph::ExceptionAbstract::TRACES
Definition:
exception-abstract.h:71
dynamicgraph::ExceptionAbstract
Abstract root class for all dynamic-graph exceptions.
Definition:
exception-abstract.h:31
fwd.hh
dynamicgraph::ExceptionTraces
Exceptions raised when an error related to traces happen.
Definition:
exception-traces.h:18
exception-abstract.h
dynamicgraph
dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:06:03