Marri Devender Rao | ce640f6 | 2017-05-14 09:11:05 -0500 | [diff] [blame^] | 1 | // This file was autogenerated. Do not edit!
|
| 2 | // See elog-gen.py for more details
|
| 3 | #pragma once
|
| 4 |
|
| 5 | #include <string>
|
| 6 | #include <tuple>
|
| 7 | #include <type_traits>
|
| 8 | #include <sdbusplus/exception.hpp>
|
| 9 | #include <phosphor-logging/log.hpp>
|
| 10 |
|
| 11 | namespace sdbusplus
|
| 12 | {
|
| 13 | namespace org
|
| 14 | {
|
| 15 | namespace open_power
|
| 16 | {
|
| 17 | namespace Host
|
| 18 | {
|
| 19 | namespace Error
|
| 20 | {
|
| 21 | struct Checkstop;
|
| 22 | } // namespace Error
|
| 23 | } // namespace Host
|
| 24 | } // namespace open_power
|
| 25 | } // namespace org
|
| 26 | } // namespace sdbusplus
|
| 27 |
|
| 28 |
|
| 29 | namespace phosphor
|
| 30 | {
|
| 31 |
|
| 32 | namespace logging
|
| 33 | {
|
| 34 |
|
| 35 | namespace org
|
| 36 | {
|
| 37 | namespace open_power
|
| 38 | {
|
| 39 | namespace Host
|
| 40 | {
|
| 41 | namespace _Checkstop
|
| 42 | {
|
| 43 |
|
| 44 |
|
| 45 | } // namespace _Checkstop
|
| 46 |
|
| 47 | struct Checkstop : public sdbusplus::exception_t
|
| 48 | {
|
| 49 | static constexpr auto errName = "org.open_power.Host.Checkstop";
|
| 50 | static constexpr auto errDesc = "Checkstop condition detected";
|
| 51 | static constexpr auto L = level::ERR;
|
| 52 | using metadata_types = std::tuple<>;
|
| 53 |
|
| 54 | const char* name() const noexcept
|
| 55 | {
|
| 56 | return errName;
|
| 57 | }
|
| 58 |
|
| 59 | const char* description() const noexcept
|
| 60 | {
|
| 61 | return errDesc;
|
| 62 | }
|
| 63 |
|
| 64 | const char* what() const noexcept
|
| 65 | {
|
| 66 | return errName;
|
| 67 | }
|
| 68 | };
|
| 69 |
|
| 70 | } // namespace Host
|
| 71 | } // namespace open_power
|
| 72 | } // namespace org
|
| 73 |
|
| 74 |
|
| 75 | namespace details
|
| 76 | {
|
| 77 |
|
| 78 | template <>
|
| 79 | struct map_exception_type<sdbusplus::org::open_power::Host::Error::Checkstop>
|
| 80 | {
|
| 81 | using type = org::open_power::Host::Checkstop;
|
| 82 | };
|
| 83 |
|
| 84 | }
|
| 85 |
|
| 86 |
|
| 87 | } // namespace logging
|
| 88 |
|
| 89 | } // namespace phosphor
|