| 22 | #include <sstream> |
| 23 | |
| 24 | class Error : public std::exception |
| 25 | // This is a generic exception class which takes a string of some sort |
| 26 | // to represent what went wrong. |
| 27 | { |
| 28 | std::string m_error; |
| 29 | |
| 30 | public: |
| 31 | Error(const char *error); |
| 32 | Error(const std::string &error); |
| 33 | Error(const std::stringstream &errorss); |
| 34 | Error(const std::ostringstream &errorss); |
| 35 | |
| 36 | virtual ~Error() throw(); |
| 37 | |
| 38 | virtual const char* what() const throw(); |
| 39 | }; |
| 40 | |
| 41 | #endif // INCLUDED_ERROR |
no outgoing calls
no test coverage detected