Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 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 | { |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 13 | namespace Error |
| 14 | { |
| 15 | |
| 16 | struct Event final : public sdbusplus::exception_t |
| 17 | { |
Marri Devender Rao | b0b395b | 2017-10-24 10:14:14 -0500 | [diff] [blame] | 18 | static constexpr auto errName = "org.open_power.Host.Error.Event"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 19 | static constexpr auto errDesc = |
| 20 | "A host system event was received"; |
| 21 | static constexpr auto errWhat = |
Marri Devender Rao | b0b395b | 2017-10-24 10:14:14 -0500 | [diff] [blame] | 22 | "org.open_power.Host.Error.Event: A host system event was received"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 23 | |
| 24 | const char* name() const noexcept override; |
| 25 | const char* description() const noexcept override; |
| 26 | const char* what() const noexcept override; |
| 27 | }; |
| 28 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 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 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 42 | } // namespace Error |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 43 | } // namespace Host |
| 44 | } // namespace open_power |
| 45 | } // namespace org |
| 46 | } // namespace sdbusplus |
| 47 | |