blob: 783aedd83c4877dd1cec7a9c0d3d84fc41c49cb7 [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
Patrick Williamsb3f74ac2021-09-09 06:45:37 -050016struct Event final : public sdbusplus::exception::generated_exception
Tom Joseph448e74e2017-07-24 23:08:56 +053017{
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
Patrick Williamsb3f74ac2021-09-09 06:45:37 -050028struct MaintenanceProcedure final
29 : public sdbusplus::exception::generated_exception
Tom Josephb647d5b2017-10-31 17:25:33 +053030{
Patrick Venture0b02be92018-08-31 11:55:55 -070031 static constexpr auto errName =
32 "org.open_power.Host.Error.MaintenanceProcedure";
Tom Josephb647d5b2017-10-31 17:25:33 +053033 static constexpr auto errDesc =
Patrick Venture0b02be92018-08-31 11:55:55 -070034 "A host system event with a procedure callout";
Tom Josephb647d5b2017-10-31 17:25:33 +053035 static constexpr auto errWhat =
Patrick Venture0b02be92018-08-31 11:55:55 -070036 "org.open_power.Host.Error.MaintenanceProcedure: A host system event "
37 "with a procedure callout";
Tom Josephb647d5b2017-10-31 17:25:33 +053038
39 const char* name() const noexcept override;
40 const char* description() const noexcept override;
41 const char* what() const noexcept override;
42};
43
Tom Joseph448e74e2017-07-24 23:08:56 +053044} // namespace Error
Tom Joseph448e74e2017-07-24 23:08:56 +053045} // namespace Host
46} // namespace open_power
47} // namespace org
48} // namespace sdbusplus