| 74 | }; |
| 75 | |
| 76 | class ErrorCode : public ExceptionCode |
| 77 | { |
| 78 | public: |
| 79 | ErrorCode(const Error::Type code, const bool fatal, const std::string& err) |
| 80 | : ExceptionCode(code, fatal) , err_(err) {} |
| 81 | |
| 82 | virtual const char* what() const throw() { return err_.c_str(); } |
| 83 | |
| 84 | virtual ~ErrorCode() throw() {} |
| 85 | |
| 86 | private: |
| 87 | std::string err_; |
| 88 | }; |
| 89 | |
| 90 | } |
| 91 | #endif |
no outgoing calls
no test coverage detected