blob: f5c6466ca1b3a2b6f56afcf925221b31e786fd5d [file] [log] [blame]
Jayanth Othayoth1756c062017-05-23 22:48:11 -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
12namespace sdbusplus
13{
14namespace xyz
15{
16namespace openbmc_project
17{
18namespace Dump
19{
20namespace Monitor
21{
22namespace Error
23{
24 struct InvalidCorePath;
25} // namespace Error
26} // namespace Monitor
27} // namespace Dump
28} // namespace openbmc_project
29} // namespace xyz
30} // namespace sdbusplus
31
32
33namespace phosphor
34{
35
36namespace logging
37{
38
39namespace xyz
40{
41namespace openbmc_project
42{
43namespace Dump
44{
45namespace Monitor
46{
47namespace _InvalidCorePath
48{
49
50struct PATH
51{
52 static constexpr auto str = "PATH=%s";
53 static constexpr auto str_short = "PATH";
54 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
55 explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {};
56 type _entry;
57};
58
59} // namespace _InvalidCorePath
60
61struct InvalidCorePath
62{
63 static constexpr auto L = level::ERR;
64 using PATH = _InvalidCorePath::PATH;
65 using metadata_types = std::tuple<PATH>;
66
67};
68
69} // namespace Monitor
70} // namespace Dump
71} // namespace openbmc_project
72} // namespace xyz
73
74
75namespace details
76{
77
78template <>
79struct map_exception_type<sdbusplus::xyz::openbmc_project::Dump::Monitor::Error::InvalidCorePath>
80{
81 using type = xyz::openbmc_project::Dump::Monitor::InvalidCorePath;
82};
83
84}
85
86
87} // namespace logging
88
89} // namespace phosphor