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::generated_exception 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 29 : public sdbusplus::exception::generated_exception 30 { 31 static constexpr auto errName = 32 "org.open_power.Host.Error.MaintenanceProcedure"; 33 static constexpr auto errDesc = 34 "A host system event with a procedure callout"; 35 static constexpr auto errWhat = 36 "org.open_power.Host.Error.MaintenanceProcedure: A host system event " 37 "with a procedure callout"; 38 39 const char* name() const noexcept override; 40 const char* description() const noexcept override; 41 const char* what() const noexcept override; 42 }; 43 44 } // namespace Error 45 } // namespace Host 46 } // namespace open_power 47 } // namespace org 48 } // namespace sdbusplus 49