blob: 7717f4b9dd8a89520be06543d12e3442b3ab0c7b [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)
Patrick Venture9b37b092020-05-28 20:58:57 -070013 {}
Patrick Venture36bffb42019-06-24 10:47:47 -070014
15 virtual const char* what() const noexcept override
16 {
17 return message.c_str();
18 }
19
20 private:
21 std::string message;
22};
23
24} // namespace ipmi_flash