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


cmd_vel_mux
Author(s): Jorge Santos Simon
autogenerated on Mon Oct 6 2014 09:11:22