blob: 28be925ea487472aaf06705f7d3a37c3cae8fb0a [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:
Patrick Williams10388362023-05-10 07:51:09 -050012 explicit MapperException(const std::string& message) : message(message) {}
Patrick Venture36bffb42019-06-24 10:47:47 -070013
14 virtual const char* what() const noexcept override
15 {
16 return message.c_str();
17 }
18
19 private:
20 std::string message;
21};
22
23} // namespace ipmi_flash