00001 #ifndef HT_UTILS_ERROR_H 00002 #define HT_UTILS_ERROR_H 00003 00004 #include <exception> 00005 #include <string> 00006 00007 namespace ht { 00008 namespace utils { 00010 class BaseException : public std::exception { 00011 std::string msg_; 00012 public: 00014 BaseException(const std::string &s) : msg_(s) {} 00016 ~BaseException() throw() {} 00018 const char * what() const throw(); 00019 }; 00020 } 00021 } 00022 00023 #endif
1.5.2