exceptions.hpp
Go to the documentation of this file.
1 
9 /*****************************************************************************
10 ** Ifdefs
11 *****************************************************************************/
12 
13 #ifndef YUJIN_OCS_CMD_VEL_EXCEPTIONS_HPP_
14 #define YUJIN_OCS_CMD_VEL_EXCEPTIONS_HPP_
15 
16 /*****************************************************************************
17 ** Includes
18 *****************************************************************************/
19 
20 #include <exception>
21 
22 /*****************************************************************************
23 ** Namespaces
24 *****************************************************************************/
25 
26 namespace yocs_cmd_vel_mux {
27 
28 /*****************************************************************************
29 ** Exceptions
30 *****************************************************************************/
31 
32 class FileNotFoundException: public std::runtime_error {
33 public:
34  FileNotFoundException(const std::string& msg)
35  : std::runtime_error(msg) {}
36  virtual ~FileNotFoundException() throw() {}
37 };
38 
39 class EmptyCfgException: public std::runtime_error {
40 public:
41  EmptyCfgException(const std::string& msg)
42  : std::runtime_error(msg) {}
43  virtual ~EmptyCfgException() throw() {}
44 };
45 
46 class YamlException: public std::runtime_error {
47 public:
48  YamlException(const std::string& msg)
49  : std::runtime_error(msg) {}
50  virtual ~YamlException() throw() {}
51 };
52 
53 } // namespace yocs_cmd_vel_mux
54 
55 #endif /* YUJIN_OCS_CMD_VEL_EXCEPTIONS_HPP_ */
YamlException(const std::string &msg)
Definition: exceptions.hpp:48
EmptyCfgException(const std::string &msg)
Definition: exceptions.hpp:41
FileNotFoundException(const std::string &msg)
Definition: exceptions.hpp:34


yocs_cmd_vel_mux
Author(s): Jorge Santos Simon
autogenerated on Mon Jun 10 2019 15:53:29