| 13 | namespace Valdi { |
| 14 | |
| 15 | class Exception : public std::exception { |
| 16 | public: |
| 17 | explicit Exception(std::string_view message); |
| 18 | explicit Exception(StringBox message); |
| 19 | explicit Exception(const char* message); |
| 20 | explicit Exception(Error error); |
| 21 | |
| 22 | const char* what() const noexcept override; |
| 23 | |
| 24 | const StringBox& getMessage() const; |
| 25 | |
| 26 | const Error& getError() const; |
| 27 | |
| 28 | private: |
| 29 | Error _error; |
| 30 | }; |
| 31 | |
| 32 | } // namespace Valdi |
no outgoing calls