| Patrick Venture | 0533d0b | 2018-12-13 08:48:24 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |||||
| 3 | #include <exception> | ||||
| 4 | #include <string> | ||||
| 5 | |||||
| 6 | class BlobException : public std::exception | ||||
| 7 | { | ||||
| 8 | public: | ||||
| 9 | explicit BlobException(const std::string& message) : message(message){}; | ||||
| 10 | |||||
| 11 | virtual const char* what() const noexcept override | ||||
| 12 | { | ||||
| 13 | return message.c_str(); | ||||
| 14 | } | ||||
| 15 | |||||
| 16 | private: | ||||
| 17 | std::string message; | ||||
| 18 | }; | ||||