summaryrefslogtreecommitdiffstats
path: root/src/ipmiblob/blob_errors.hpp
blob: 45f0e46af49c2202d70efeb40896c78377b2eebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
OpenPOWER on IntegriCloud