exceptions.hpp
Go to the documentation of this file.
00001 
00009 /*****************************************************************************
00010 ** Ifdefs
00011 *****************************************************************************/
00012 
00013 #ifndef YUJIN_OCS_CMD_VEL_EXCEPTIONS_HPP_
00014 #define YUJIN_OCS_CMD_VEL_EXCEPTIONS_HPP_
00015 
00016 /*****************************************************************************
00017 ** Includes
00018 *****************************************************************************/
00019 
00020 #include <exception>
00021 
00022 /*****************************************************************************
00023 ** Namespaces
00024 *****************************************************************************/
00025 
00026 namespace yocs_cmd_vel_mux {
00027 
00028 /*****************************************************************************
00029 ** Exceptions
00030 *****************************************************************************/
00031 
00032 class FileNotFoundException: public std::runtime_error {
00033 public:
00034   FileNotFoundException(const std::string& msg)
00035         : std::runtime_error(msg) {}
00036         virtual ~FileNotFoundException() throw() {}
00037 };
00038 
00039 class EmptyCfgException: public std::runtime_error {
00040 public:
00041   EmptyCfgException()
00042         : std::runtime_error("") {}
00043         virtual ~EmptyCfgException() throw() {}
00044 };
00045 
00046 class YamlException: public std::runtime_error {
00047 public:
00048   YamlException(const std::string& msg)
00049         : std::runtime_error(msg) {}
00050         virtual ~YamlException() throw() {}
00051 };
00052 
00053 } // namespace yocs_cmd_vel_mux
00054 
00055 #endif /* YUJIN_OCS_CMD_VEL_EXCEPTIONS_HPP_ */


yocs_cmd_vel_mux
Author(s): Jorge Santos Simon
autogenerated on Fri Aug 28 2015 13:45:10