terom@185: #ifndef ERROR_HH terom@185: #define ERROR_HH terom@185: terom@227: #include "Logger.hh" terom@227: terom@185: #include terom@185: #include terom@185: terom@185: class Error : public std::exception { terom@185: private: terom@185: const char *message; terom@185: terom@185: public: terom@185: Error (const std::string &message) : message(message.c_str()) { } terom@185: terom@185: virtual const char* what() const throw() { terom@185: return message; terom@185: } terom@185: }; terom@185: terom@227: std::ostream& operator<< (std::ostream &s, Error &e); terom@227: terom@185: #endif /* ERROR_HH */