dynamic_graph_manager
exception-signal.hh
Go to the documentation of this file.
1 
10 #ifndef SIGNAL_EXCEPTION_HH
11 #define SIGNAL_EXCEPTION_HH
12 
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16 
18 
19 /* --------------------------------------------------------------------- */
20 /* --- CLASS ----------------------------------------------------------- */
21 /* --------------------------------------------------------------------- */
22 
23 namespace dynamic_graph
24 {
25 /* \class ExceptionSignal */
27 {
28 public:
29  enum ErrorCodeEnum
30  {
31  GENERIC = ExceptionAbstract::SIGNAL
32 
33  ,
34  READWRITE_LOCK,
35  COPY_NOT_INITIALIZED,
36  NOT_INITIALIZED,
37  PLUG_IMPOSSIBLE,
38  SET_IMPOSSIBLE,
39  BAD_CAST
40  };
41 
42  static const std::string EXCEPTION_NAME;
43  virtual const std::string& getExceptionName(void) const
44  {
45  return EXCEPTION_NAME;
46  }
47 
48 public:
49  ExceptionSignal(const ExceptionSignal::ErrorCodeEnum& errcode,
50  const std::string& msg = "");
51  ExceptionSignal(const ExceptionSignal::ErrorCodeEnum& errcode,
52  const std::string& msg,
53  const char* format,
54  ...);
55  virtual ~ExceptionSignal(void) throw()
56  {
57  }
58 };
59 } /* namespace dynamic_graph */
60 
61 #endif /* #ifndef SIGNAL_EXCEPTION_HH */
62 
63 /*
64  * Local variables:
65  * c-basic-offset: 2
66  * End:
67  */
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-signal.hh:26