blob: 73e2dc12c99f9230ed014626a8bc866811c97654 [file] [log] [blame]
Tom Joseph448e74e2017-07-24 23:08:56 +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 Dump
19{
20namespace Create
21{
22namespace Error
23{
24 struct QuotaExceeded;
25} // namespace Error
26} // namespace Create
27} // namespace Dump
28} // namespace openbmc_project
29} // namespace xyz
30} // namespace sdbusplus
31
32namespace sdbusplus
33{
34namespace org
35{
36namespace open_power
37{
38namespace Host
39{
40namespace Event
41{
42namespace Error
43{
44 struct Event;
45} // namespace Error
46} // namespace Event
47} // namespace Host
48} // namespace open_power
49} // namespace org
50} // namespace sdbusplus
51
52namespace sdbusplus
53{
54namespace xyz
55{
56namespace openbmc_project
57{
58namespace State
59{
60namespace Host
61{
62namespace Error
63{
64 struct SoftOffTimeout;
65} // namespace Error
66} // namespace Host
67} // namespace State
68} // namespace openbmc_project
69} // namespace xyz
70} // namespace sdbusplus
71
72namespace sdbusplus
73{
74namespace xyz
75{
76namespace openbmc_project
77{
78namespace Sensor
79{
80namespace Device
81{
82namespace Error
83{
84 struct ReadFailure;
85} // namespace Error
86} // namespace Device
87} // namespace Sensor
88} // namespace openbmc_project
89} // namespace xyz
90} // namespace sdbusplus
91
92namespace sdbusplus
93{
94namespace xyz
95{
96namespace openbmc_project
97{
98namespace Control
99{
100namespace Device
101{
102namespace Error
103{
104 struct WriteFailure;
105} // namespace Error
106} // namespace Device
107} // namespace Control
108} // namespace openbmc_project
109} // namespace xyz
110} // namespace sdbusplus
111
112namespace sdbusplus
113{
114namespace xyz
115{
116namespace openbmc_project
117{
118namespace Common
119{
120namespace File
121{
122namespace Error
123{
124 struct Seek;
125} // namespace Error
126} // namespace File
127} // namespace Common
128} // namespace openbmc_project
129} // namespace xyz
130} // namespace sdbusplus
131
132namespace sdbusplus
133{
134namespace xyz
135{
136namespace openbmc_project
137{
138namespace Control
139{
140namespace Host
141{
142namespace Error
143{
144 struct CommandNotSupported;
145} // namespace Error
146} // namespace Host
147} // namespace Control
148} // namespace openbmc_project
149} // namespace xyz
150} // namespace sdbusplus
151
152namespace sdbusplus
153{
154namespace xyz
155{
156namespace openbmc_project
157{
158namespace Common
159{
160namespace Error
161{
162 struct InternalFailure;
163} // namespace Error
164} // namespace Common
165} // namespace openbmc_project
166} // namespace xyz
167} // namespace sdbusplus
168
169namespace sdbusplus
170{
171namespace xyz
172{
173namespace openbmc_project
174{
175namespace Common
176{
177namespace Callout
178{
179namespace Error
180{
181 struct Device;
182} // namespace Error
183} // namespace Callout
184} // namespace Common
185} // namespace openbmc_project
186} // namespace xyz
187} // namespace sdbusplus
188
189namespace sdbusplus
190{
191namespace org
192{
193namespace open_power
194{
195namespace Host
196{
197namespace Access
198{
199namespace Error
200{
201 struct WriteCFAM;
202} // namespace Error
203} // namespace Access
204} // namespace Host
205} // namespace open_power
206} // namespace org
207} // namespace sdbusplus
208
209namespace sdbusplus
210{
211namespace xyz
212{
213namespace openbmc_project
214{
215namespace Common
216{
217namespace File
218{
219namespace Error
220{
221 struct Open;
222} // namespace Error
223} // namespace File
224} // namespace Common
225} // namespace openbmc_project
226} // namespace xyz
227} // namespace sdbusplus
228
229namespace sdbusplus
230{
231namespace org
232{
233namespace open_power
234{
235namespace Host
236{
237namespace Error
238{
239 struct Checkstop;
240} // namespace Error
241} // namespace Host
242} // namespace open_power
243} // namespace org
244} // namespace sdbusplus
245
246namespace sdbusplus
247{
248namespace xyz
249{
250namespace openbmc_project
251{
252namespace Common
253{
254namespace File
255{
256namespace Error
257{
258 struct Write;
259} // namespace Error
260} // namespace File
261} // namespace Common
262} // namespace openbmc_project
263} // namespace xyz
264} // namespace sdbusplus
265
266namespace sdbusplus
267{
268namespace xyz
269{
270namespace openbmc_project
271{
272namespace Common
273{
274namespace Callout
275{
276namespace Error
277{
278 struct GPIO;
279} // namespace Error
280} // namespace Callout
281} // namespace Common
282} // namespace openbmc_project
283} // namespace xyz
284} // namespace sdbusplus
285
286namespace sdbusplus
287{
288namespace xyz
289{
290namespace openbmc_project
291{
292namespace Common
293{
294namespace Error
295{
296 struct InvalidArgument;
297} // namespace Error
298} // namespace Common
299} // namespace openbmc_project
300} // namespace xyz
301} // namespace sdbusplus
302
303namespace sdbusplus
304{
305namespace xyz
306{
307namespace openbmc_project
308{
309namespace Dump
310{
311namespace Create
312{
313namespace Error
314{
315 struct Disabled;
316} // namespace Error
317} // namespace Create
318} // namespace Dump
319} // namespace openbmc_project
320} // namespace xyz
321} // namespace sdbusplus
322
323namespace sdbusplus
324{
325namespace xyz
326{
327namespace openbmc_project
328{
329namespace Common
330{
331namespace Callout
332{
333namespace Error
334{
335 struct IPMISensor;
336} // namespace Error
337} // namespace Callout
338} // namespace Common
339} // namespace openbmc_project
340} // namespace xyz
341} // namespace sdbusplus
342
343namespace sdbusplus
344{
345namespace xyz
346{
347namespace openbmc_project
348{
349namespace Common
350{
351namespace Error
352{
353 struct Timeout;
354} // namespace Error
355} // namespace Common
356} // namespace openbmc_project
357} // namespace xyz
358} // namespace sdbusplus
359
360namespace sdbusplus
361{
362namespace xyz
363{
364namespace openbmc_project
365{
366namespace Common
367{
368namespace Callout
369{
370namespace Error
371{
372 struct Inventory;
373} // namespace Error
374} // namespace Callout
375} // namespace Common
376} // namespace openbmc_project
377} // namespace xyz
378} // namespace sdbusplus
379
380namespace sdbusplus
381{
382namespace xyz
383{
384namespace openbmc_project
385{
386namespace Common
387{
388namespace Callout
389{
390namespace Error
391{
392 struct IIC;
393} // namespace Error
394} // namespace Callout
395} // namespace Common
396} // namespace openbmc_project
397} // namespace xyz
398} // namespace sdbusplus
399
400namespace sdbusplus
401{
402namespace org
403{
404namespace open_power
405{
406namespace Host
407{
408namespace Error
409{
410 struct WatchdogTimedOut;
411} // namespace Error
412} // namespace Host
413} // namespace open_power
414} // namespace org
415} // namespace sdbusplus
416
417namespace sdbusplus
418{
419namespace org
420{
421namespace open_power
422{
423namespace Host
424{
425namespace Access
426{
427namespace Error
428{
429 struct ReadCFAM;
430} // namespace Error
431} // namespace Access
432} // namespace Host
433} // namespace open_power
434} // namespace org
435} // namespace sdbusplus
436
437
438namespace phosphor
439{
440
441namespace logging
442{
443
444namespace xyz
445{
446namespace openbmc_project
447{
448namespace Common
449{
450namespace Callout
451{
452namespace _Device
453{
454
455struct CALLOUT_ERRNO
456{
457 static constexpr auto str = "CALLOUT_ERRNO=%d";
458 static constexpr auto str_short = "CALLOUT_ERRNO";
459 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
460 explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {};
461 type _entry;
462};
463struct CALLOUT_DEVICE_PATH
464{
465 static constexpr auto str = "CALLOUT_DEVICE_PATH=%s";
466 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
467 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
468 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {};
469 type _entry;
470};
471
472} // namespace _Device
473
474struct Device
475{
476 static constexpr auto L = level::ERR;
477 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
478 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
479 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
480
481};
482
483} // namespace Callout
484} // namespace Common
485} // namespace openbmc_project
486} // namespace xyz
487
488
489namespace details
490{
491
492template <>
493struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
494{
495 using type = xyz::openbmc_project::Common::Callout::Device;
496};
497
498}
499
500namespace xyz
501{
502namespace openbmc_project
503{
504namespace Common
505{
506namespace Callout
507{
508namespace _GPIO
509{
510
511struct CALLOUT_GPIO_NUM
512{
513 static constexpr auto str = "CALLOUT_GPIO_NUM=%u";
514 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
515 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
516 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {};
517 type _entry;
518};
519
520} // namespace _GPIO
521
522struct GPIO
523{
524 static constexpr auto L = level::ERR;
525 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
526 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
527 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
528 using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
529
530};
531
532} // namespace Callout
533} // namespace Common
534} // namespace openbmc_project
535} // namespace xyz
536
537
538namespace details
539{
540
541template <>
542struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
543{
544 using type = xyz::openbmc_project::Common::Callout::GPIO;
545};
546
547}
548
549namespace xyz
550{
551namespace openbmc_project
552{
553namespace Common
554{
555namespace Callout
556{
557namespace _IIC
558{
559
560struct CALLOUT_IIC_BUS
561{
562 static constexpr auto str = "CALLOUT_IIC_BUS=%s";
563 static constexpr auto str_short = "CALLOUT_IIC_BUS";
564 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
565 explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {};
566 type _entry;
567};
568struct CALLOUT_IIC_ADDR
569{
570 static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx";
571 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
572 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
573 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {};
574 type _entry;
575};
576
577} // namespace _IIC
578
579struct IIC
580{
581 static constexpr auto L = level::ERR;
582 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
583 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
584 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
585 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
586 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
587
588};
589
590} // namespace Callout
591} // namespace Common
592} // namespace openbmc_project
593} // namespace xyz
594
595
596namespace details
597{
598
599template <>
600struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
601{
602 using type = xyz::openbmc_project::Common::Callout::IIC;
603};
604
605}
606
607namespace xyz
608{
609namespace openbmc_project
610{
611namespace Common
612{
613namespace Callout
614{
615namespace _Inventory
616{
617
618struct CALLOUT_INVENTORY_PATH
619{
620 static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s";
621 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
622 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
623 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {};
624 type _entry;
625};
626
627} // namespace _Inventory
628
629struct Inventory
630{
631 static constexpr auto L = level::ERR;
632 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
633 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
634
635};
636
637} // namespace Callout
638} // namespace Common
639} // namespace openbmc_project
640} // namespace xyz
641
642
643namespace details
644{
645
646template <>
647struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
648{
649 using type = xyz::openbmc_project::Common::Callout::Inventory;
650};
651
652}
653
654namespace xyz
655{
656namespace openbmc_project
657{
658namespace Common
659{
660namespace Callout
661{
662namespace _IPMISensor
663{
664
665struct CALLOUT_IPMI_SENSOR_NUM
666{
667 static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u";
668 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
669 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
670 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {};
671 type _entry;
672};
673
674} // namespace _IPMISensor
675
676struct IPMISensor
677{
678 static constexpr auto L = level::ERR;
679 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
680 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
681
682};
683
684} // namespace Callout
685} // namespace Common
686} // namespace openbmc_project
687} // namespace xyz
688
689
690namespace details
691{
692
693template <>
694struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
695{
696 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
697};
698
699}
700
701namespace xyz
702{
703namespace openbmc_project
704{
705namespace Common
706{
707namespace _Timeout
708{
709
710struct TIMEOUT_IN_MSEC
711{
712 static constexpr auto str = "TIMEOUT_IN_MSEC=%llu";
713 static constexpr auto str_short = "TIMEOUT_IN_MSEC";
714 using type = std::tuple<std::decay_t<decltype(str)>,uint64_t>;
715 explicit constexpr TIMEOUT_IN_MSEC(uint64_t a) : _entry(entry(str, a)) {};
716 type _entry;
717};
718
719} // namespace _Timeout
720
721struct Timeout
722{
723 static constexpr auto L = level::ERR;
724 using TIMEOUT_IN_MSEC = _Timeout::TIMEOUT_IN_MSEC;
725 using metadata_types = std::tuple<TIMEOUT_IN_MSEC>;
726
727};
728
729} // namespace Common
730} // namespace openbmc_project
731} // namespace xyz
732
733
734namespace details
735{
736
737template <>
738struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Error::Timeout>
739{
740 using type = xyz::openbmc_project::Common::Timeout;
741};
742
743}
744
745namespace xyz
746{
747namespace openbmc_project
748{
749namespace Common
750{
751namespace _InternalFailure
752{
753
754
755} // namespace _InternalFailure
756
757struct InternalFailure
758{
759 static constexpr auto L = level::ERR;
760 using metadata_types = std::tuple<>;
761
762};
763
764} // namespace Common
765} // namespace openbmc_project
766} // namespace xyz
767
768
769namespace details
770{
771
772template <>
773struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure>
774{
775 using type = xyz::openbmc_project::Common::InternalFailure;
776};
777
778}
779
780namespace xyz
781{
782namespace openbmc_project
783{
784namespace Common
785{
786namespace _InvalidArgument
787{
788
789struct ARGUMENT_NAME
790{
791 static constexpr auto str = "ARGUMENT_NAME=%s";
792 static constexpr auto str_short = "ARGUMENT_NAME";
793 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
794 explicit constexpr ARGUMENT_NAME(const char* a) : _entry(entry(str, a)) {};
795 type _entry;
796};
797struct ARGUMENT_VALUE
798{
799 static constexpr auto str = "ARGUMENT_VALUE=%s";
800 static constexpr auto str_short = "ARGUMENT_VALUE";
801 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
802 explicit constexpr ARGUMENT_VALUE(const char* a) : _entry(entry(str, a)) {};
803 type _entry;
804};
805
806} // namespace _InvalidArgument
807
808struct InvalidArgument
809{
810 static constexpr auto L = level::ERR;
811 using ARGUMENT_NAME = _InvalidArgument::ARGUMENT_NAME;
812 using ARGUMENT_VALUE = _InvalidArgument::ARGUMENT_VALUE;
813 using metadata_types = std::tuple<ARGUMENT_NAME, ARGUMENT_VALUE>;
814
815};
816
817} // namespace Common
818} // namespace openbmc_project
819} // namespace xyz
820
821
822namespace details
823{
824
825template <>
826struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument>
827{
828 using type = xyz::openbmc_project::Common::InvalidArgument;
829};
830
831}
832
833namespace example
834{
835namespace xyz
836{
837namespace openbmc_project
838{
839namespace Example
840{
841namespace Device
842{
843namespace _Callout
844{
845
846struct CALLOUT_ERRNO_TEST
847{
848 static constexpr auto str = "CALLOUT_ERRNO_TEST=%d";
849 static constexpr auto str_short = "CALLOUT_ERRNO_TEST";
850 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
851 explicit constexpr CALLOUT_ERRNO_TEST(int32_t a) : _entry(entry(str, a)) {};
852 type _entry;
853};
854struct CALLOUT_DEVICE_PATH_TEST
855{
856 static constexpr auto str = "CALLOUT_DEVICE_PATH_TEST=%s";
857 static constexpr auto str_short = "CALLOUT_DEVICE_PATH_TEST";
858 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
859 explicit constexpr CALLOUT_DEVICE_PATH_TEST(const char* a) : _entry(entry(str, a)) {};
860 type _entry;
861};
862
863} // namespace _Callout
864
865struct Callout : public sdbusplus::exception_t
866{
867 static constexpr auto errName = "example.xyz.openbmc_project.Example.Device.Callout";
868 static constexpr auto errDesc = "Generic device callout";
869 static constexpr auto L = level::ERR;
870 using CALLOUT_ERRNO_TEST = _Callout::CALLOUT_ERRNO_TEST;
871 using CALLOUT_DEVICE_PATH_TEST = _Callout::CALLOUT_DEVICE_PATH_TEST;
872 using metadata_types = std::tuple<CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>;
873
874 const char* name() const noexcept
875 {
876 return errName;
877 }
878
879 const char* description() const noexcept
880 {
881 return errDesc;
882 }
883
884 const char* what() const noexcept
885 {
886 return errName;
887 }
888};
889
890} // namespace Device
891} // namespace Example
892} // namespace openbmc_project
893} // namespace xyz
894} // namespace example
895
896
897
898namespace xyz
899{
900namespace openbmc_project
901{
902namespace Sensor
903{
904namespace Device
905{
906namespace _ReadFailure
907{
908
909
910} // namespace _ReadFailure
911
912struct ReadFailure
913{
914 static constexpr auto L = level::ERR;
915 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
916 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
917 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
918
919};
920
921} // namespace Device
922} // namespace Sensor
923} // namespace openbmc_project
924} // namespace xyz
925
926
927namespace details
928{
929
930template <>
931struct map_exception_type<sdbusplus::xyz::openbmc_project::Sensor::Device::Error::ReadFailure>
932{
933 using type = xyz::openbmc_project::Sensor::Device::ReadFailure;
934};
935
936}
937
938namespace org
939{
940namespace open_power
941{
942namespace Host
943{
944namespace _Checkstop
945{
946
947
948} // namespace _Checkstop
949
950struct Checkstop
951{
952 static constexpr auto L = level::ERR;
953 using metadata_types = std::tuple<>;
954
955};
956
957} // namespace Host
958} // namespace open_power
959} // namespace org
960
961
962namespace details
963{
964
965template <>
966struct map_exception_type<sdbusplus::org::open_power::Host::Error::Checkstop>
967{
968 using type = org::open_power::Host::Checkstop;
969};
970
971}
972
973namespace org
974{
975namespace open_power
976{
977namespace Host
978{
979namespace _WatchdogTimedOut
980{
981
982
983} // namespace _WatchdogTimedOut
984
985struct WatchdogTimedOut
986{
987 static constexpr auto L = level::ERR;
988 using metadata_types = std::tuple<>;
989
990};
991
992} // namespace Host
993} // namespace open_power
994} // namespace org
995
996
997namespace details
998{
999
1000template <>
1001struct map_exception_type<sdbusplus::org::open_power::Host::Error::WatchdogTimedOut>
1002{
1003 using type = org::open_power::Host::WatchdogTimedOut;
1004};
1005
1006}
1007
1008namespace example
1009{
1010namespace xyz
1011{
1012namespace openbmc_project
1013{
1014namespace Example
1015{
1016namespace Elog
1017{
1018namespace _TestErrorTwo
1019{
1020
1021struct DEV_ADDR
1022{
1023 static constexpr auto str = "DEV_ADDR=0x%.8X";
1024 static constexpr auto str_short = "DEV_ADDR";
1025 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
1026 explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)) {};
1027 type _entry;
1028};
1029struct DEV_ID
1030{
1031 static constexpr auto str = "DEV_ID=%u";
1032 static constexpr auto str_short = "DEV_ID";
1033 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
1034 explicit constexpr DEV_ID(uint32_t a) : _entry(entry(str, a)) {};
1035 type _entry;
1036};
1037struct DEV_NAME
1038{
1039 static constexpr auto str = "DEV_NAME=%s";
1040 static constexpr auto str_short = "DEV_NAME";
1041 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1042 explicit constexpr DEV_NAME(const char* a) : _entry(entry(str, a)) {};
1043 type _entry;
1044};
1045
1046} // namespace _TestErrorTwo
1047
1048struct TestErrorTwo : public sdbusplus::exception_t
1049{
1050 static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.TestErrorTwo";
1051 static constexpr auto errDesc = "This is test error two";
1052 static constexpr auto L = level::ERR;
1053 using DEV_ADDR = _TestErrorTwo::DEV_ADDR;
1054 using DEV_ID = _TestErrorTwo::DEV_ID;
1055 using DEV_NAME = _TestErrorTwo::DEV_NAME;
1056 using metadata_types = std::tuple<DEV_ADDR, DEV_ID, DEV_NAME>;
1057
1058 const char* name() const noexcept
1059 {
1060 return errName;
1061 }
1062
1063 const char* description() const noexcept
1064 {
1065 return errDesc;
1066 }
1067
1068 const char* what() const noexcept
1069 {
1070 return errName;
1071 }
1072};
1073
1074} // namespace Elog
1075} // namespace Example
1076} // namespace openbmc_project
1077} // namespace xyz
1078} // namespace example
1079
1080
1081
1082namespace example
1083{
1084namespace xyz
1085{
1086namespace openbmc_project
1087{
1088namespace Example
1089{
1090namespace Elog
1091{
1092namespace _AutoTestSimple
1093{
1094
1095struct STRING
1096{
1097 static constexpr auto str = "STRING=%s";
1098 static constexpr auto str_short = "STRING";
1099 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1100 explicit constexpr STRING(const char* a) : _entry(entry(str, a)) {};
1101 type _entry;
1102};
1103
1104} // namespace _AutoTestSimple
1105
1106struct AutoTestSimple : public sdbusplus::exception_t
1107{
1108 static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.AutoTestSimple";
1109 static constexpr auto errDesc = "This is a simple test error.";
1110 static constexpr auto L = level::ERR;
1111 using STRING = _AutoTestSimple::STRING;
1112 using metadata_types = std::tuple<STRING>;
1113
1114 const char* name() const noexcept
1115 {
1116 return errName;
1117 }
1118
1119 const char* description() const noexcept
1120 {
1121 return errDesc;
1122 }
1123
1124 const char* what() const noexcept
1125 {
1126 return errName;
1127 }
1128};
1129
1130} // namespace Elog
1131} // namespace Example
1132} // namespace openbmc_project
1133} // namespace xyz
1134} // namespace example
1135
1136
1137
1138namespace example
1139{
1140namespace xyz
1141{
1142namespace openbmc_project
1143{
1144namespace Example
1145{
1146namespace Elog
1147{
1148namespace _TestCallout
1149{
1150
1151struct DEV_ADDR
1152{
1153 static constexpr auto str = "DEV_ADDR=0x%.8X";
1154 static constexpr auto str_short = "DEV_ADDR";
1155 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
1156 explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)) {};
1157 type _entry;
1158};
1159
1160} // namespace _TestCallout
1161
1162struct TestCallout : public sdbusplus::exception_t
1163{
1164 static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.TestCallout";
1165 static constexpr auto errDesc = "This is test error TestCallout";
1166 static constexpr auto L = level::ERR;
1167 using DEV_ADDR = _TestCallout::DEV_ADDR;
1168 using CALLOUT_ERRNO_TEST = example::xyz::openbmc_project::Example::Device::Callout::CALLOUT_ERRNO_TEST;
1169 using CALLOUT_DEVICE_PATH_TEST = example::xyz::openbmc_project::Example::Device::Callout::CALLOUT_DEVICE_PATH_TEST;
1170 using metadata_types = std::tuple<DEV_ADDR, CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>;
1171
1172 const char* name() const noexcept
1173 {
1174 return errName;
1175 }
1176
1177 const char* description() const noexcept
1178 {
1179 return errDesc;
1180 }
1181
1182 const char* what() const noexcept
1183 {
1184 return errName;
1185 }
1186};
1187
1188} // namespace Elog
1189} // namespace Example
1190} // namespace openbmc_project
1191} // namespace xyz
1192} // namespace example
1193
1194
1195
1196namespace org
1197{
1198namespace open_power
1199{
1200namespace Host
1201{
1202namespace Event
1203{
1204namespace _Event
1205{
1206
1207struct ESEL
1208{
1209 static constexpr auto str = "ESEL=%s";
1210 static constexpr auto str_short = "ESEL";
1211 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1212 explicit constexpr ESEL(const char* a) : _entry(entry(str, a)) {};
1213 type _entry;
1214};
1215
1216} // namespace _Event
1217
1218struct Event
1219{
1220 static constexpr auto L = level::ERR;
1221 using ESEL = _Event::ESEL;
1222 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
1223 using metadata_types = std::tuple<ESEL, CALLOUT_INVENTORY_PATH>;
1224
1225};
1226
1227} // namespace Event
1228} // namespace Host
1229} // namespace open_power
1230} // namespace org
1231
1232
1233namespace details
1234{
1235
1236template <>
1237struct map_exception_type<sdbusplus::org::open_power::Host::Event::Error::Event>
1238{
1239 using type = org::open_power::Host::Event::Event;
1240};
1241
1242}
1243
1244namespace xyz
1245{
1246namespace openbmc_project
1247{
1248namespace Control
1249{
1250namespace Device
1251{
1252namespace _WriteFailure
1253{
1254
1255
1256} // namespace _WriteFailure
1257
1258struct WriteFailure
1259{
1260 static constexpr auto L = level::ERR;
1261 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1262 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1263 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1264
1265};
1266
1267} // namespace Device
1268} // namespace Control
1269} // namespace openbmc_project
1270} // namespace xyz
1271
1272
1273namespace details
1274{
1275
1276template <>
1277struct map_exception_type<sdbusplus::xyz::openbmc_project::Control::Device::Error::WriteFailure>
1278{
1279 using type = xyz::openbmc_project::Control::Device::WriteFailure;
1280};
1281
1282}
1283
1284namespace xyz
1285{
1286namespace openbmc_project
1287{
1288namespace Common
1289{
1290namespace File
1291{
1292namespace _Open
1293{
1294
1295struct ERRNO
1296{
1297 static constexpr auto str = "ERRNO=%d";
1298 static constexpr auto str_short = "ERRNO";
1299 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
1300 explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)) {};
1301 type _entry;
1302};
1303struct PATH
1304{
1305 static constexpr auto str = "PATH=%s";
1306 static constexpr auto str_short = "PATH";
1307 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1308 explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {};
1309 type _entry;
1310};
1311
1312} // namespace _Open
1313
1314struct Open
1315{
1316 static constexpr auto L = level::ERR;
1317 using ERRNO = _Open::ERRNO;
1318 using PATH = _Open::PATH;
1319 using metadata_types = std::tuple<ERRNO, PATH>;
1320
1321};
1322
1323} // namespace File
1324} // namespace Common
1325} // namespace openbmc_project
1326} // namespace xyz
1327
1328
1329namespace details
1330{
1331
1332template <>
1333struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::File::Error::Open>
1334{
1335 using type = xyz::openbmc_project::Common::File::Open;
1336};
1337
1338}
1339
1340namespace xyz
1341{
1342namespace openbmc_project
1343{
1344namespace Common
1345{
1346namespace File
1347{
1348namespace _Seek
1349{
1350
1351struct OFFSET
1352{
1353 static constexpr auto str = "OFFSET=%ll";
1354 static constexpr auto str_short = "OFFSET";
1355 using type = std::tuple<std::decay_t<decltype(str)>,int64_t>;
1356 explicit constexpr OFFSET(int64_t a) : _entry(entry(str, a)) {};
1357 type _entry;
1358};
1359struct WHENCE
1360{
1361 static constexpr auto str = "WHENCE=%d";
1362 static constexpr auto str_short = "WHENCE";
1363 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
1364 explicit constexpr WHENCE(int32_t a) : _entry(entry(str, a)) {};
1365 type _entry;
1366};
1367struct ERRNO
1368{
1369 static constexpr auto str = "ERRNO=%d";
1370 static constexpr auto str_short = "ERRNO";
1371 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
1372 explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)) {};
1373 type _entry;
1374};
1375struct PATH
1376{
1377 static constexpr auto str = "PATH=%s";
1378 static constexpr auto str_short = "PATH";
1379 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1380 explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {};
1381 type _entry;
1382};
1383
1384} // namespace _Seek
1385
1386struct Seek
1387{
1388 static constexpr auto L = level::ERR;
1389 using OFFSET = _Seek::OFFSET;
1390 using WHENCE = _Seek::WHENCE;
1391 using ERRNO = _Seek::ERRNO;
1392 using PATH = _Seek::PATH;
1393 using metadata_types = std::tuple<OFFSET, WHENCE, ERRNO, PATH>;
1394
1395};
1396
1397} // namespace File
1398} // namespace Common
1399} // namespace openbmc_project
1400} // namespace xyz
1401
1402
1403namespace details
1404{
1405
1406template <>
1407struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::File::Error::Seek>
1408{
1409 using type = xyz::openbmc_project::Common::File::Seek;
1410};
1411
1412}
1413
1414namespace xyz
1415{
1416namespace openbmc_project
1417{
1418namespace Common
1419{
1420namespace File
1421{
1422namespace _Write
1423{
1424
1425struct ERRNO
1426{
1427 static constexpr auto str = "ERRNO=%d";
1428 static constexpr auto str_short = "ERRNO";
1429 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
1430 explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)) {};
1431 type _entry;
1432};
1433struct PATH
1434{
1435 static constexpr auto str = "PATH=%s";
1436 static constexpr auto str_short = "PATH";
1437 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1438 explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {};
1439 type _entry;
1440};
1441
1442} // namespace _Write
1443
1444struct Write
1445{
1446 static constexpr auto L = level::ERR;
1447 using ERRNO = _Write::ERRNO;
1448 using PATH = _Write::PATH;
1449 using metadata_types = std::tuple<ERRNO, PATH>;
1450
1451};
1452
1453} // namespace File
1454} // namespace Common
1455} // namespace openbmc_project
1456} // namespace xyz
1457
1458
1459namespace details
1460{
1461
1462template <>
1463struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::File::Error::Write>
1464{
1465 using type = xyz::openbmc_project::Common::File::Write;
1466};
1467
1468}
1469
1470namespace org
1471{
1472namespace open_power
1473{
1474namespace Host
1475{
1476namespace Access
1477{
1478namespace _WriteCFAM
1479{
1480
1481struct ADDRESS
1482{
1483 static constexpr auto str = "ADDRESS=0x%X";
1484 static constexpr auto str_short = "ADDRESS";
1485 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
1486 explicit constexpr ADDRESS(uint32_t a) : _entry(entry(str, a)) {};
1487 type _entry;
1488};
1489
1490} // namespace _WriteCFAM
1491
1492struct WriteCFAM
1493{
1494 static constexpr auto L = level::ERR;
1495 using ADDRESS = _WriteCFAM::ADDRESS;
1496 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1497 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1498 using metadata_types = std::tuple<ADDRESS, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1499
1500};
1501
1502} // namespace Access
1503} // namespace Host
1504} // namespace open_power
1505} // namespace org
1506
1507
1508namespace details
1509{
1510
1511template <>
1512struct map_exception_type<sdbusplus::org::open_power::Host::Access::Error::WriteCFAM>
1513{
1514 using type = org::open_power::Host::Access::WriteCFAM;
1515};
1516
1517}
1518
1519namespace org
1520{
1521namespace open_power
1522{
1523namespace Host
1524{
1525namespace Access
1526{
1527namespace _ReadCFAM
1528{
1529
1530struct ADDRESS
1531{
1532 static constexpr auto str = "ADDRESS=0x%X";
1533 static constexpr auto str_short = "ADDRESS";
1534 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
1535 explicit constexpr ADDRESS(uint32_t a) : _entry(entry(str, a)) {};
1536 type _entry;
1537};
1538
1539} // namespace _ReadCFAM
1540
1541struct ReadCFAM
1542{
1543 static constexpr auto L = level::ERR;
1544 using ADDRESS = _ReadCFAM::ADDRESS;
1545 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1546 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1547 using metadata_types = std::tuple<ADDRESS, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1548
1549};
1550
1551} // namespace Access
1552} // namespace Host
1553} // namespace open_power
1554} // namespace org
1555
1556
1557namespace details
1558{
1559
1560template <>
1561struct map_exception_type<sdbusplus::org::open_power::Host::Access::Error::ReadCFAM>
1562{
1563 using type = org::open_power::Host::Access::ReadCFAM;
1564};
1565
1566}
1567
1568namespace xyz
1569{
1570namespace openbmc_project
1571{
1572namespace State
1573{
1574namespace Host
1575{
1576namespace _SoftOffTimeout
1577{
1578
1579
1580} // namespace _SoftOffTimeout
1581
1582struct SoftOffTimeout
1583{
1584 static constexpr auto L = level::ERR;
1585 using TIMEOUT_IN_MSEC = xyz::openbmc_project::Common::Timeout::TIMEOUT_IN_MSEC;
1586 using metadata_types = std::tuple<TIMEOUT_IN_MSEC>;
1587
1588};
1589
1590} // namespace Host
1591} // namespace State
1592} // namespace openbmc_project
1593} // namespace xyz
1594
1595
1596namespace details
1597{
1598
1599template <>
1600struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Host::Error::SoftOffTimeout>
1601{
1602 using type = xyz::openbmc_project::State::Host::SoftOffTimeout;
1603};
1604
1605}
1606
1607namespace xyz
1608{
1609namespace openbmc_project
1610{
1611namespace Dump
1612{
1613namespace Create
1614{
1615namespace _Disabled
1616{
1617
1618
1619} // namespace _Disabled
1620
1621struct Disabled
1622{
1623 static constexpr auto L = level::ERR;
1624 using metadata_types = std::tuple<>;
1625
1626};
1627
1628} // namespace Create
1629} // namespace Dump
1630} // namespace openbmc_project
1631} // namespace xyz
1632
1633
1634namespace details
1635{
1636
1637template <>
1638struct map_exception_type<sdbusplus::xyz::openbmc_project::Dump::Create::Error::Disabled>
1639{
1640 using type = xyz::openbmc_project::Dump::Create::Disabled;
1641};
1642
1643}
1644
1645namespace xyz
1646{
1647namespace openbmc_project
1648{
1649namespace Dump
1650{
1651namespace Create
1652{
1653namespace _QuotaExceeded
1654{
1655
1656struct REASON
1657{
1658 static constexpr auto str = "REASON = %s";
1659 static constexpr auto str_short = "REASON ";
1660 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1661 explicit constexpr REASON (const char* a) : _entry(entry(str, a)) {};
1662 type _entry;
1663};
1664
1665} // namespace _QuotaExceeded
1666
1667struct QuotaExceeded
1668{
1669 static constexpr auto L = level::ERR;
1670 using REASON = _QuotaExceeded::REASON ;
1671 using metadata_types = std::tuple<REASON >;
1672
1673};
1674
1675} // namespace Create
1676} // namespace Dump
1677} // namespace openbmc_project
1678} // namespace xyz
1679
1680
1681namespace details
1682{
1683
1684template <>
1685struct map_exception_type<sdbusplus::xyz::openbmc_project::Dump::Create::Error::QuotaExceeded>
1686{
1687 using type = xyz::openbmc_project::Dump::Create::QuotaExceeded;
1688};
1689
1690}
1691
1692namespace xyz
1693{
1694namespace openbmc_project
1695{
1696namespace Control
1697{
1698namespace Host
1699{
1700namespace _CommandNotSupported
1701{
1702
1703
1704} // namespace _CommandNotSupported
1705
1706struct CommandNotSupported
1707{
1708 static constexpr auto L = level::ERR;
1709 using metadata_types = std::tuple<>;
1710
1711};
1712
1713} // namespace Host
1714} // namespace Control
1715} // namespace openbmc_project
1716} // namespace xyz
1717
1718
1719namespace details
1720{
1721
1722template <>
1723struct map_exception_type<sdbusplus::xyz::openbmc_project::Control::Host::Error::CommandNotSupported>
1724{
1725 using type = xyz::openbmc_project::Control::Host::CommandNotSupported;
1726};
1727
1728}
1729
1730namespace example
1731{
1732namespace xyz
1733{
1734namespace openbmc_project
1735{
1736namespace Example
1737{
1738namespace Elog
1739{
1740namespace _TestErrorOne
1741{
1742
1743struct ERRNUM
1744{
1745 static constexpr auto str = "ERRNUM=0x%.4X";
1746 static constexpr auto str_short = "ERRNUM";
1747 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
1748 explicit constexpr ERRNUM(uint16_t a) : _entry(entry(str, a)) {};
1749 type _entry;
1750};
1751struct FILE_PATH
1752{
1753 static constexpr auto str = "FILE_PATH=%s";
1754 static constexpr auto str_short = "FILE_PATH";
1755 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1756 explicit constexpr FILE_PATH(const char* a) : _entry(entry(str, a)) {};
1757 type _entry;
1758};
1759struct FILE_NAME
1760{
1761 static constexpr auto str = "FILE_NAME=%s";
1762 static constexpr auto str_short = "FILE_NAME";
1763 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1764 explicit constexpr FILE_NAME(const char* a) : _entry(entry(str, a)) {};
1765 type _entry;
1766};
1767
1768} // namespace _TestErrorOne
1769
1770struct TestErrorOne : public sdbusplus::exception_t
1771{
1772 static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.TestErrorOne";
1773 static constexpr auto errDesc = "this is test error one";
1774 static constexpr auto L = level::INFO;
1775 using ERRNUM = _TestErrorOne::ERRNUM;
1776 using FILE_PATH = _TestErrorOne::FILE_PATH;
1777 using FILE_NAME = _TestErrorOne::FILE_NAME;
1778 using DEV_ADDR = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
1779 using DEV_ID = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
1780 using DEV_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
1781 using metadata_types = std::tuple<ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>;
1782
1783 const char* name() const noexcept
1784 {
1785 return errName;
1786 }
1787
1788 const char* description() const noexcept
1789 {
1790 return errDesc;
1791 }
1792
1793 const char* what() const noexcept
1794 {
1795 return errName;
1796 }
1797};
1798
1799} // namespace Elog
1800} // namespace Example
1801} // namespace openbmc_project
1802} // namespace xyz
1803} // namespace example
1804
1805
1806
1807namespace example
1808{
1809namespace xyz
1810{
1811namespace openbmc_project
1812{
1813namespace Example
1814{
1815namespace Foo
1816{
1817namespace _Foo
1818{
1819
1820struct FOO_DATA
1821{
1822 static constexpr auto str = "FOO_DATA=%s";
1823 static constexpr auto str_short = "FOO_DATA";
1824 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1825 explicit constexpr FOO_DATA(const char* a) : _entry(entry(str, a)) {};
1826 type _entry;
1827};
1828
1829} // namespace _Foo
1830
1831struct Foo : public sdbusplus::exception_t
1832{
1833 static constexpr auto errName = "example.xyz.openbmc_project.Example.Foo.Foo";
1834 static constexpr auto errDesc = "this is test error Foo";
1835 static constexpr auto L = level::INFO;
1836 using FOO_DATA = _Foo::FOO_DATA;
1837 using ERRNUM = example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM;
1838 using FILE_PATH = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH;
1839 using FILE_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME;
1840 using DEV_ADDR = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
1841 using DEV_ID = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
1842 using DEV_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
1843 using metadata_types = std::tuple<FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>;
1844
1845 const char* name() const noexcept
1846 {
1847 return errName;
1848 }
1849
1850 const char* description() const noexcept
1851 {
1852 return errDesc;
1853 }
1854
1855 const char* what() const noexcept
1856 {
1857 return errName;
1858 }
1859};
1860
1861} // namespace Foo
1862} // namespace Example
1863} // namespace openbmc_project
1864} // namespace xyz
1865} // namespace example
1866
1867
1868
1869namespace example
1870{
1871namespace xyz
1872{
1873namespace openbmc_project
1874{
1875namespace Example
1876{
1877namespace Bar
1878{
1879namespace _Bar
1880{
1881
1882struct BAR_DATA
1883{
1884 static constexpr auto str = "BAR_DATA=%s";
1885 static constexpr auto str_short = "BAR_DATA";
1886 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1887 explicit constexpr BAR_DATA(const char* a) : _entry(entry(str, a)) {};
1888 type _entry;
1889};
1890
1891} // namespace _Bar
1892
1893struct Bar : public sdbusplus::exception_t
1894{
1895 static constexpr auto errName = "example.xyz.openbmc_project.Example.Bar.Bar";
1896 static constexpr auto errDesc = "this is test error Bar";
1897 static constexpr auto L = level::INFO;
1898 using BAR_DATA = _Bar::BAR_DATA;
1899 using FOO_DATA = example::xyz::openbmc_project::Example::Foo::Foo::FOO_DATA;
1900 using ERRNUM = example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM;
1901 using FILE_PATH = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH;
1902 using FILE_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME;
1903 using DEV_ADDR = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
1904 using DEV_ID = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
1905 using DEV_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
1906 using metadata_types = std::tuple<BAR_DATA, FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>;
1907
1908 const char* name() const noexcept
1909 {
1910 return errName;
1911 }
1912
1913 const char* description() const noexcept
1914 {
1915 return errDesc;
1916 }
1917
1918 const char* what() const noexcept
1919 {
1920 return errName;
1921 }
1922};
1923
1924} // namespace Bar
1925} // namespace Example
1926} // namespace openbmc_project
1927} // namespace xyz
1928} // namespace example
1929
1930
1931
1932
1933} // namespace logging
1934
1935} // namespace phosphor