blob: 72dc6e9570c4ae0b8350081cf0bebb1d20222e32 [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";
Patrick Venture0b02be92018-08-31 11:55:55 -070019 static constexpr auto errDesc = "A host system event was received";
Tom Joseph448e74e2017-07-24 23:08:56 +053020 static constexpr auto errWhat =
Patrick Venture0b02be92018-08-31 11:55:55 -070021 "org.open_power.Host.Error.Event: A host system event was received";
Tom Joseph448e74e2017-07-24 23:08:56 +053022
23 const char* name() const noexcept override;
24 const char* description() const noexcept override;
25 const char* what() const noexcept override;
26};
27
Tom Josephb647d5b2017-10-31 17:25:33 +053028struct MaintenanceProcedure final : public sdbusplus::exception_t
29{
Patrick Venture0b02be92018-08-31 11:55:55 -070030 static constexpr auto errName =
31 "org.open_power.Host.Error.MaintenanceProcedure";
Tom Josephb647d5b2017-10-31 17:25:33 +053032 static constexpr auto errDesc =
Patrick Venture0b02be92018-08-31 11:55:55 -070033 "A host system event with a procedure callout";
Tom Josephb647d5b2017-10-31 17:25:33 +053034 static constexpr auto errWhat =
Patrick Venture0b02be92018-08-31 11:55:55 -070035 "org.open_power.Host.Error.MaintenanceProcedure: A host system event "
36 "with a procedure callout";
Tom Josephb647d5b2017-10-31 17:25:33 +053037
38 const char* name() const noexcept override;
39 const char* description() const noexcept override;
40 const char* what() const noexcept override;
41};
42
Tom Joseph448e74e2017-07-24 23:08:56 +053043} // namespace Error
Tom Joseph448e74e2017-07-24 23:08:56 +053044} // namespace Host
45} // namespace open_power
46} // namespace org
47} // namespace sdbusplus