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