dynamic_graph_manager
exception-task.hh
Go to the documentation of this file.
1 
10 #ifndef EXCEPTION_TASK_HH
11 #define EXCEPTION_TASK_HH
12 
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16 
18 
19 /* --------------------------------------------------------------------- */
20 /* --- CLASS ----------------------------------------------------------- */
21 /* --------------------------------------------------------------------- */
22 
23 namespace dynamic_graph
24 {
27 {
28 public:
29  enum ErrorCodeEnum
30  {
31  GENERIC = ExceptionAbstract::TASK,
32  EMPTY_LIST,
33  NON_ADEQUATE_FEATURES,
34  MATRIX_SIZE,
35  BOUND_TYPE,
36  PARSER_MULTI_BOUND
37  };
38 
39  static const std::string EXCEPTION_NAME;
40  virtual const std::string& getExceptionName(void) const
41  {
42  return EXCEPTION_NAME;
43  }
44 
45  ExceptionTask(const ExceptionTask::ErrorCodeEnum& errcode,
46  const std::string& msg = "");
47  ExceptionTask(const ExceptionTask::ErrorCodeEnum& errcode,
48  const std::string& msg,
49  const char* format,
50  ...);
51  virtual ~ExceptionTask(void) throw()
52  {
53  }
54 };
55 } // namespace dynamic_graph
56 
57 #endif /* #ifndef EXCEPTION_TASK_HH */
ExceptionTask.
Definition: exception-task.hh:26
The ExceptionAbstract class.
Definition: exception-abstract.hh:33
this is this package namespace in order to avoid naming conflict
Definition: device.hh:22