summaryrefslogtreecommitdiffstats
path: root/src/ipmiblob/blob_errors.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipmiblob/blob_errors.hpp')
-rw-r--r--src/ipmiblob/blob_errors.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ipmiblob/blob_errors.hpp b/src/ipmiblob/blob_errors.hpp
new file mode 100644
index 0000000..45f0e46
--- /dev/null
+++ b/src/ipmiblob/blob_errors.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <exception>
+#include <string>
+
+namespace host_tool
+{
+
+class BlobException : public std::exception
+{
+ public:
+ explicit BlobException(const std::string& message) : message(message){};
+
+ virtual const char* what() const noexcept override
+ {
+ return message.c_str();
+ }
+
+ private:
+ std::string message;
+};
+
+} // namespace host_tool
OpenPOWER on IntegriCloud