src/Error.hh
changeset 227 39cd6861e43e
parent 185 25becd2cb026
equal deleted inserted replaced
226:381487d07d17 227:39cd6861e43e
     1 #ifndef ERROR_HH
     1 #ifndef ERROR_HH
     2 #define ERROR_HH
     2 #define ERROR_HH
       
     3 
       
     4 #include "Logger.hh"
     3 
     5 
     4 #include <stdexcept>
     6 #include <stdexcept>
     5 #include <string>
     7 #include <string>
     6 
     8 
     7 class Error : public std::exception {
     9 class Error : public std::exception {
    14         virtual const char* what() const throw() {
    16         virtual const char* what() const throw() {
    15             return message;
    17             return message;
    16         }
    18         }
    17 };
    19 };
    18 
    20 
       
    21 std::ostream& operator<< (std::ostream &s, Error &e);
       
    22 
    19 #endif /* ERROR_HH */
    23 #endif /* ERROR_HH */