sot-core  4.11.2
Hierarchical task solver plug-in for dynamic-graph.
exception-factory.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_FACTORY_H
11 #define __SOT_EXCEPTION_FACTORY_H
12 
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16 
17 #include "sot/core/api.hh"
19 /* --------------------------------------------------------------------- */
20 /* --- CLASS ----------------------------------------------------------- */
21 /* --------------------------------------------------------------------- */
22 
23 namespace dynamicgraph {
24 namespace sot {
25 
26 /* \class ExceptionFactory
27  */
29 
30 {
31 public:
41  SYNTAX_ERROR // j' aime bien FATAL_ERROR aussi faut que je la case qq
42  // part...
43  ,
44  READ_FILE
45  };
46 
47  static const std::string EXCEPTION_NAME;
48  virtual const std::string &getExceptionName(void) const {
50  }
51 
53  const std::string &msg = "");
55  const std::string &msg, const char *format, ...);
56  virtual ~ExceptionFactory(void) throw() {}
57 };
58 
59 } /* namespace sot */
60 } /* namespace dynamicgraph */
61 
62 #endif /* #ifndef __SOT_EXCEPTION_FACTORY_H */
63 
64 /*
65  * Local variables:
66  * c-basic-offset: 2
67  * End:
68  */
Definition: exception-factory.hh:37
Definition: exception-factory.hh:28
virtual const std::string & getExceptionName(void) const
Definition: exception-factory.hh:48
#define SOT_CORE_EXPORT
Definition: api.hh:20
static const std::string EXCEPTION_NAME
Definition: exception-factory.hh:47
Definition: exception-abstract.hh:35
ErrorCodeEnum
Definition: exception-factory.hh:32
virtual ~ExceptionFactory(void)
Definition: exception-factory.hh:56
Definition: exception-abstract.hh:43
Definition: exception-factory.hh:40
Definition: abstract-sot-external-interface.hh:17
Definition: exception-factory.hh:38