author | ekku |
Sat, 06 Dec 2008 19:38:01 +0000 | |
changeset 225 | 22ecb9cb9245 |
parent 185 | 25becd2cb026 |
child 227 | 39cd6861e43e |
permissions | -rw-r--r-- |
#ifndef ERROR_HH #define ERROR_HH #include <stdexcept> #include <string> class Error : public std::exception { private: const char *message; public: Error (const std::string &message) : message(message.c_str()) { } virtual const char* what() const throw() { return message; } }; #endif /* ERROR_HH */