00001 #include <exception> 00002 #include <string> 00003 00004 class Exception : public std::exception 00005 { 00006 public: 00007 explicit Exception(const std::string& arg_msg); 00008 virtual ~Exception() throw(); 00009 00010 virtual std::string getName() const; 00011 virtual std::string getMessage() const; 00012 00013 virtual std::string toString( void ) const; 00014 00015 protected: 00016 std::string m_msg; 00017 };