equal
deleted
inserted
replaced
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 */ |