summaryrefslogtreecommitdiffstats
path: root/error-HostEvent.hpp
blob: 40872a1ab3aee0a35c0bc469dd876deb84afc014 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once

#include <sdbusplus/exception.hpp>

namespace sdbusplus
{
namespace org
{
namespace open_power
{
namespace Host
{
namespace Error
{

struct Event final : public sdbusplus::exception_t
{
    static constexpr auto errName = "org.open_power.Host.Error.Event";
    static constexpr auto errDesc =
            "A host system event was received";
    static constexpr auto errWhat =
            "org.open_power.Host.Error.Event: A host system event was received";

    const char* name() const noexcept override;
    const char* description() const noexcept override;
    const char* what() const noexcept override;
};

struct MaintenanceProcedure final : public sdbusplus::exception_t
{
    static constexpr auto errName = "org.open_power.Host.Error.MaintenanceProcedure";
    static constexpr auto errDesc =
            "A host system event with a procedure callout";
    static constexpr auto errWhat =
            "org.open_power.Host.Error.MaintenanceProcedure: A host system event with a procedure callout";

    const char* name() const noexcept override;
    const char* description() const noexcept override;
    const char* what() const noexcept override;
};

} // namespace Error
} // namespace Host
} // namespace open_power
} // namespace org
} // namespace sdbusplus

OpenPOWER on IntegriCloud