author | Tero Marttila <terom@fixme.fi> |
Tue, 27 Jan 2009 00:27:05 +0200 | |
branch | 0.1.1-pre |
changeset 440 | 0ddae5a7282f |
parent 227 | 39cd6861e43e |
permissions | -rw-r--r-- |
#ifndef ERROR_HH #define ERROR_HH #include "Logger.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; } }; std::ostream& operator<< (std::ostream &s, Error &e); #endif /* ERROR_HH */