#ifndef EXCEPTION_H #define EXCEPTION_H #include #include class Exception : public std::exception { private: /** the exception message */ std::string str; public: /** ctor */ Exception(const std::string& str) : str(str) {;} const char* what() const throw() {return str.c_str();} }; #endif // EXCEPTION_H