dynamic_graph_manager
exception-factory.hh
Go to the documentation of this file.
1 
10 #ifndef EXCEPTION_FACTORY_HH
11 #define EXCEPTION_FACTORY_HH
12 
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16 
18 
19 /* --------------------------------------------------------------------- */
20 /* --- CLASS ----------------------------------------------------------- */
21 /* --------------------------------------------------------------------- */
22 
23 namespace dynamic_graph
24 {
29 {
30 public:
31  enum ErrorCodeEnum
32  {
33  GENERIC = ExceptionAbstract::FACTORY,
34  UNREFERED_OBJECT,
35  UNREFERED_SIGNAL,
36  UNREFERED_FUNCTION,
37  DYNAMIC_LOADING,
38  SIGNAL_CONFLICT,
39  FUNCTION_CONFLICT,
40  OBJECT_CONFLICT,
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
49  {
50  return ExceptionFactory::EXCEPTION_NAME;
51  }
52 
53  ExceptionFactory(const ExceptionFactory::ErrorCodeEnum& errcode,
54  const std::string& msg = "");
55  ExceptionFactory(const ExceptionFactory::ErrorCodeEnum& errcode,
56  const std::string& msg,
57  const char* format,
58  ...);
59  virtual ~ExceptionFactory(void) throw()
60  {
61  }
62 };
63 } /* namespace dynamic_graph */
64 
65 #endif /* #ifndef EXCEPTION_FACTORY_HH */
66 
67 /*
68  * Local variables:
69  * c-basic-offset: 2
70  * End:
71  */
The ExceptionAbstract class.
Definition: exception-abstract.hh:33
The ExceptionFactory class.
Definition: exception-factory.hh:28
this is this package namespace in order to avoid naming conflict
Definition: device.hh:22