blob: e863633acc8f8287061eaa941dbab25bfd51735d [file] [log] [blame]
Andrew Geisslerf0f496c2017-05-02 13:54:35 -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#include <phosphor-logging/elog.hpp>
11
12
13namespace phosphor
14{
15
16namespace logging
17{
18
19namespace xyz
20{
21namespace openbmc_project
22{
23namespace SoftPowerOff
24{
25namespace Internal
26{
27namespace _SoftOffFailed
28{
29
30} // namespace _SoftOffFailed
31
32struct SoftOffFailed : public sdbusplus::exception_t
33{
34 static constexpr auto errName = "xyz.openbmc_project.SoftPowerOff.Internal.SoftOffFailed";
35 static constexpr auto errDesc = "The SoftOff command to the host control object returned an error";
36 static constexpr auto L = level::ERR;
37 using metadata_types = std::tuple<>;
38
39 const char* name() const noexcept
40 {
41 return errName;
42 }
43
44 const char* description() const noexcept
45 {
46 return errDesc;
47 }
48
49 const char* what() const noexcept
50 {
51 return errName;
52 }
53};
54
55} // namespace Internal
56} // namespace SoftPowerOff
57} // namespace openbmc_project
58} // namespace xyz
59
60} // namespace logging
61} // namespace phosphor