blob: 8f30f30fe562ba9695f7cc860920602aa4a88965 [file] [log] [blame]
Patrick Venture36bffb42019-06-24 10:47:47 -07001#pragma once
2
3#include <exception>
4#include <string>
5
6namespace ipmi_flash
7{
8
9class MapperException : public std::exception
10{
11 public:
12 explicit MapperException(const std::string& message) : message(message)
13 {
14 }
15
16 virtual const char* what() const noexcept override
17 {
18 return message.c_str();
19 }
20
21 private:
22 std::string message;
23};
24
25} // namespace ipmi_flash