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 = "A host system event was received";
20     static constexpr auto errWhat =
21         "org.open_power.Host.Error.Event: A host system event was received";
22 
23     const char* name() const noexcept override;
24     const char* description() const noexcept override;
25     const char* what() const noexcept override;
26 };
27 
28 struct MaintenanceProcedure final : public sdbusplus::exception_t
29 {
30     static constexpr auto errName =
31         "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 "
36         "with a procedure callout";
37 
38     const char* name() const noexcept override;
39     const char* description() const noexcept override;
40     const char* what() const noexcept override;
41 };
42 
43 } // namespace Error
44 } // namespace Host
45 } // namespace open_power
46 } // namespace org
47 } // namespace sdbusplus
48