blob: b9121c7568b1828f1bae3e38bcd5295288193d0f [file] [log] [blame]
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -05001// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
3#pragma once
4
Patrick Venture91ac8d32018-11-01 17:03:22 -07005#include <phosphor-logging/elog.hpp>
6#include <phosphor-logging/log.hpp>
7#include <sdbusplus/exception.hpp>
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -05008#include <string>
9#include <tuple>
10#include <type_traits>
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -050011
12namespace sdbusplus
13{
14namespace xyz
15{
16namespace openbmc_project
17{
18namespace Led
19{
20namespace Fru
21{
22namespace Monitor
23{
24namespace Error
25{
Patrick Venture91ac8d32018-11-01 17:03:22 -070026struct InventoryPathError;
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -050027} // namespace Error
28} // namespace Monitor
29} // namespace Fru
30} // namespace Led
31} // namespace openbmc_project
32} // namespace xyz
33} // namespace sdbusplus
34
35namespace sdbusplus
36{
37namespace xyz
38{
39namespace openbmc_project
40{
41namespace Led
42{
43namespace Mapper
44{
45namespace Error
46{
Patrick Venture91ac8d32018-11-01 17:03:22 -070047struct ObjectNotFoundError;
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -050048} // namespace Error
49} // namespace Mapper
50} // namespace Led
51} // namespace openbmc_project
52} // namespace xyz
53} // namespace sdbusplus
54
55namespace sdbusplus
56{
57namespace xyz
58{
59namespace openbmc_project
60{
61namespace Led
62{
63namespace Mapper
64{
65namespace Error
66{
Patrick Venture91ac8d32018-11-01 17:03:22 -070067struct MethodError;
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -050068} // namespace Error
69} // namespace Mapper
70} // namespace Led
71} // namespace openbmc_project
72} // namespace xyz
73} // namespace sdbusplus
74
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -050075namespace phosphor
76{
77
78namespace logging
79{
80
81namespace xyz
82{
83namespace openbmc_project
84{
85namespace Led
86{
87namespace Fru
88{
89namespace Monitor
90{
91namespace _InventoryPathError
92{
93
94struct PATH
95{
96 static constexpr auto str = "PATH=%s";
97 static constexpr auto str_short = "PATH";
Patrick Venture91ac8d32018-11-01 17:03:22 -070098 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
99 explicit constexpr PATH(const char* a) : _entry(entry(str, a)){};
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500100 type _entry;
101};
102
Patrick Venture91ac8d32018-11-01 17:03:22 -0700103} // namespace _InventoryPathError
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500104
105struct InventoryPathError : public sdbusplus::exception_t
106{
Patrick Venture91ac8d32018-11-01 17:03:22 -0700107 static constexpr auto errName =
108 "xyz.openbmc_project.Led.Fru.Monitor.InventoryPathError";
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500109 static constexpr auto errDesc = "Invalid Inventory Path.";
110 static constexpr auto L = level::INFO;
111 using PATH = _InventoryPathError::PATH;
112 using metadata_types = std::tuple<PATH>;
113
114 const char* name() const noexcept
115 {
116 return errName;
117 }
118
119 const char* description() const noexcept
120 {
121 return errDesc;
122 }
123
124 const char* what() const noexcept
125 {
126 return errName;
127 }
128};
129
130} // namespace Monitor
131} // namespace Fru
132} // namespace Led
133} // namespace openbmc_project
134} // namespace xyz
135
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500136namespace details
137{
138
139template <>
Patrick Venture91ac8d32018-11-01 17:03:22 -0700140struct map_exception_type<sdbusplus::xyz::openbmc_project::Led::Fru::Monitor::
141 Error::InventoryPathError>
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500142{
143 using type = xyz::openbmc_project::Led::Fru::Monitor::InventoryPathError;
144};
145
Patrick Venture91ac8d32018-11-01 17:03:22 -0700146} // namespace details
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500147
148namespace xyz
149{
150namespace openbmc_project
151{
152namespace Led
153{
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500154namespace Mapper
155{
156namespace _MethodError
157{
158
159struct METHOD_NAME
160{
161 static constexpr auto str = "METHOD_NAME=%s";
162 static constexpr auto str_short = "METHOD_NAME";
Patrick Venture91ac8d32018-11-01 17:03:22 -0700163 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
164 explicit constexpr METHOD_NAME(const char* a) : _entry(entry(str, a)){};
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500165 type _entry;
166};
167struct PATH
168{
169 static constexpr auto str = "PATH=%s";
170 static constexpr auto str_short = "PATH";
Patrick Venture91ac8d32018-11-01 17:03:22 -0700171 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
172 explicit constexpr PATH(const char* a) : _entry(entry(str, a)){};
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500173 type _entry;
174};
175struct INTERFACE
176{
177 static constexpr auto str = "INTERFACE=%s";
178 static constexpr auto str_short = "INTERFACE";
Patrick Venture91ac8d32018-11-01 17:03:22 -0700179 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
180 explicit constexpr INTERFACE(const char* a) : _entry(entry(str, a)){};
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500181 type _entry;
182};
183
Patrick Venture91ac8d32018-11-01 17:03:22 -0700184} // namespace _MethodError
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500185
186struct MethodError : public sdbusplus::exception_t
187{
Patrick Venture91ac8d32018-11-01 17:03:22 -0700188 static constexpr auto errName =
189 "xyz.openbmc_project.Led.Mapper.MethodError";
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500190 static constexpr auto errDesc = "Failed to invoke ObjectMapper method";
191 static constexpr auto L = level::INFO;
192 using METHOD_NAME = _MethodError::METHOD_NAME;
193 using PATH = _MethodError::PATH;
194 using INTERFACE = _MethodError::INTERFACE;
195 using metadata_types = std::tuple<METHOD_NAME, PATH, INTERFACE>;
196
197 const char* name() const noexcept
198 {
199 return errName;
200 }
201
202 const char* description() const noexcept
203 {
204 return errDesc;
205 }
206
207 const char* what() const noexcept
208 {
209 return errName;
210 }
211};
212
213} // namespace Mapper
214} // namespace Led
215} // namespace openbmc_project
216} // namespace xyz
217
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500218namespace details
219{
220
221template <>
Patrick Venture91ac8d32018-11-01 17:03:22 -0700222struct map_exception_type<
223 sdbusplus::xyz::openbmc_project::Led::Mapper::Error::MethodError>
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500224{
225 using type = xyz::openbmc_project::Led::Mapper::MethodError;
226};
227
Patrick Venture91ac8d32018-11-01 17:03:22 -0700228} // namespace details
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500229
230namespace xyz
231{
232namespace openbmc_project
233{
234namespace Led
235{
236namespace Mapper
237{
238namespace _ObjectNotFoundError
239{
240
241struct METHOD_NAME
242{
243 static constexpr auto str = "METHOD_NAME=%s";
244 static constexpr auto str_short = "METHOD_NAME";
Patrick Venture91ac8d32018-11-01 17:03:22 -0700245 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
246 explicit constexpr METHOD_NAME(const char* a) : _entry(entry(str, a)){};
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500247 type _entry;
248};
249struct PATH
250{
251 static constexpr auto str = "PATH=%s";
252 static constexpr auto str_short = "PATH";
Patrick Venture91ac8d32018-11-01 17:03:22 -0700253 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
254 explicit constexpr PATH(const char* a) : _entry(entry(str, a)){};
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500255 type _entry;
256};
257struct INTERFACE
258{
259 static constexpr auto str = "INTERFACE=%s";
260 static constexpr auto str_short = "INTERFACE";
Patrick Venture91ac8d32018-11-01 17:03:22 -0700261 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
262 explicit constexpr INTERFACE(const char* a) : _entry(entry(str, a)){};
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500263 type _entry;
264};
265
Patrick Venture91ac8d32018-11-01 17:03:22 -0700266} // namespace _ObjectNotFoundError
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500267
268struct ObjectNotFoundError : public sdbusplus::exception_t
269{
Patrick Venture91ac8d32018-11-01 17:03:22 -0700270 static constexpr auto errName =
271 "xyz.openbmc_project.Led.Mapper.ObjectNotFoundError";
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500272 static constexpr auto errDesc = "Failed to get response from the method.";
273 static constexpr auto L = level::INFO;
274 using METHOD_NAME = _ObjectNotFoundError::METHOD_NAME;
275 using PATH = _ObjectNotFoundError::PATH;
276 using INTERFACE = _ObjectNotFoundError::INTERFACE;
277 using metadata_types = std::tuple<METHOD_NAME, PATH, INTERFACE>;
278
279 const char* name() const noexcept
280 {
281 return errName;
282 }
283
284 const char* description() const noexcept
285 {
286 return errDesc;
287 }
288
289 const char* what() const noexcept
290 {
291 return errName;
292 }
293};
294
295} // namespace Mapper
296} // namespace Led
297} // namespace openbmc_project
298} // namespace xyz
299
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500300namespace details
301{
302
303template <>
Patrick Venture91ac8d32018-11-01 17:03:22 -0700304struct map_exception_type<
305 sdbusplus::xyz::openbmc_project::Led::Mapper::Error::ObjectNotFoundError>
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500306{
307 using type = xyz::openbmc_project::Led::Mapper::ObjectNotFoundError;
308};
309
Patrick Venture91ac8d32018-11-01 17:03:22 -0700310} // namespace details
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -0500311
312} // namespace logging
313
314} // namespace phosphor