dynamic_graph_manager
exception-tools.hh
Go to the documentation of this file.
1 
10 #ifndef TOOLS_EXCEPTION_HH
11 #define TOOLS_EXCEPTION_HH
12 
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16 
18 /* --------------------------------------------------------------------- */
19 /* --- CLASS ----------------------------------------------------------- */
20 /* --------------------------------------------------------------------- */
21 
22 namespace dynamic_graph
23 {
24 /* \class ExceptionTools
25  */
27 {
28 public:
29  enum ErrorCodeEnum
30  {
31  GENERIC = ExceptionAbstract::TOOLS
32 
33  ,
34  CORBA,
35  KALMAN_SIZE,
36  PY_SHELL_PTR
37  };
38 
39  static const std::string EXCEPTION_NAME;
40  virtual const std::string& getExceptionName() const
41  {
42  return EXCEPTION_NAME;
43  }
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,
50  const char* format,
51  ...);
52  virtual ~ExceptionTools(void) throw()
53  {
54  }
55 };
56 
57 } // namespace dynamic_graph
58 
59 #endif /* #ifndef TOOLS_EXCEPTION_HH */
60 
61 /*
62  * Local variables:
63  * c-basic-offset: 2
64  * End:
65  */
The ExceptionAbstract class.
Definition: exception-abstract.hh:33
this is this package namespace in order to avoid naming conflict
Definition: device.hh:22
Definition: exception-tools.hh:26