blob: 186e28e5b7a8c47cc261757648bd3c77f4a45e2c [file] [log] [blame]
Tom Joseph448e74e2017-07-24 23:08:56 +05301#pragma once
2
3#include <sdbusplus/exception.hpp>
4
5namespace sdbusplus
6{
7namespace org
8{
9namespace open_power
10{
11namespace Host
12{
Tom Joseph448e74e2017-07-24 23:08:56 +053013namespace Error
14{
15
16struct Event final : public sdbusplus::exception_t
17{
Marri Devender Raob0b395b2017-10-24 10:14:14 -050018 static constexpr auto errName = "org.open_power.Host.Error.Event";
Tom Joseph448e74e2017-07-24 23:08:56 +053019 static constexpr auto errDesc =
20 "A host system event was received";
21 static constexpr auto errWhat =
Marri Devender Raob0b395b2017-10-24 10:14:14 -050022 "org.open_power.Host.Error.Event: A host system event was received";
Tom Joseph448e74e2017-07-24 23:08:56 +053023
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 Joseph448e74e2017-07-24 23:08:56 +053030} // namespace Host
31} // namespace open_power
32} // namespace org
33} // namespace sdbusplus
34