author | saiam |
Fri, 05 Dec 2008 00:30:59 +0000 | |
changeset 208 | 7709571e1131 |
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 */