blob: 40872a1ab3aee0a35c0bc469dd876deb84afc014 [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
Tom Josephb647d5b2017-10-31 17:25:33 +053029struct 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 Joseph448e74e2017-07-24 23:08:56 +053042} // namespace Error
Tom Joseph448e74e2017-07-24 23:08:56 +053043} // namespace Host
44} // namespace open_power
45} // namespace org
46} // namespace sdbusplus
47