summaryrefslogtreecommitdiffstats
path: root/bmc/mapper_errors.hpp
blob: 8f30f30fe562ba9695f7cc860920602aa4a88965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <exception>
#include <string>

namespace ipmi_flash
{

class MapperException : public std::exception
{
  public:
    explicit MapperException(const std::string& message) : message(message)
    {
    }

    virtual const char* what() const noexcept override
    {
        return message.c_str();
    }

  private:
    std::string message;
};

} // namespace ipmi_flash
OpenPOWER on IntegriCloud