blob: 1aecfbf3058b1fa23ef9b636a4c963d69937205d [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:
Patrick Williamsb80a0252024-08-16 15:21:31 -040012 explicit BlobException(const std::string& message) : message(message) {};
Patrick Venture123b5c02019-03-05 14:01:00 -080013
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