Patrick Venture | 123b5c0 | 2019-03-05 14:01:00 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <exception> |
| 4 | #include <string> |
| 5 | |
Patrick Venture | 1470bec | 2019-03-06 07:33:12 -0800 | [diff] [blame] | 6 | namespace ipmiblob |
Patrick Venture | 123b5c0 | 2019-03-05 14:01:00 -0800 | [diff] [blame] | 7 | { |
| 8 | |
| 9 | class BlobException : public std::exception |
| 10 | { |
| 11 | public: |
| 12 | explicit BlobException(const std::string& message) : message(message){}; |
| 13 | |
| 14 | virtual const char* what() const noexcept override |
| 15 | { |
| 16 | return message.c_str(); |
| 17 | } |
| 18 | |
| 19 | private: |
| 20 | std::string message; |
| 21 | }; |
| 22 | |
Patrick Venture | 1470bec | 2019-03-06 07:33:12 -0800 | [diff] [blame] | 23 | } // namespace ipmiblob |