1 #pragma once
2 
3 #include <sdbusplus/exception.hpp>
4 
5 namespace sdbusplus
6 {
7 namespace org
8 {
9 namespace open_power
10 {
11 namespace Host
12 {
13 namespace Error
14 {
15 
16 struct Event final : public sdbusplus::exception_t
17 {
18     static constexpr auto errName = "org.open_power.Host.Error.Event";
19     static constexpr auto errDesc =
20             "A host system event was received";
21     static constexpr auto errWhat =
22             "org.open_power.Host.Error.Event: A host system event was received";
23 
24     const char* name() const noexcept override;
25     const char* description() const noexcept override;
26     const char* what() const noexcept override;
27 };
28 
29 struct MaintenanceProcedure final : public sdbusplus::exception_t
30 {
31     static constexpr auto errName = "org.open_power.Host.Error.MaintenanceProcedure";
32     static constexpr auto errDesc =
33             "A host system event with a procedure callout";
34     static constexpr auto errWhat =
35             "org.open_power.Host.Error.MaintenanceProcedure: A host system event with a procedure callout";
36 
37     const char* name() const noexcept override;
38     const char* description() const noexcept override;
39     const char* what() const noexcept override;
40 };
41 
42 } // namespace Error
43 } // namespace Host
44 } // namespace open_power
45 } // namespace org
46 } // namespace sdbusplus
47 
48