blob: 92dc04471faf89a7bda86614d9c663eb8070d0f5 [file] [log] [blame]
Marri Devender Raof973c3d2017-04-27 01:08:34 -05001// 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
11namespace sdbusplus
12{
13namespace org
14{
15namespace open_power
16{
17namespace Host
18{
19namespace Error
20{
21 struct Checkstop;
22} // namespace Error
23} // namespace Host
24} // namespace open_power
25} // namespace org
26} // namespace sdbusplus
27
28
29namespace phosphor
30{
31
32namespace logging
33{
34
35namespace org
36{
37namespace open_power
38{
39namespace Host
40{
41namespace _Checkstop
42{
43
44
45} // namespace _Checkstop
46
47struct 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
75namespace details
76{
77
78template <>
79struct 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