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