blob: 1b2841524b7c008cf07a54c9da532f899f1f884a [file] [log] [blame]
Gunnar Mills93c12d32017-05-10 13:11:53 -05001// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
3#pragma once
4
Gunnar Millsb0ce9962018-09-07 13:39:10 -05005#include <phosphor-logging/elog.hpp>
6#include <phosphor-logging/log.hpp>
7#include <sdbusplus/exception.hpp>
Adriana Kobylak58aa7502020-06-08 11:12:11 -05008
Gunnar Mills93c12d32017-05-10 13:11:53 -05009#include <string>
10#include <tuple>
11#include <type_traits>
Gunnar Mills93c12d32017-05-10 13:11:53 -050012
13namespace sdbusplus
14{
15namespace xyz
16{
17namespace openbmc_project
18{
19namespace Software
20{
Adriana Kobylak43699ca2018-10-17 14:56:29 -050021namespace Image
Gunnar Mills93c12d32017-05-10 13:11:53 -050022{
23namespace Error
24{
James Feistebcc1942020-06-22 13:42:02 -070025struct ManifestFileFailure;
26} // namespace Error
27} // namespace Image
28} // namespace Software
29} // namespace openbmc_project
30} // namespace xyz
31} // namespace sdbusplus
32
33namespace sdbusplus
34{
35namespace xyz
36{
37namespace openbmc_project
38{
39namespace Software
40{
41namespace Image
42{
43namespace Error
44{
45struct ImageFailure;
46} // namespace Error
47} // namespace Image
48} // namespace Software
49} // namespace openbmc_project
50} // namespace xyz
51} // namespace sdbusplus
52
53namespace sdbusplus
54{
55namespace xyz
56{
57namespace openbmc_project
58{
59namespace Software
60{
61namespace Image
62{
63namespace Error
64{
65struct BusyFailure;
66} // namespace Error
67} // namespace Image
68} // namespace Software
69} // namespace openbmc_project
70} // namespace xyz
71} // namespace sdbusplus
72
73namespace sdbusplus
74{
75namespace xyz
76{
77namespace openbmc_project
78{
79namespace Software
80{
81namespace Image
82{
83namespace Error
84{
Adriana Kobylak2285fe02018-02-27 15:36:59 -060085struct UnTarFailure;
Gunnar Mills93c12d32017-05-10 13:11:53 -050086} // namespace Error
Adriana Kobylak43699ca2018-10-17 14:56:29 -050087} // namespace Image
Gunnar Mills93c12d32017-05-10 13:11:53 -050088} // namespace Software
89} // namespace openbmc_project
90} // namespace xyz
91} // namespace sdbusplus
92
93namespace sdbusplus
94{
95namespace xyz
96{
97namespace openbmc_project
98{
99namespace Software
100{
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500101namespace Image
Gunnar Mills93c12d32017-05-10 13:11:53 -0500102{
103namespace Error
104{
Adriana Kobylak2285fe02018-02-27 15:36:59 -0600105struct InternalFailure;
Gunnar Mills93c12d32017-05-10 13:11:53 -0500106} // namespace Error
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500107} // namespace Image
Gunnar Mills93c12d32017-05-10 13:11:53 -0500108} // namespace Software
109} // namespace openbmc_project
110} // namespace xyz
111} // namespace sdbusplus
112
Gunnar Mills93c12d32017-05-10 13:11:53 -0500113namespace phosphor
114{
115
116namespace logging
117{
118
119namespace xyz
120{
121namespace openbmc_project
122{
123namespace Software
124{
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500125namespace Image
Gunnar Mills93c12d32017-05-10 13:11:53 -0500126{
127namespace _UnTarFailure
128{
129
130struct PATH
131{
James Feistebcc1942020-06-22 13:42:02 -0700132 /*
133 * We can't use -fsanitize=undefined if we declare a
134 * 'static constexpr auto str' member, so don't. Instead, open-code the
135 * mako template lookups.
136 */
Gunnar Mills93c12d32017-05-10 13:11:53 -0500137 static constexpr auto str_short = "PATH";
James Feistebcc1942020-06-22 13:42:02 -0700138 using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>;
139 explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){};
Gunnar Mills93c12d32017-05-10 13:11:53 -0500140 type _entry;
141};
142
Adriana Kobylak2285fe02018-02-27 15:36:59 -0600143} // namespace _UnTarFailure
Gunnar Mills93c12d32017-05-10 13:11:53 -0500144
James Feistebcc1942020-06-22 13:42:02 -0700145struct UnTarFailure
Gunnar Mills93c12d32017-05-10 13:11:53 -0500146{
Gunnar Mills93c12d32017-05-10 13:11:53 -0500147 static constexpr auto L = level::ERR;
148 using PATH = _UnTarFailure::PATH;
149 using metadata_types = std::tuple<PATH>;
Gunnar Mills93c12d32017-05-10 13:11:53 -0500150};
151
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500152} // namespace Image
Gunnar Mills93c12d32017-05-10 13:11:53 -0500153} // namespace Software
154} // namespace openbmc_project
155} // namespace xyz
156
Gunnar Mills93c12d32017-05-10 13:11:53 -0500157namespace details
158{
159
160template <>
Adriana Kobylak2285fe02018-02-27 15:36:59 -0600161struct map_exception_type<
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500162 sdbusplus::xyz::openbmc_project::Software::Image::Error::UnTarFailure>
Gunnar Mills93c12d32017-05-10 13:11:53 -0500163{
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500164 using type = xyz::openbmc_project::Software::Image::UnTarFailure;
Gunnar Mills93c12d32017-05-10 13:11:53 -0500165};
James Feistebcc1942020-06-22 13:42:02 -0700166
Gunnar Millsfa34e022018-09-04 10:05:45 -0500167} // namespace details
Gunnar Mills93c12d32017-05-10 13:11:53 -0500168
169namespace xyz
170{
171namespace openbmc_project
172{
173namespace Software
174{
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500175namespace Image
Gunnar Mills93c12d32017-05-10 13:11:53 -0500176{
177namespace _ManifestFileFailure
178{
179
180struct PATH
181{
James Feistebcc1942020-06-22 13:42:02 -0700182 /*
183 * We can't use -fsanitize=undefined if we declare a
184 * 'static constexpr auto str' member, so don't. Instead, open-code the
185 * mako template lookups.
186 */
Gunnar Mills93c12d32017-05-10 13:11:53 -0500187 static constexpr auto str_short = "PATH";
James Feistebcc1942020-06-22 13:42:02 -0700188 using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>;
189 explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){};
Gunnar Mills93c12d32017-05-10 13:11:53 -0500190 type _entry;
191};
192
Adriana Kobylak2285fe02018-02-27 15:36:59 -0600193} // namespace _ManifestFileFailure
Gunnar Mills93c12d32017-05-10 13:11:53 -0500194
James Feistebcc1942020-06-22 13:42:02 -0700195struct ManifestFileFailure
Gunnar Mills93c12d32017-05-10 13:11:53 -0500196{
Gunnar Mills93c12d32017-05-10 13:11:53 -0500197 static constexpr auto L = level::ERR;
198 using PATH = _ManifestFileFailure::PATH;
199 using metadata_types = std::tuple<PATH>;
Gunnar Mills93c12d32017-05-10 13:11:53 -0500200};
201
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500202} // namespace Image
Gunnar Mills93c12d32017-05-10 13:11:53 -0500203} // namespace Software
204} // namespace openbmc_project
205} // namespace xyz
206
Gunnar Mills93c12d32017-05-10 13:11:53 -0500207namespace details
208{
209
210template <>
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500211struct map_exception_type<sdbusplus::xyz::openbmc_project::Software::Image::
Adriana Kobylak2285fe02018-02-27 15:36:59 -0600212 Error::ManifestFileFailure>
Gunnar Mills93c12d32017-05-10 13:11:53 -0500213{
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500214 using type = xyz::openbmc_project::Software::Image::ManifestFileFailure;
Gunnar Mills93c12d32017-05-10 13:11:53 -0500215};
James Feistebcc1942020-06-22 13:42:02 -0700216
Gunnar Millsfa34e022018-09-04 10:05:45 -0500217} // namespace details
Gunnar Mills93c12d32017-05-10 13:11:53 -0500218
219namespace xyz
220{
221namespace openbmc_project
222{
223namespace Software
224{
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500225namespace Image
Gunnar Mills93c12d32017-05-10 13:11:53 -0500226{
227namespace _InternalFailure
228{
229
230struct FAIL
231{
James Feistebcc1942020-06-22 13:42:02 -0700232 /*
233 * We can't use -fsanitize=undefined if we declare a
234 * 'static constexpr auto str' member, so don't. Instead, open-code the
235 * mako template lookups.
236 */
Gunnar Mills93c12d32017-05-10 13:11:53 -0500237 static constexpr auto str_short = "FAIL";
James Feistebcc1942020-06-22 13:42:02 -0700238 using type = std::tuple<std::decay_t<decltype("FAIL=%s")>, const char*>;
239 explicit constexpr FAIL(const char* a) : _entry(entry("FAIL=%s", a)){};
Gunnar Mills93c12d32017-05-10 13:11:53 -0500240 type _entry;
241};
242
Adriana Kobylak2285fe02018-02-27 15:36:59 -0600243} // namespace _InternalFailure
Gunnar Mills93c12d32017-05-10 13:11:53 -0500244
James Feistebcc1942020-06-22 13:42:02 -0700245struct InternalFailure
Gunnar Mills93c12d32017-05-10 13:11:53 -0500246{
Gunnar Mills93c12d32017-05-10 13:11:53 -0500247 static constexpr auto L = level::ERR;
248 using FAIL = _InternalFailure::FAIL;
249 using metadata_types = std::tuple<FAIL>;
Gunnar Mills93c12d32017-05-10 13:11:53 -0500250};
251
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500252} // namespace Image
Gunnar Mills93c12d32017-05-10 13:11:53 -0500253} // namespace Software
254} // namespace openbmc_project
255} // namespace xyz
256
Gunnar Mills93c12d32017-05-10 13:11:53 -0500257namespace details
258{
259
260template <>
Adriana Kobylak2285fe02018-02-27 15:36:59 -0600261struct map_exception_type<
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500262 sdbusplus::xyz::openbmc_project::Software::Image::Error::InternalFailure>
Gunnar Mills93c12d32017-05-10 13:11:53 -0500263{
Adriana Kobylak43699ca2018-10-17 14:56:29 -0500264 using type = xyz::openbmc_project::Software::Image::InternalFailure;
Gunnar Mills93c12d32017-05-10 13:11:53 -0500265};
James Feistebcc1942020-06-22 13:42:02 -0700266
267} // namespace details
268
269namespace xyz
270{
271namespace openbmc_project
272{
273namespace Software
274{
275namespace Image
276{
277namespace _ImageFailure
278{
279
280struct FAIL
281{
282 /*
283 * We can't use -fsanitize=undefined if we declare a
284 * 'static constexpr auto str' member, so don't. Instead, open-code the
285 * mako template lookups.
286 */
287 static constexpr auto str_short = "FAIL";
288 using type = std::tuple<std::decay_t<decltype("FAIL=%s")>, const char*>;
289 explicit constexpr FAIL(const char* a) : _entry(entry("FAIL=%s", a)){};
290 type _entry;
291};
292struct PATH
293{
294 /*
295 * We can't use -fsanitize=undefined if we declare a
296 * 'static constexpr auto str' member, so don't. Instead, open-code the
297 * mako template lookups.
298 */
299 static constexpr auto str_short = "PATH";
300 using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>;
301 explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){};
302 type _entry;
303};
304
305} // namespace _ImageFailure
306
307struct ImageFailure
308{
309 static constexpr auto L = level::ERR;
310 using FAIL = _ImageFailure::FAIL;
311 using PATH = _ImageFailure::PATH;
312 using metadata_types = std::tuple<FAIL, PATH>;
313};
314
315} // namespace Image
316} // namespace Software
317} // namespace openbmc_project
318} // namespace xyz
319
320namespace details
321{
322
323template <>
324struct map_exception_type<
325 sdbusplus::xyz::openbmc_project::Software::Image::Error::ImageFailure>
326{
327 using type = xyz::openbmc_project::Software::Image::ImageFailure;
328};
329
330} // namespace details
331
332namespace xyz
333{
334namespace openbmc_project
335{
336namespace Software
337{
338namespace Image
339{
340namespace _BusyFailure
341{
342
343struct PATH
344{
345 /*
346 * We can't use -fsanitize=undefined if we declare a
347 * 'static constexpr auto str' member, so don't. Instead, open-code the
348 * mako template lookups.
349 */
350 static constexpr auto str_short = "PATH";
351 using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>;
352 explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){};
353 type _entry;
354};
355
356} // namespace _BusyFailure
357
358struct BusyFailure
359{
360 static constexpr auto L = level::ERR;
361 using PATH = _BusyFailure::PATH;
362 using metadata_types = std::tuple<PATH>;
363};
364
365} // namespace Image
366} // namespace Software
367} // namespace openbmc_project
368} // namespace xyz
369
370namespace details
371{
372
373template <>
374struct map_exception_type<
375 sdbusplus::xyz::openbmc_project::Software::Image::Error::BusyFailure>
376{
377 using type = xyz::openbmc_project::Software::Image::BusyFailure;
378};
379
Gunnar Millsfa34e022018-09-04 10:05:45 -0500380} // namespace details
Gunnar Mills93c12d32017-05-10 13:11:53 -0500381
Gunnar Mills93c12d32017-05-10 13:11:53 -0500382} // namespace logging
383
384} // namespace phosphor