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 | |
| 29 | } // namespace Error |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 30 | } // namespace Host |
| 31 | } // namespace open_power |
| 32 | } // namespace org |
| 33 | } // namespace sdbusplus |
| 34 | |