diff options
Diffstat (limited to 'src/ipmiblob/blob_errors.hpp')
-rw-r--r-- | src/ipmiblob/blob_errors.hpp | 23 |
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 |