blob: 78c9a66a72d79e8b986428eb2968fee2f9ad7384 [file] [log] [blame]
Patrick Venture123b5c02019-03-05 14:01:00 -08001#pragma once
2
3#include <exception>
4#include <string>
5
Patrick Venture1470bec2019-03-06 07:33:12 -08006namespace ipmiblob
Patrick Venture123b5c02019-03-05 14:01:00 -08007{
8
9class 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 Venture1470bec2019-03-06 07:33:12 -080023} // namespace ipmiblob