blob: 823ffdb053663a927760ce91b40c0977f2a5bfbd [file] [log] [blame]
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05301// 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 Common
19{
20namespace Error
21{
22 struct Timeout;
23} // namespace Error
24} // namespace Common
25} // namespace openbmc_project
26} // namespace xyz
27} // namespace sdbusplus
28
29namespace sdbusplus
30{
31namespace xyz
32{
33namespace openbmc_project
34{
35namespace Common
36{
37namespace Callout
38{
39namespace Error
40{
41 struct GPIO;
42} // namespace Error
43} // namespace Callout
44} // namespace Common
45} // namespace openbmc_project
46} // namespace xyz
47} // namespace sdbusplus
48
49namespace sdbusplus
50{
51namespace xyz
52{
53namespace openbmc_project
54{
55namespace Common
56{
57namespace Error
58{
59 struct InvalidArgument;
60} // namespace Error
61} // namespace Common
62} // namespace openbmc_project
63} // namespace xyz
64} // namespace sdbusplus
65
66namespace sdbusplus
67{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053068namespace org
69{
70namespace open_power
71{
72namespace OCC
73{
74namespace Device
75{
76namespace Error
77{
78 struct WriteFailure;
79} // namespace Error
80} // namespace Device
81} // namespace OCC
82} // namespace open_power
83} // namespace org
84} // namespace sdbusplus
85
86namespace sdbusplus
87{
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053088namespace xyz
89{
90namespace openbmc_project
91{
92namespace State
93{
94namespace Host
95{
96namespace Error
97{
98 struct SoftOffTimeout;
99} // namespace Error
100} // namespace Host
101} // namespace State
102} // namespace openbmc_project
103} // namespace xyz
104} // namespace sdbusplus
105
106namespace sdbusplus
107{
108namespace xyz
109{
110namespace openbmc_project
111{
112namespace Common
113{
114namespace Callout
115{
116namespace Error
117{
118 struct Inventory;
119} // namespace Error
120} // namespace Callout
121} // namespace Common
122} // namespace openbmc_project
123} // namespace xyz
124} // namespace sdbusplus
125
126namespace sdbusplus
127{
128namespace xyz
129{
130namespace openbmc_project
131{
132namespace Common
133{
134namespace Callout
135{
136namespace Error
137{
138 struct IIC;
139} // namespace Error
140} // namespace Callout
141} // namespace Common
142} // namespace openbmc_project
143} // namespace xyz
144} // namespace sdbusplus
145
146namespace sdbusplus
147{
148namespace xyz
149{
150namespace openbmc_project
151{
152namespace Common
153{
154namespace File
155{
156namespace Error
157{
158 struct Open;
159} // namespace Error
160} // namespace File
161} // namespace Common
162} // namespace openbmc_project
163} // namespace xyz
164} // namespace sdbusplus
165
166namespace sdbusplus
167{
168namespace xyz
169{
170namespace openbmc_project
171{
172namespace Common
173{
174namespace Error
175{
176 struct InternalFailure;
177} // namespace Error
178} // namespace Common
179} // namespace openbmc_project
180} // namespace xyz
181} // namespace sdbusplus
182
183namespace sdbusplus
184{
185namespace xyz
186{
187namespace openbmc_project
188{
189namespace Common
190{
191namespace Callout
192{
193namespace Error
194{
195 struct Device;
196} // namespace Error
197} // namespace Callout
198} // namespace Common
199} // namespace openbmc_project
200} // namespace xyz
201} // namespace sdbusplus
202
203namespace sdbusplus
204{
205namespace xyz
206{
207namespace openbmc_project
208{
209namespace Control
210{
211namespace Device
212{
213namespace Error
214{
215 struct WriteFailure;
216} // namespace Error
217} // namespace Device
218} // namespace Control
219} // namespace openbmc_project
220} // namespace xyz
221} // namespace sdbusplus
222
223namespace sdbusplus
224{
225namespace xyz
226{
227namespace openbmc_project
228{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530229namespace Sensor
230{
231namespace Device
232{
233namespace Error
234{
235 struct ReadFailure;
236} // namespace Error
237} // namespace Device
238} // namespace Sensor
239} // namespace openbmc_project
240} // namespace xyz
241} // namespace sdbusplus
242
243namespace sdbusplus
244{
245namespace xyz
246{
247namespace openbmc_project
248{
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530249namespace Common
250{
251namespace File
252{
253namespace Error
254{
255 struct Seek;
256} // namespace Error
257} // namespace File
258} // namespace Common
259} // namespace openbmc_project
260} // namespace xyz
261} // namespace sdbusplus
262
263namespace sdbusplus
264{
265namespace org
266{
267namespace open_power
268{
269namespace OCC
270{
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530271namespace Device
272{
273namespace Error
274{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530275 struct ConfigFailure;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530276} // namespace Error
277} // namespace Device
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530278} // namespace OCC
279} // namespace open_power
280} // namespace org
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530281} // namespace sdbusplus
282
283namespace sdbusplus
284{
285namespace org
286{
287namespace open_power
288{
289namespace OCC
290{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530291namespace Device
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530292{
293namespace Error
294{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530295 struct OpenFailure;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530296} // namespace Error
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530297} // namespace Device
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530298} // namespace OCC
299} // namespace open_power
300} // namespace org
301} // namespace sdbusplus
302
303namespace sdbusplus
304{
305namespace xyz
306{
307namespace openbmc_project
308{
309namespace Common
310{
311namespace Callout
312{
313namespace Error
314{
315 struct IPMISensor;
316} // namespace Error
317} // namespace Callout
318} // namespace Common
319} // namespace openbmc_project
320} // namespace xyz
321} // namespace sdbusplus
322
323namespace sdbusplus
324{
325namespace org
326{
327namespace open_power
328{
329namespace OCC
330{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530331namespace Device
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530332{
333namespace Error
334{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530335 struct ReadFailure;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530336} // namespace Error
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530337} // namespace Device
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530338} // namespace OCC
339} // namespace open_power
340} // namespace org
341} // namespace sdbusplus
342
343namespace sdbusplus
344{
345namespace xyz
346{
347namespace openbmc_project
348{
349namespace Control
350{
351namespace Host
352{
353namespace Error
354{
355 struct CommandNotSupported;
356} // namespace Error
357} // namespace Host
358} // namespace Control
359} // namespace openbmc_project
360} // namespace xyz
361} // namespace sdbusplus
362
363
364namespace phosphor
365{
366
367namespace logging
368{
369
370namespace xyz
371{
372namespace openbmc_project
373{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530374namespace Control
375{
376namespace Host
377{
378namespace _CommandNotSupported
379{
380
381
382} // namespace _CommandNotSupported
383
384struct CommandNotSupported
385{
386 static constexpr auto L = level::ERR;
387 using metadata_types = std::tuple<>;
388
389};
390
391} // namespace Host
392} // namespace Control
393} // namespace openbmc_project
394} // namespace xyz
395
396
397namespace details
398{
399
400template <>
401struct map_exception_type<sdbusplus::xyz::openbmc_project::Control::Host::Error::CommandNotSupported>
402{
403 using type = xyz::openbmc_project::Control::Host::CommandNotSupported;
404};
405
406}
407
408namespace xyz
409{
410namespace openbmc_project
411{
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530412namespace Common
413{
414namespace _Timeout
415{
416
417struct TIMEOUT_IN_MSEC
418{
419 static constexpr auto str = "TIMEOUT_IN_MSEC=%llu";
420 static constexpr auto str_short = "TIMEOUT_IN_MSEC";
421 using type = std::tuple<std::decay_t<decltype(str)>,uint64_t>;
422 explicit constexpr TIMEOUT_IN_MSEC(uint64_t a) : _entry(entry(str, a)) {};
423 type _entry;
424};
425
426} // namespace _Timeout
427
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530428struct Timeout
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530429{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530430 static constexpr auto L = level::ERR;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530431 using TIMEOUT_IN_MSEC = _Timeout::TIMEOUT_IN_MSEC;
432 using metadata_types = std::tuple<TIMEOUT_IN_MSEC>;
433
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530434};
435
436} // namespace Common
437} // namespace openbmc_project
438} // namespace xyz
439
440
441namespace details
442{
443
444template <>
445struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Error::Timeout>
446{
447 using type = xyz::openbmc_project::Common::Timeout;
448};
449
450}
451
452namespace xyz
453{
454namespace openbmc_project
455{
456namespace Common
457{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530458namespace _InternalFailure
459{
460
461
462} // namespace _InternalFailure
463
464struct InternalFailure
465{
466 static constexpr auto L = level::ERR;
467 using metadata_types = std::tuple<>;
468
469};
470
471} // namespace Common
472} // namespace openbmc_project
473} // namespace xyz
474
475
476namespace details
477{
478
479template <>
480struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure>
481{
482 using type = xyz::openbmc_project::Common::InternalFailure;
483};
484
485}
486
487namespace xyz
488{
489namespace openbmc_project
490{
491namespace Common
492{
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530493namespace _InvalidArgument
494{
495
496struct ARGUMENT_NAME
497{
498 static constexpr auto str = "ARGUMENT_NAME=%s";
499 static constexpr auto str_short = "ARGUMENT_NAME";
500 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
501 explicit constexpr ARGUMENT_NAME(const char* a) : _entry(entry(str, a)) {};
502 type _entry;
503};
504struct ARGUMENT_VALUE
505{
506 static constexpr auto str = "ARGUMENT_VALUE=%s";
507 static constexpr auto str_short = "ARGUMENT_VALUE";
508 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
509 explicit constexpr ARGUMENT_VALUE(const char* a) : _entry(entry(str, a)) {};
510 type _entry;
511};
512
513} // namespace _InvalidArgument
514
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530515struct InvalidArgument
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530516{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530517 static constexpr auto L = level::ERR;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530518 using ARGUMENT_NAME = _InvalidArgument::ARGUMENT_NAME;
519 using ARGUMENT_VALUE = _InvalidArgument::ARGUMENT_VALUE;
520 using metadata_types = std::tuple<ARGUMENT_NAME, ARGUMENT_VALUE>;
521
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530522};
523
524} // namespace Common
525} // namespace openbmc_project
526} // namespace xyz
527
528
529namespace details
530{
531
532template <>
533struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument>
534{
535 using type = xyz::openbmc_project::Common::InvalidArgument;
536};
537
538}
539
540namespace xyz
541{
542namespace openbmc_project
543{
544namespace Common
545{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530546namespace File
547{
548namespace _Open
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530549{
550
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530551struct ERRNO
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530552{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530553 static constexpr auto str = "ERRNO=%d";
554 static constexpr auto str_short = "ERRNO";
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530555 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530556 explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)) {};
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530557 type _entry;
558};
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530559struct PATH
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530560{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530561 static constexpr auto str = "PATH=%s";
562 static constexpr auto str_short = "PATH";
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530563 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530564 explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {};
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530565 type _entry;
566};
567
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530568} // namespace _Open
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530569
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530570struct Open
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530571{
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530572 static constexpr auto L = level::ERR;
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530573 using ERRNO = _Open::ERRNO;
574 using PATH = _Open::PATH;
575 using metadata_types = std::tuple<ERRNO, PATH>;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530576
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530577};
578
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530579} // namespace File
580} // namespace Common
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530581} // namespace openbmc_project
582} // namespace xyz
583
584
585namespace details
586{
587
588template <>
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530589struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::File::Error::Open>
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530590{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530591 using type = xyz::openbmc_project::Common::File::Open;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530592};
593
594}
595
596namespace xyz
597{
598namespace openbmc_project
599{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530600namespace Common
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530601{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530602namespace File
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530603{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530604namespace _Seek
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530605{
606
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530607struct OFFSET
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530608{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530609 static constexpr auto str = "OFFSET=%ll";
610 static constexpr auto str_short = "OFFSET";
611 using type = std::tuple<std::decay_t<decltype(str)>,int64_t>;
612 explicit constexpr OFFSET(int64_t a) : _entry(entry(str, a)) {};
613 type _entry;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530614};
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530615struct WHENCE
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530616{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530617 static constexpr auto str = "WHENCE=%d";
618 static constexpr auto str_short = "WHENCE";
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530619 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530620 explicit constexpr WHENCE(int32_t a) : _entry(entry(str, a)) {};
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530621 type _entry;
622};
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530623struct ERRNO
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530624{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530625 static constexpr auto str = "ERRNO=%d";
626 static constexpr auto str_short = "ERRNO";
627 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
628 explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)) {};
629 type _entry;
630};
631struct PATH
632{
633 static constexpr auto str = "PATH=%s";
634 static constexpr auto str_short = "PATH";
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530635 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530636 explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {};
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530637 type _entry;
638};
639
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530640} // namespace _Seek
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530641
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530642struct Seek
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530643{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530644 static constexpr auto L = level::ERR;
645 using OFFSET = _Seek::OFFSET;
646 using WHENCE = _Seek::WHENCE;
647 using ERRNO = _Seek::ERRNO;
648 using PATH = _Seek::PATH;
649 using metadata_types = std::tuple<OFFSET, WHENCE, ERRNO, PATH>;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530650
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530651};
652
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530653} // namespace File
654} // namespace Common
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530655} // namespace openbmc_project
656} // namespace xyz
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530657
658
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530659namespace details
660{
661
662template <>
663struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::File::Error::Seek>
664{
665 using type = xyz::openbmc_project::Common::File::Seek;
666};
667
668}
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530669
670namespace example
671{
672namespace xyz
673{
674namespace openbmc_project
675{
676namespace Example
677{
678namespace Elog
679{
680namespace _TestErrorTwo
681{
682
683struct DEV_ADDR
684{
685 static constexpr auto str = "DEV_ADDR=0x%.8X";
686 static constexpr auto str_short = "DEV_ADDR";
687 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
688 explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)) {};
689 type _entry;
690};
691struct DEV_ID
692{
693 static constexpr auto str = "DEV_ID=%u";
694 static constexpr auto str_short = "DEV_ID";
695 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
696 explicit constexpr DEV_ID(uint32_t a) : _entry(entry(str, a)) {};
697 type _entry;
698};
699struct DEV_NAME
700{
701 static constexpr auto str = "DEV_NAME=%s";
702 static constexpr auto str_short = "DEV_NAME";
703 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
704 explicit constexpr DEV_NAME(const char* a) : _entry(entry(str, a)) {};
705 type _entry;
706};
707
708} // namespace _TestErrorTwo
709
710struct TestErrorTwo : public sdbusplus::exception_t
711{
712 static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.TestErrorTwo";
713 static constexpr auto errDesc = "This is test error two";
714 static constexpr auto L = level::ERR;
715 using DEV_ADDR = _TestErrorTwo::DEV_ADDR;
716 using DEV_ID = _TestErrorTwo::DEV_ID;
717 using DEV_NAME = _TestErrorTwo::DEV_NAME;
718 using metadata_types = std::tuple<DEV_ADDR, DEV_ID, DEV_NAME>;
719
720 const char* name() const noexcept
721 {
722 return errName;
723 }
724
725 const char* description() const noexcept
726 {
727 return errDesc;
728 }
729
730 const char* what() const noexcept
731 {
732 return errName;
733 }
734};
735
736} // namespace Elog
737} // namespace Example
738} // namespace openbmc_project
739} // namespace xyz
740} // namespace example
741
742
743
744namespace example
745{
746namespace xyz
747{
748namespace openbmc_project
749{
750namespace Example
751{
752namespace Elog
753{
754namespace _AutoTestSimple
755{
756
757struct STRING
758{
759 static constexpr auto str = "STRING=%s";
760 static constexpr auto str_short = "STRING";
761 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
762 explicit constexpr STRING(const char* a) : _entry(entry(str, a)) {};
763 type _entry;
764};
765
766} // namespace _AutoTestSimple
767
768struct AutoTestSimple : public sdbusplus::exception_t
769{
770 static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.AutoTestSimple";
771 static constexpr auto errDesc = "This is a simple test error.";
772 static constexpr auto L = level::ERR;
773 using STRING = _AutoTestSimple::STRING;
774 using metadata_types = std::tuple<STRING>;
775
776 const char* name() const noexcept
777 {
778 return errName;
779 }
780
781 const char* description() const noexcept
782 {
783 return errDesc;
784 }
785
786 const char* what() const noexcept
787 {
788 return errName;
789 }
790};
791
792} // namespace Elog
793} // namespace Example
794} // namespace openbmc_project
795} // namespace xyz
796} // namespace example
797
798
799
800namespace example
801{
802namespace xyz
803{
804namespace openbmc_project
805{
806namespace Example
807{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530808namespace Device
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530809{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530810namespace _Callout
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530811{
812
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530813struct CALLOUT_ERRNO_TEST
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530814{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530815 static constexpr auto str = "CALLOUT_ERRNO_TEST=%d";
816 static constexpr auto str_short = "CALLOUT_ERRNO_TEST";
817 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
818 explicit constexpr CALLOUT_ERRNO_TEST(int32_t a) : _entry(entry(str, a)) {};
819 type _entry;
820};
821struct CALLOUT_DEVICE_PATH_TEST
822{
823 static constexpr auto str = "CALLOUT_DEVICE_PATH_TEST=%s";
824 static constexpr auto str_short = "CALLOUT_DEVICE_PATH_TEST";
825 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
826 explicit constexpr CALLOUT_DEVICE_PATH_TEST(const char* a) : _entry(entry(str, a)) {};
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530827 type _entry;
828};
829
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530830} // namespace _Callout
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530831
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530832struct Callout : public sdbusplus::exception_t
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530833{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530834 static constexpr auto errName = "example.xyz.openbmc_project.Example.Device.Callout";
835 static constexpr auto errDesc = "Generic device callout";
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530836 static constexpr auto L = level::ERR;
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530837 using CALLOUT_ERRNO_TEST = _Callout::CALLOUT_ERRNO_TEST;
838 using CALLOUT_DEVICE_PATH_TEST = _Callout::CALLOUT_DEVICE_PATH_TEST;
839 using metadata_types = std::tuple<CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530840
841 const char* name() const noexcept
842 {
843 return errName;
844 }
845
846 const char* description() const noexcept
847 {
848 return errDesc;
849 }
850
851 const char* what() const noexcept
852 {
853 return errName;
854 }
855};
856
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530857} // namespace Device
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530858} // namespace Example
859} // namespace openbmc_project
860} // namespace xyz
861} // namespace example
862
863
864
865namespace xyz
866{
867namespace openbmc_project
868{
869namespace Common
870{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530871namespace Callout
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530872{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530873namespace _Device
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530874{
875
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530876struct CALLOUT_ERRNO
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530877{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530878 static constexpr auto str = "CALLOUT_ERRNO=%d";
879 static constexpr auto str_short = "CALLOUT_ERRNO";
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530880 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530881 explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {};
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530882 type _entry;
883};
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530884struct CALLOUT_DEVICE_PATH
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530885{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530886 static constexpr auto str = "CALLOUT_DEVICE_PATH=%s";
887 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530888 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530889 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {};
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530890 type _entry;
891};
892
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530893} // namespace _Device
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530894
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530895struct Device
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530896{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530897 static constexpr auto L = level::ERR;
898 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
899 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
900 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530901
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530902};
903
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530904} // namespace Callout
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530905} // namespace Common
906} // namespace openbmc_project
907} // namespace xyz
908
909
910namespace details
911{
912
913template <>
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530914struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530915{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530916 using type = xyz::openbmc_project::Common::Callout::Device;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530917};
918
919}
920
921namespace xyz
922{
923namespace openbmc_project
924{
925namespace Common
926{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530927namespace Callout
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530928{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530929namespace _GPIO
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530930{
931
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530932struct CALLOUT_GPIO_NUM
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530933{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530934 static constexpr auto str = "CALLOUT_GPIO_NUM=%u";
935 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
936 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
937 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {};
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530938 type _entry;
939};
940
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530941} // namespace _GPIO
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530942
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530943struct GPIO
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530944{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530945 static constexpr auto L = level::ERR;
946 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
947 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
948 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
949 using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530950
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530951};
952
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530953} // namespace Callout
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530954} // namespace Common
955} // namespace openbmc_project
956} // namespace xyz
957
958
959namespace details
960{
961
962template <>
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530963struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +0530964{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +0530965 using type = xyz::openbmc_project::Common::Callout::GPIO;
966};
967
968}
969
970namespace xyz
971{
972namespace openbmc_project
973{
974namespace Common
975{
976namespace Callout
977{
978namespace _IIC
979{
980
981struct CALLOUT_IIC_BUS
982{
983 static constexpr auto str = "CALLOUT_IIC_BUS=%s";
984 static constexpr auto str_short = "CALLOUT_IIC_BUS";
985 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
986 explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {};
987 type _entry;
988};
989struct CALLOUT_IIC_ADDR
990{
991 static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx";
992 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
993 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
994 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {};
995 type _entry;
996};
997
998} // namespace _IIC
999
1000struct IIC
1001{
1002 static constexpr auto L = level::ERR;
1003 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
1004 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
1005 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1006 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1007 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1008
1009};
1010
1011} // namespace Callout
1012} // namespace Common
1013} // namespace openbmc_project
1014} // namespace xyz
1015
1016
1017namespace details
1018{
1019
1020template <>
1021struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
1022{
1023 using type = xyz::openbmc_project::Common::Callout::IIC;
1024};
1025
1026}
1027
1028namespace xyz
1029{
1030namespace openbmc_project
1031{
1032namespace Common
1033{
1034namespace Callout
1035{
1036namespace _Inventory
1037{
1038
1039struct CALLOUT_INVENTORY_PATH
1040{
1041 static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s";
1042 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
1043 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1044 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {};
1045 type _entry;
1046};
1047
1048} // namespace _Inventory
1049
1050struct Inventory
1051{
1052 static constexpr auto L = level::ERR;
1053 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
1054 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
1055
1056};
1057
1058} // namespace Callout
1059} // namespace Common
1060} // namespace openbmc_project
1061} // namespace xyz
1062
1063
1064namespace details
1065{
1066
1067template <>
1068struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
1069{
1070 using type = xyz::openbmc_project::Common::Callout::Inventory;
1071};
1072
1073}
1074
1075namespace xyz
1076{
1077namespace openbmc_project
1078{
1079namespace Common
1080{
1081namespace Callout
1082{
1083namespace _IPMISensor
1084{
1085
1086struct CALLOUT_IPMI_SENSOR_NUM
1087{
1088 static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u";
1089 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
1090 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
1091 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {};
1092 type _entry;
1093};
1094
1095} // namespace _IPMISensor
1096
1097struct IPMISensor
1098{
1099 static constexpr auto L = level::ERR;
1100 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
1101 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
1102
1103};
1104
1105} // namespace Callout
1106} // namespace Common
1107} // namespace openbmc_project
1108} // namespace xyz
1109
1110
1111namespace details
1112{
1113
1114template <>
1115struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
1116{
1117 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05301118};
1119
1120}
1121
1122namespace xyz
1123{
1124namespace openbmc_project
1125{
1126namespace State
1127{
1128namespace Host
1129{
1130namespace _SoftOffTimeout
1131{
1132
1133
1134} // namespace _SoftOffTimeout
1135
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +05301136struct SoftOffTimeout
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05301137{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +05301138 static constexpr auto L = level::ERR;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05301139 using TIMEOUT_IN_MSEC = xyz::openbmc_project::Common::Timeout::TIMEOUT_IN_MSEC;
1140 using metadata_types = std::tuple<TIMEOUT_IN_MSEC>;
1141
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05301142};
1143
1144} // namespace Host
1145} // namespace State
1146} // namespace openbmc_project
1147} // namespace xyz
1148
1149
1150namespace details
1151{
1152
1153template <>
1154struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Host::Error::SoftOffTimeout>
1155{
1156 using type = xyz::openbmc_project::State::Host::SoftOffTimeout;
1157};
1158
1159}
1160
1161namespace xyz
1162{
1163namespace openbmc_project
1164{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +05301165namespace Control
1166{
1167namespace Device
1168{
1169namespace _WriteFailure
1170{
1171
1172
1173} // namespace _WriteFailure
1174
1175struct WriteFailure
1176{
1177 static constexpr auto L = level::ERR;
1178 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1179 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1180 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1181
1182};
1183
1184} // namespace Device
1185} // namespace Control
1186} // namespace openbmc_project
1187} // namespace xyz
1188
1189
1190namespace details
1191{
1192
1193template <>
1194struct map_exception_type<sdbusplus::xyz::openbmc_project::Control::Device::Error::WriteFailure>
1195{
1196 using type = xyz::openbmc_project::Control::Device::WriteFailure;
1197};
1198
1199}
1200
1201namespace org
1202{
1203namespace open_power
1204{
1205namespace OCC
1206{
1207namespace Device
1208{
1209namespace _OpenFailure
1210{
1211
1212
1213} // namespace _OpenFailure
1214
1215struct OpenFailure
1216{
1217 static constexpr auto L = level::ERR;
1218 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1219 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1220 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1221
1222};
1223
1224} // namespace Device
1225} // namespace OCC
1226} // namespace open_power
1227} // namespace org
1228
1229
1230namespace details
1231{
1232
1233template <>
1234struct map_exception_type<sdbusplus::org::open_power::OCC::Device::Error::OpenFailure>
1235{
1236 using type = org::open_power::OCC::Device::OpenFailure;
1237};
1238
1239}
1240
1241namespace org
1242{
1243namespace open_power
1244{
1245namespace OCC
1246{
1247namespace Device
1248{
1249namespace _ReadFailure
1250{
1251
1252
1253} // namespace _ReadFailure
1254
1255struct ReadFailure
1256{
1257 static constexpr auto L = level::ERR;
1258 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1259 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1260 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1261
1262};
1263
1264} // namespace Device
1265} // namespace OCC
1266} // namespace open_power
1267} // namespace org
1268
1269
1270namespace details
1271{
1272
1273template <>
1274struct map_exception_type<sdbusplus::org::open_power::OCC::Device::Error::ReadFailure>
1275{
1276 using type = org::open_power::OCC::Device::ReadFailure;
1277};
1278
1279}
1280
1281namespace org
1282{
1283namespace open_power
1284{
1285namespace OCC
1286{
1287namespace Device
1288{
1289namespace _WriteFailure
1290{
1291
1292
1293} // namespace _WriteFailure
1294
1295struct WriteFailure
1296{
1297 static constexpr auto L = level::ERR;
1298 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1299 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1300 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1301
1302};
1303
1304} // namespace Device
1305} // namespace OCC
1306} // namespace open_power
1307} // namespace org
1308
1309
1310namespace details
1311{
1312
1313template <>
1314struct map_exception_type<sdbusplus::org::open_power::OCC::Device::Error::WriteFailure>
1315{
1316 using type = org::open_power::OCC::Device::WriteFailure;
1317};
1318
1319}
1320
1321namespace org
1322{
1323namespace open_power
1324{
1325namespace OCC
1326{
1327namespace Device
1328{
1329namespace _ConfigFailure
1330{
1331
1332
1333} // namespace _ConfigFailure
1334
1335struct ConfigFailure
1336{
1337 static constexpr auto L = level::ERR;
1338 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1339 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1340 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1341
1342};
1343
1344} // namespace Device
1345} // namespace OCC
1346} // namespace open_power
1347} // namespace org
1348
1349
1350namespace details
1351{
1352
1353template <>
1354struct map_exception_type<sdbusplus::org::open_power::OCC::Device::Error::ConfigFailure>
1355{
1356 using type = org::open_power::OCC::Device::ConfigFailure;
1357};
1358
1359}
1360
1361namespace xyz
1362{
1363namespace openbmc_project
1364{
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05301365namespace Sensor
1366{
1367namespace Device
1368{
1369namespace _ReadFailure
1370{
1371
1372
1373} // namespace _ReadFailure
1374
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +05301375struct ReadFailure
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05301376{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +05301377 static constexpr auto L = level::ERR;
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05301378 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1379 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1380 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1381
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05301382};
1383
1384} // namespace Device
1385} // namespace Sensor
1386} // namespace openbmc_project
1387} // namespace xyz
1388
1389
1390namespace details
1391{
1392
1393template <>
1394struct map_exception_type<sdbusplus::xyz::openbmc_project::Sensor::Device::Error::ReadFailure>
1395{
1396 using type = xyz::openbmc_project::Sensor::Device::ReadFailure;
1397};
1398
1399}
1400
1401namespace example
1402{
1403namespace xyz
1404{
1405namespace openbmc_project
1406{
1407namespace Example
1408{
1409namespace Elog
1410{
1411namespace _TestErrorOne
1412{
1413
1414struct ERRNUM
1415{
1416 static constexpr auto str = "ERRNUM=0x%.4X";
1417 static constexpr auto str_short = "ERRNUM";
1418 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
1419 explicit constexpr ERRNUM(uint16_t a) : _entry(entry(str, a)) {};
1420 type _entry;
1421};
1422struct FILE_PATH
1423{
1424 static constexpr auto str = "FILE_PATH=%s";
1425 static constexpr auto str_short = "FILE_PATH";
1426 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1427 explicit constexpr FILE_PATH(const char* a) : _entry(entry(str, a)) {};
1428 type _entry;
1429};
1430struct FILE_NAME
1431{
1432 static constexpr auto str = "FILE_NAME=%s";
1433 static constexpr auto str_short = "FILE_NAME";
1434 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1435 explicit constexpr FILE_NAME(const char* a) : _entry(entry(str, a)) {};
1436 type _entry;
1437};
1438
1439} // namespace _TestErrorOne
1440
1441struct TestErrorOne : public sdbusplus::exception_t
1442{
1443 static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.TestErrorOne";
1444 static constexpr auto errDesc = "this is test error one";
1445 static constexpr auto L = level::INFO;
1446 using ERRNUM = _TestErrorOne::ERRNUM;
1447 using FILE_PATH = _TestErrorOne::FILE_PATH;
1448 using FILE_NAME = _TestErrorOne::FILE_NAME;
1449 using DEV_ADDR = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
1450 using DEV_ID = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
1451 using DEV_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
1452 using metadata_types = std::tuple<ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>;
1453
1454 const char* name() const noexcept
1455 {
1456 return errName;
1457 }
1458
1459 const char* description() const noexcept
1460 {
1461 return errDesc;
1462 }
1463
1464 const char* what() const noexcept
1465 {
1466 return errName;
1467 }
1468};
1469
1470} // namespace Elog
1471} // namespace Example
1472} // namespace openbmc_project
1473} // namespace xyz
1474} // namespace example
1475
1476
1477
1478namespace example
1479{
1480namespace xyz
1481{
1482namespace openbmc_project
1483{
1484namespace Example
1485{
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +05301486namespace Elog
1487{
1488namespace _TestCallout
1489{
1490
1491struct DEV_ADDR
1492{
1493 static constexpr auto str = "DEV_ADDR=0x%.8X";
1494 static constexpr auto str_short = "DEV_ADDR";
1495 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
1496 explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)) {};
1497 type _entry;
1498};
1499
1500} // namespace _TestCallout
1501
1502struct TestCallout : public sdbusplus::exception_t
1503{
1504 static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.TestCallout";
1505 static constexpr auto errDesc = "This is test error TestCallout";
1506 static constexpr auto L = level::ERR;
1507 using DEV_ADDR = _TestCallout::DEV_ADDR;
1508 using CALLOUT_ERRNO_TEST = example::xyz::openbmc_project::Example::Device::Callout::CALLOUT_ERRNO_TEST;
1509 using CALLOUT_DEVICE_PATH_TEST = example::xyz::openbmc_project::Example::Device::Callout::CALLOUT_DEVICE_PATH_TEST;
1510 using metadata_types = std::tuple<DEV_ADDR, CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>;
1511
1512 const char* name() const noexcept
1513 {
1514 return errName;
1515 }
1516
1517 const char* description() const noexcept
1518 {
1519 return errDesc;
1520 }
1521
1522 const char* what() const noexcept
1523 {
1524 return errName;
1525 }
1526};
1527
1528} // namespace Elog
1529} // namespace Example
1530} // namespace openbmc_project
1531} // namespace xyz
1532} // namespace example
1533
1534
1535
1536namespace example
1537{
1538namespace xyz
1539{
1540namespace openbmc_project
1541{
1542namespace Example
1543{
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05301544namespace Foo
1545{
1546namespace _Foo
1547{
1548
1549struct FOO_DATA
1550{
1551 static constexpr auto str = "FOO_DATA=%s";
1552 static constexpr auto str_short = "FOO_DATA";
1553 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1554 explicit constexpr FOO_DATA(const char* a) : _entry(entry(str, a)) {};
1555 type _entry;
1556};
1557
1558} // namespace _Foo
1559
1560struct Foo : public sdbusplus::exception_t
1561{
1562 static constexpr auto errName = "example.xyz.openbmc_project.Example.Foo.Foo";
1563 static constexpr auto errDesc = "this is test error Foo";
1564 static constexpr auto L = level::INFO;
1565 using FOO_DATA = _Foo::FOO_DATA;
1566 using ERRNUM = example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM;
1567 using FILE_PATH = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH;
1568 using FILE_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME;
1569 using DEV_ADDR = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
1570 using DEV_ID = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
1571 using DEV_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
1572 using metadata_types = std::tuple<FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>;
1573
1574 const char* name() const noexcept
1575 {
1576 return errName;
1577 }
1578
1579 const char* description() const noexcept
1580 {
1581 return errDesc;
1582 }
1583
1584 const char* what() const noexcept
1585 {
1586 return errName;
1587 }
1588};
1589
1590} // namespace Foo
1591} // namespace Example
1592} // namespace openbmc_project
1593} // namespace xyz
1594} // namespace example
1595
1596
1597
1598namespace example
1599{
1600namespace xyz
1601{
1602namespace openbmc_project
1603{
1604namespace Example
1605{
1606namespace Bar
1607{
1608namespace _Bar
1609{
1610
1611struct BAR_DATA
1612{
1613 static constexpr auto str = "BAR_DATA=%s";
1614 static constexpr auto str_short = "BAR_DATA";
1615 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1616 explicit constexpr BAR_DATA(const char* a) : _entry(entry(str, a)) {};
1617 type _entry;
1618};
1619
1620} // namespace _Bar
1621
1622struct Bar : public sdbusplus::exception_t
1623{
1624 static constexpr auto errName = "example.xyz.openbmc_project.Example.Bar.Bar";
1625 static constexpr auto errDesc = "this is test error Bar";
1626 static constexpr auto L = level::INFO;
1627 using BAR_DATA = _Bar::BAR_DATA;
1628 using FOO_DATA = example::xyz::openbmc_project::Example::Foo::Foo::FOO_DATA;
1629 using ERRNUM = example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM;
1630 using FILE_PATH = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH;
1631 using FILE_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME;
1632 using DEV_ADDR = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
1633 using DEV_ID = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
1634 using DEV_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
1635 using metadata_types = std::tuple<BAR_DATA, FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>;
1636
1637 const char* name() const noexcept
1638 {
1639 return errName;
1640 }
1641
1642 const char* description() const noexcept
1643 {
1644 return errDesc;
1645 }
1646
1647 const char* what() const noexcept
1648 {
1649 return errName;
1650 }
1651};
1652
1653} // namespace Bar
1654} // namespace Example
1655} // namespace openbmc_project
1656} // namespace xyz
1657} // namespace example
1658
1659
1660
1661
1662} // namespace logging
1663
1664} // namespace phosphor