blob: b87236a7fe8743ee18d95df3daf4b6d401213085 [file] [log] [blame]
Vernon Mauerya3702c12019-05-22 13:20:59 -07001// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
3#pragma once
4
5#include <phosphor-logging/elog.hpp>
6#include <phosphor-logging/log.hpp>
7#include <sdbusplus/exception.hpp>
8#include <string>
9#include <tuple>
10#include <type_traits>
11
12namespace sdbusplus
13{
14namespace xyz
15{
16namespace openbmc_project
17{
18namespace Dump
19{
20namespace Create
21{
22namespace Error
23{
24struct 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 xyz
35{
36namespace openbmc_project
37{
38namespace State
39{
40namespace Shutdown
41{
42namespace Inventory
43{
44namespace Error
45{
46struct Fan;
47} // namespace Error
48} // namespace Inventory
49} // namespace Shutdown
50} // namespace State
51} // namespace openbmc_project
52} // namespace xyz
53} // namespace sdbusplus
54
55namespace sdbusplus
56{
57namespace xyz
58{
59namespace openbmc_project
60{
61namespace Common
62{
63namespace Device
64{
65namespace Error
66{
67struct ReadFailure;
68} // namespace Error
69} // namespace Device
70} // namespace Common
71} // namespace openbmc_project
72} // namespace xyz
73} // namespace sdbusplus
74
75namespace sdbusplus
76{
77namespace xyz
78{
79namespace openbmc_project
80{
81namespace State
82{
83namespace Host
84{
85namespace Error
86{
87struct SoftOffTimeout;
88} // namespace Error
89} // namespace Host
90} // namespace State
91} // namespace openbmc_project
92} // namespace xyz
93} // namespace sdbusplus
94
95namespace sdbusplus
96{
97namespace xyz
98{
99namespace openbmc_project
100{
101namespace Common
102{
103namespace File
104{
105namespace Error
106{
107struct Open;
108} // namespace Error
109} // namespace File
110} // namespace Common
111} // namespace openbmc_project
112} // namespace xyz
113} // namespace sdbusplus
114
115namespace sdbusplus
116{
117namespace xyz
118{
119namespace openbmc_project
120{
121namespace Inventory
122{
123namespace Error
124{
125struct Nonfunctional;
126} // namespace Error
127} // namespace Inventory
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 Device
141{
142namespace Error
143{
144struct WriteFailure;
145} // namespace Error
146} // namespace Device
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 File
161{
162namespace Error
163{
164struct Seek;
165} // namespace Error
166} // namespace File
167} // namespace Common
168} // namespace openbmc_project
169} // namespace xyz
170} // namespace sdbusplus
171
172namespace sdbusplus
173{
174namespace xyz
175{
176namespace openbmc_project
177{
178namespace User
179{
180namespace Common
181{
182namespace Error
183{
184struct UserNameDoesNotExist;
185} // namespace Error
186} // namespace Common
187} // namespace User
188} // namespace openbmc_project
189} // namespace xyz
190} // namespace sdbusplus
191
192namespace sdbusplus
193{
194namespace xyz
195{
196namespace openbmc_project
197{
198namespace Common
199{
200namespace File
201{
202namespace Error
203{
204struct Write;
205} // namespace Error
206} // namespace File
207} // namespace Common
208} // namespace openbmc_project
209} // namespace xyz
210} // namespace sdbusplus
211
212namespace sdbusplus
213{
214namespace xyz
215{
216namespace openbmc_project
217{
218namespace Inventory
219{
220namespace Error
221{
222struct NotPresent;
223} // namespace Error
224} // namespace Inventory
225} // namespace openbmc_project
226} // namespace xyz
227} // namespace sdbusplus
228
229namespace sdbusplus
230{
231namespace xyz
232{
233namespace openbmc_project
234{
235namespace Common
236{
237namespace Error
238{
239struct InternalFailure;
240} // namespace Error
241} // namespace Common
242} // namespace openbmc_project
243} // namespace xyz
244} // namespace sdbusplus
245
246namespace sdbusplus
247{
248namespace xyz
249{
250namespace openbmc_project
251{
252namespace Common
253{
254namespace Callout
255{
256namespace Error
257{
258struct Device;
259} // namespace Error
260} // namespace Callout
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 Sensor
273{
274namespace Threshold
275{
276namespace Error
277{
278struct CriticalLow;
279} // namespace Error
280} // namespace Threshold
281} // namespace Sensor
282} // namespace openbmc_project
283} // namespace xyz
284} // namespace sdbusplus
285
286namespace sdbusplus
287{
288namespace xyz
289{
290namespace openbmc_project
291{
292namespace Sensor
293{
294namespace Threshold
295{
296namespace Error
297{
298struct CriticalHigh;
299} // namespace Error
300} // namespace Threshold
301} // namespace Sensor
302} // namespace openbmc_project
303} // namespace xyz
304} // namespace sdbusplus
305
306namespace sdbusplus
307{
308namespace xyz
309{
310namespace openbmc_project
311{
312namespace Sensor
313{
314namespace Device
315{
316namespace Error
317{
318struct ReadFailure;
319} // namespace Error
320} // namespace Device
321} // namespace Sensor
322} // namespace openbmc_project
323} // namespace xyz
324} // namespace sdbusplus
325
326namespace sdbusplus
327{
328namespace xyz
329{
330namespace openbmc_project
331{
332namespace Control
333{
334namespace Host
335{
336namespace Error
337{
338struct CommandNotSupported;
339} // namespace Error
340} // namespace Host
341} // namespace Control
342} // namespace openbmc_project
343} // namespace xyz
344} // namespace sdbusplus
345
346namespace sdbusplus
347{
348namespace xyz
349{
350namespace openbmc_project
351{
352namespace User
353{
354namespace Common
355{
356namespace Error
357{
358struct UserNameGrpPrivFail;
359} // namespace Error
360} // namespace Common
361} // namespace User
362} // namespace openbmc_project
363} // namespace xyz
364} // namespace sdbusplus
365
366namespace sdbusplus
367{
368namespace xyz
369{
370namespace openbmc_project
371{
372namespace Common
373{
374namespace Callout
375{
376namespace Error
377{
378struct GPIO;
379} // namespace Error
380} // namespace Callout
381} // namespace Common
382} // namespace openbmc_project
383} // namespace xyz
384} // namespace sdbusplus
385
386namespace sdbusplus
387{
388namespace xyz
389{
390namespace openbmc_project
391{
392namespace Common
393{
394namespace Error
395{
396struct InvalidArgument;
397} // namespace Error
398} // namespace Common
399} // namespace openbmc_project
400} // namespace xyz
401} // namespace sdbusplus
402
403namespace sdbusplus
404{
405namespace xyz
406{
407namespace openbmc_project
408{
409namespace User
410{
411namespace Common
412{
413namespace Error
414{
415struct NoResource;
416} // namespace Error
417} // namespace Common
418} // namespace User
419} // namespace openbmc_project
420} // namespace xyz
421} // namespace sdbusplus
422
423namespace sdbusplus
424{
425namespace xyz
426{
427namespace openbmc_project
428{
429namespace Common
430{
431namespace Device
432{
433namespace Error
434{
435struct WriteFailure;
436} // namespace Error
437} // namespace Device
438} // namespace Common
439} // namespace openbmc_project
440} // namespace xyz
441} // namespace sdbusplus
442
443namespace sdbusplus
444{
445namespace xyz
446{
447namespace openbmc_project
448{
449namespace Common
450{
451namespace Error
452{
453struct InsufficientPermission;
454} // namespace Error
455} // namespace Common
456} // namespace openbmc_project
457} // namespace xyz
458} // namespace sdbusplus
459
460namespace sdbusplus
461{
462namespace xyz
463{
464namespace openbmc_project
465{
466namespace Dump
467{
468namespace Create
469{
470namespace Error
471{
472struct Disabled;
473} // namespace Error
474} // namespace Create
475} // namespace Dump
476} // namespace openbmc_project
477} // namespace xyz
478} // namespace sdbusplus
479
480namespace sdbusplus
481{
482namespace xyz
483{
484namespace openbmc_project
485{
486namespace Common
487{
488namespace Callout
489{
490namespace Error
491{
492struct IPMISensor;
493} // namespace Error
494} // namespace Callout
495} // namespace Common
496} // namespace openbmc_project
497} // namespace xyz
498} // namespace sdbusplus
499
500namespace sdbusplus
501{
502namespace xyz
503{
504namespace openbmc_project
505{
506namespace Common
507{
508namespace Error
509{
510struct Timeout;
511} // namespace Error
512} // namespace Common
513} // namespace openbmc_project
514} // namespace xyz
515} // namespace sdbusplus
516
517namespace sdbusplus
518{
519namespace xyz
520{
521namespace openbmc_project
522{
523namespace Common
524{
525namespace Callout
526{
527namespace Error
528{
529struct Inventory;
530} // namespace Error
531} // namespace Callout
532} // namespace Common
533} // namespace openbmc_project
534} // namespace xyz
535} // namespace sdbusplus
536
537namespace sdbusplus
538{
539namespace xyz
540{
541namespace openbmc_project
542{
543namespace Common
544{
545namespace Callout
546{
547namespace Error
548{
549struct IIC;
550} // namespace Error
551} // namespace Callout
552} // namespace Common
553} // namespace openbmc_project
554} // namespace xyz
555} // namespace sdbusplus
556
557namespace sdbusplus
558{
559namespace xyz
560{
561namespace openbmc_project
562{
563namespace State
564{
565namespace Shutdown
566{
567namespace ThermalEvent
568{
569namespace Error
570{
571struct GPU;
572} // namespace Error
573} // namespace ThermalEvent
574} // namespace Shutdown
575} // namespace State
576} // namespace openbmc_project
577} // namespace xyz
578} // namespace sdbusplus
579
580namespace sdbusplus
581{
582namespace xyz
583{
584namespace openbmc_project
585{
586namespace State
587{
588namespace Shutdown
589{
590namespace Power
591{
592namespace Error
593{
594struct Fault;
595} // namespace Error
596} // namespace Power
597} // namespace Shutdown
598} // namespace State
599} // namespace openbmc_project
600} // namespace xyz
601} // namespace sdbusplus
602
603namespace sdbusplus
604{
605namespace xyz
606{
607namespace openbmc_project
608{
609namespace User
610{
611namespace Common
612{
613namespace Error
614{
615struct UserNameExists;
616} // namespace Error
617} // namespace Common
618} // namespace User
619} // namespace openbmc_project
620} // namespace xyz
621} // namespace sdbusplus
622
623namespace sdbusplus
624{
625namespace xyz
626{
627namespace openbmc_project
628{
629namespace State
630{
631namespace Shutdown
632{
633namespace ThermalEvent
634{
635namespace Error
636{
637struct Processor;
638} // namespace Error
639} // namespace ThermalEvent
640} // namespace Shutdown
641} // namespace State
642} // namespace openbmc_project
643} // namespace xyz
644} // namespace sdbusplus
645
646namespace phosphor
647{
648
649namespace logging
650{
651
652namespace xyz
653{
654namespace openbmc_project
655{
656namespace Control
657{
658namespace Host
659{
660namespace _CommandNotSupported
661{
662
663} // namespace _CommandNotSupported
664
665struct CommandNotSupported
666{
667 static constexpr auto L = level::ERR;
668 using metadata_types = std::tuple<>;
669};
670
671} // namespace Host
672} // namespace Control
673} // namespace openbmc_project
674} // namespace xyz
675
676namespace details
677{
678
679template <>
680struct map_exception_type<
681 sdbusplus::xyz::openbmc_project::Control::Host::Error::CommandNotSupported>
682{
683 using type = xyz::openbmc_project::Control::Host::CommandNotSupported;
684};
685
686} // namespace details
687
688namespace xyz
689{
690namespace openbmc_project
691{
692namespace Sensor
693{
694namespace Threshold
695{
696namespace _CriticalHigh
697{
698
699struct SENSOR_DATA
700{
701 static constexpr auto str = "SENSOR_DATA=%s";
702 static constexpr auto str_short = "SENSOR_DATA";
703 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
704 explicit constexpr SENSOR_DATA(const char* a) : _entry(entry(str, a)){};
705 type _entry;
706};
707
708} // namespace _CriticalHigh
709
710struct CriticalHigh
711{
712 static constexpr auto L = level::ERR;
713 using SENSOR_DATA = _CriticalHigh::SENSOR_DATA;
714 using metadata_types = std::tuple<SENSOR_DATA>;
715};
716
717} // namespace Threshold
718} // namespace Sensor
719} // namespace openbmc_project
720} // namespace xyz
721
722namespace details
723{
724
725template <>
726struct map_exception_type<
727 sdbusplus::xyz::openbmc_project::Sensor::Threshold::Error::CriticalHigh>
728{
729 using type = xyz::openbmc_project::Sensor::Threshold::CriticalHigh;
730};
731
732} // namespace details
733
734namespace xyz
735{
736namespace openbmc_project
737{
738namespace Sensor
739{
740namespace Threshold
741{
742namespace _CriticalLow
743{
744
745struct SENSOR_DATA
746{
747 static constexpr auto str = "SENSOR_DATA=%s";
748 static constexpr auto str_short = "SENSOR_DATA";
749 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
750 explicit constexpr SENSOR_DATA(const char* a) : _entry(entry(str, a)){};
751 type _entry;
752};
753
754} // namespace _CriticalLow
755
756struct CriticalLow
757{
758 static constexpr auto L = level::ERR;
759 using SENSOR_DATA = _CriticalLow::SENSOR_DATA;
760 using metadata_types = std::tuple<SENSOR_DATA>;
761};
762
763} // namespace Threshold
764} // namespace Sensor
765} // namespace openbmc_project
766} // namespace xyz
767
768namespace details
769{
770
771template <>
772struct map_exception_type<
773 sdbusplus::xyz::openbmc_project::Sensor::Threshold::Error::CriticalLow>
774{
775 using type = xyz::openbmc_project::Sensor::Threshold::CriticalLow;
776};
777
778} // namespace details
779
780namespace xyz
781{
782namespace openbmc_project
783{
784namespace State
785{
786namespace Shutdown
787{
788namespace ThermalEvent
789{
790namespace _Processor
791{
792
793} // namespace _Processor
794
795struct Processor
796{
797 static constexpr auto L = level::ERR;
798 using metadata_types = std::tuple<>;
799};
800
801} // namespace ThermalEvent
802} // namespace Shutdown
803} // namespace State
804} // namespace openbmc_project
805} // namespace xyz
806
807namespace details
808{
809
810template <>
811struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Shutdown::
812 ThermalEvent::Error::Processor>
813{
814 using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::Processor;
815};
816
817} // namespace details
818
819namespace xyz
820{
821namespace openbmc_project
822{
823namespace State
824{
825namespace Shutdown
826{
827namespace ThermalEvent
828{
829namespace _GPU
830{
831
832} // namespace _GPU
833
834struct GPU
835{
836 static constexpr auto L = level::ERR;
837 using metadata_types = std::tuple<>;
838};
839
840} // namespace ThermalEvent
841} // namespace Shutdown
842} // namespace State
843} // namespace openbmc_project
844} // namespace xyz
845
846namespace details
847{
848
849template <>
850struct map_exception_type<
851 sdbusplus::xyz::openbmc_project::State::Shutdown::ThermalEvent::Error::GPU>
852{
853 using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::GPU;
854};
855
856} // namespace details
857
858namespace xyz
859{
860namespace openbmc_project
861{
862namespace Dump
863{
864namespace Create
865{
866namespace _Disabled
867{
868
869} // namespace _Disabled
870
871struct Disabled
872{
873 static constexpr auto L = level::ERR;
874 using metadata_types = std::tuple<>;
875};
876
877} // namespace Create
878} // namespace Dump
879} // namespace openbmc_project
880} // namespace xyz
881
882namespace details
883{
884
885template <>
886struct map_exception_type<
887 sdbusplus::xyz::openbmc_project::Dump::Create::Error::Disabled>
888{
889 using type = xyz::openbmc_project::Dump::Create::Disabled;
890};
891
892} // namespace details
893
894namespace xyz
895{
896namespace openbmc_project
897{
898namespace Dump
899{
900namespace Create
901{
902namespace _QuotaExceeded
903{
904
905struct REASON
906{
907 static constexpr auto str = "REASON = %s";
908 static constexpr auto str_short = "REASON ";
909 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
910 explicit constexpr REASON(const char* a) : _entry(entry(str, a)){};
911 type _entry;
912};
913
914} // namespace _QuotaExceeded
915
916struct QuotaExceeded
917{
918 static constexpr auto L = level::ERR;
919 using REASON = _QuotaExceeded::REASON;
920 using metadata_types = std::tuple<REASON>;
921};
922
923} // namespace Create
924} // namespace Dump
925} // namespace openbmc_project
926} // namespace xyz
927
928namespace details
929{
930
931template <>
932struct map_exception_type<
933 sdbusplus::xyz::openbmc_project::Dump::Create::Error::QuotaExceeded>
934{
935 using type = xyz::openbmc_project::Dump::Create::QuotaExceeded;
936};
937
938} // namespace details
939
940namespace xyz
941{
942namespace openbmc_project
943{
944namespace Common
945{
946namespace _Timeout
947{
948
949struct TIMEOUT_IN_MSEC
950{
951 static constexpr auto str = "TIMEOUT_IN_MSEC=%llu";
952 static constexpr auto str_short = "TIMEOUT_IN_MSEC";
953 using type = std::tuple<std::decay_t<decltype(str)>, uint64_t>;
954 explicit constexpr TIMEOUT_IN_MSEC(uint64_t a) : _entry(entry(str, a)){};
955 type _entry;
956};
957
958} // namespace _Timeout
959
960struct Timeout
961{
962 static constexpr auto L = level::ERR;
963 using TIMEOUT_IN_MSEC = _Timeout::TIMEOUT_IN_MSEC;
964 using metadata_types = std::tuple<TIMEOUT_IN_MSEC>;
965};
966
967} // namespace Common
968} // namespace openbmc_project
969} // namespace xyz
970
971namespace details
972{
973
974template <>
975struct map_exception_type<
976 sdbusplus::xyz::openbmc_project::Common::Error::Timeout>
977{
978 using type = xyz::openbmc_project::Common::Timeout;
979};
980
981} // namespace details
982
983namespace xyz
984{
985namespace openbmc_project
986{
987namespace Common
988{
989namespace _InternalFailure
990{
991
992} // namespace _InternalFailure
993
994struct InternalFailure
995{
996 static constexpr auto L = level::ERR;
997 using metadata_types = std::tuple<>;
998};
999
1000} // namespace Common
1001} // namespace openbmc_project
1002} // namespace xyz
1003
1004namespace details
1005{
1006
1007template <>
1008struct map_exception_type<
1009 sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure>
1010{
1011 using type = xyz::openbmc_project::Common::InternalFailure;
1012};
1013
1014} // namespace details
1015
1016namespace xyz
1017{
1018namespace openbmc_project
1019{
1020namespace Common
1021{
1022namespace _InvalidArgument
1023{
1024
1025struct ARGUMENT_NAME
1026{
1027 static constexpr auto str = "ARGUMENT_NAME=%s";
1028 static constexpr auto str_short = "ARGUMENT_NAME";
1029 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1030 explicit constexpr ARGUMENT_NAME(const char* a) : _entry(entry(str, a)){};
1031 type _entry;
1032};
1033struct ARGUMENT_VALUE
1034{
1035 static constexpr auto str = "ARGUMENT_VALUE=%s";
1036 static constexpr auto str_short = "ARGUMENT_VALUE";
1037 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1038 explicit constexpr ARGUMENT_VALUE(const char* a) : _entry(entry(str, a)){};
1039 type _entry;
1040};
1041
1042} // namespace _InvalidArgument
1043
1044struct InvalidArgument
1045{
1046 static constexpr auto L = level::ERR;
1047 using ARGUMENT_NAME = _InvalidArgument::ARGUMENT_NAME;
1048 using ARGUMENT_VALUE = _InvalidArgument::ARGUMENT_VALUE;
1049 using metadata_types = std::tuple<ARGUMENT_NAME, ARGUMENT_VALUE>;
1050};
1051
1052} // namespace Common
1053} // namespace openbmc_project
1054} // namespace xyz
1055
1056namespace details
1057{
1058
1059template <>
1060struct map_exception_type<
1061 sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument>
1062{
1063 using type = xyz::openbmc_project::Common::InvalidArgument;
1064};
1065
1066} // namespace details
1067
1068namespace xyz
1069{
1070namespace openbmc_project
1071{
1072namespace Common
1073{
1074namespace _InsufficientPermission
1075{
1076
1077} // namespace _InsufficientPermission
1078
1079struct InsufficientPermission
1080{
1081 static constexpr auto L = level::INFO;
1082 using metadata_types = std::tuple<>;
1083};
1084
1085} // namespace Common
1086} // namespace openbmc_project
1087} // namespace xyz
1088
1089namespace details
1090{
1091
1092template <>
1093struct map_exception_type<
1094 sdbusplus::xyz::openbmc_project::Common::Error::InsufficientPermission>
1095{
1096 using type = xyz::openbmc_project::Common::InsufficientPermission;
1097};
1098
1099} // namespace details
1100
1101namespace xyz
1102{
1103namespace openbmc_project
1104{
1105namespace User
1106{
1107namespace Common
1108{
1109namespace _UserNameExists
1110{
1111
1112} // namespace _UserNameExists
1113
1114struct UserNameExists
1115{
1116 static constexpr auto L = level::ERR;
1117 using metadata_types = std::tuple<>;
1118};
1119
1120} // namespace Common
1121} // namespace User
1122} // namespace openbmc_project
1123} // namespace xyz
1124
1125namespace details
1126{
1127
1128template <>
1129struct map_exception_type<
1130 sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameExists>
1131{
1132 using type = xyz::openbmc_project::User::Common::UserNameExists;
1133};
1134
1135} // namespace details
1136
1137namespace xyz
1138{
1139namespace openbmc_project
1140{
1141namespace User
1142{
1143namespace Common
1144{
1145namespace _UserNameDoesNotExist
1146{
1147
1148} // namespace _UserNameDoesNotExist
1149
1150struct UserNameDoesNotExist
1151{
1152 static constexpr auto L = level::ERR;
1153 using metadata_types = std::tuple<>;
1154};
1155
1156} // namespace Common
1157} // namespace User
1158} // namespace openbmc_project
1159} // namespace xyz
1160
1161namespace details
1162{
1163
1164template <>
1165struct map_exception_type<
1166 sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameDoesNotExist>
1167{
1168 using type = xyz::openbmc_project::User::Common::UserNameDoesNotExist;
1169};
1170
1171} // namespace details
1172
1173namespace xyz
1174{
1175namespace openbmc_project
1176{
1177namespace User
1178{
1179namespace Common
1180{
1181namespace _UserNameGrpPrivFail
1182{
1183
1184struct REASON
1185{
1186 static constexpr auto str = "REASON = %s";
1187 static constexpr auto str_short = "REASON ";
1188 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1189 explicit constexpr REASON(const char* a) : _entry(entry(str, a)){};
1190 type _entry;
1191};
1192
1193} // namespace _UserNameGrpPrivFail
1194
1195struct UserNameGrpPrivFail
1196{
1197 static constexpr auto L = level::ERR;
1198 using REASON = _UserNameGrpPrivFail::REASON;
1199 using metadata_types = std::tuple<REASON>;
1200};
1201
1202} // namespace Common
1203} // namespace User
1204} // namespace openbmc_project
1205} // namespace xyz
1206
1207namespace details
1208{
1209
1210template <>
1211struct map_exception_type<
1212 sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameGrpPrivFail>
1213{
1214 using type = xyz::openbmc_project::User::Common::UserNameGrpPrivFail;
1215};
1216
1217} // namespace details
1218
1219namespace xyz
1220{
1221namespace openbmc_project
1222{
1223namespace User
1224{
1225namespace Common
1226{
1227namespace _NoResource
1228{
1229
1230struct REASON
1231{
1232 static constexpr auto str = "REASON = %s";
1233 static constexpr auto str_short = "REASON ";
1234 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1235 explicit constexpr REASON(const char* a) : _entry(entry(str, a)){};
1236 type _entry;
1237};
1238
1239} // namespace _NoResource
1240
1241struct NoResource
1242{
1243 static constexpr auto L = level::ERR;
1244 using REASON = _NoResource::REASON;
1245 using metadata_types = std::tuple<REASON>;
1246};
1247
1248} // namespace Common
1249} // namespace User
1250} // namespace openbmc_project
1251} // namespace xyz
1252
1253namespace details
1254{
1255
1256template <>
1257struct map_exception_type<
1258 sdbusplus::xyz::openbmc_project::User::Common::Error::NoResource>
1259{
1260 using type = xyz::openbmc_project::User::Common::NoResource;
1261};
1262
1263} // namespace details
1264
1265namespace xyz
1266{
1267namespace openbmc_project
1268{
1269namespace Common
1270{
1271namespace File
1272{
1273namespace _Open
1274{
1275
1276struct ERRNO
1277{
1278 static constexpr auto str = "ERRNO=%d";
1279 static constexpr auto str_short = "ERRNO";
1280 using type = std::tuple<std::decay_t<decltype(str)>, int32_t>;
1281 explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)){};
1282 type _entry;
1283};
1284struct PATH
1285{
1286 static constexpr auto str = "PATH=%s";
1287 static constexpr auto str_short = "PATH";
1288 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1289 explicit constexpr PATH(const char* a) : _entry(entry(str, a)){};
1290 type _entry;
1291};
1292
1293} // namespace _Open
1294
1295struct Open
1296{
1297 static constexpr auto L = level::ERR;
1298 using ERRNO = _Open::ERRNO;
1299 using PATH = _Open::PATH;
1300 using metadata_types = std::tuple<ERRNO, PATH>;
1301};
1302
1303} // namespace File
1304} // namespace Common
1305} // namespace openbmc_project
1306} // namespace xyz
1307
1308namespace details
1309{
1310
1311template <>
1312struct map_exception_type<
1313 sdbusplus::xyz::openbmc_project::Common::File::Error::Open>
1314{
1315 using type = xyz::openbmc_project::Common::File::Open;
1316};
1317
1318} // namespace details
1319
1320namespace xyz
1321{
1322namespace openbmc_project
1323{
1324namespace Common
1325{
1326namespace File
1327{
1328namespace _Seek
1329{
1330
1331struct OFFSET
1332{
1333 static constexpr auto str = "OFFSET=%ll";
1334 static constexpr auto str_short = "OFFSET";
1335 using type = std::tuple<std::decay_t<decltype(str)>, int64_t>;
1336 explicit constexpr OFFSET(int64_t a) : _entry(entry(str, a)){};
1337 type _entry;
1338};
1339struct WHENCE
1340{
1341 static constexpr auto str = "WHENCE=%d";
1342 static constexpr auto str_short = "WHENCE";
1343 using type = std::tuple<std::decay_t<decltype(str)>, int32_t>;
1344 explicit constexpr WHENCE(int32_t a) : _entry(entry(str, a)){};
1345 type _entry;
1346};
1347struct ERRNO
1348{
1349 static constexpr auto str = "ERRNO=%d";
1350 static constexpr auto str_short = "ERRNO";
1351 using type = std::tuple<std::decay_t<decltype(str)>, int32_t>;
1352 explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)){};
1353 type _entry;
1354};
1355struct PATH
1356{
1357 static constexpr auto str = "PATH=%s";
1358 static constexpr auto str_short = "PATH";
1359 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1360 explicit constexpr PATH(const char* a) : _entry(entry(str, a)){};
1361 type _entry;
1362};
1363
1364} // namespace _Seek
1365
1366struct Seek
1367{
1368 static constexpr auto L = level::ERR;
1369 using OFFSET = _Seek::OFFSET;
1370 using WHENCE = _Seek::WHENCE;
1371 using ERRNO = _Seek::ERRNO;
1372 using PATH = _Seek::PATH;
1373 using metadata_types = std::tuple<OFFSET, WHENCE, ERRNO, PATH>;
1374};
1375
1376} // namespace File
1377} // namespace Common
1378} // namespace openbmc_project
1379} // namespace xyz
1380
1381namespace details
1382{
1383
1384template <>
1385struct map_exception_type<
1386 sdbusplus::xyz::openbmc_project::Common::File::Error::Seek>
1387{
1388 using type = xyz::openbmc_project::Common::File::Seek;
1389};
1390
1391} // namespace details
1392
1393namespace xyz
1394{
1395namespace openbmc_project
1396{
1397namespace Common
1398{
1399namespace File
1400{
1401namespace _Write
1402{
1403
1404struct ERRNO
1405{
1406 static constexpr auto str = "ERRNO=%d";
1407 static constexpr auto str_short = "ERRNO";
1408 using type = std::tuple<std::decay_t<decltype(str)>, int32_t>;
1409 explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)){};
1410 type _entry;
1411};
1412struct PATH
1413{
1414 static constexpr auto str = "PATH=%s";
1415 static constexpr auto str_short = "PATH";
1416 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1417 explicit constexpr PATH(const char* a) : _entry(entry(str, a)){};
1418 type _entry;
1419};
1420
1421} // namespace _Write
1422
1423struct Write
1424{
1425 static constexpr auto L = level::ERR;
1426 using ERRNO = _Write::ERRNO;
1427 using PATH = _Write::PATH;
1428 using metadata_types = std::tuple<ERRNO, PATH>;
1429};
1430
1431} // namespace File
1432} // namespace Common
1433} // namespace openbmc_project
1434} // namespace xyz
1435
1436namespace details
1437{
1438
1439template <>
1440struct map_exception_type<
1441 sdbusplus::xyz::openbmc_project::Common::File::Error::Write>
1442{
1443 using type = xyz::openbmc_project::Common::File::Write;
1444};
1445
1446} // namespace details
1447
1448namespace example
1449{
1450namespace xyz
1451{
1452namespace openbmc_project
1453{
1454namespace Example
1455{
1456namespace Device
1457{
1458namespace _Callout
1459{
1460
1461struct CALLOUT_ERRNO_TEST
1462{
1463 static constexpr auto str = "CALLOUT_ERRNO_TEST=%d";
1464 static constexpr auto str_short = "CALLOUT_ERRNO_TEST";
1465 using type = std::tuple<std::decay_t<decltype(str)>, int32_t>;
1466 explicit constexpr CALLOUT_ERRNO_TEST(int32_t a) : _entry(entry(str, a)){};
1467 type _entry;
1468};
1469struct CALLOUT_DEVICE_PATH_TEST
1470{
1471 static constexpr auto str = "CALLOUT_DEVICE_PATH_TEST=%s";
1472 static constexpr auto str_short = "CALLOUT_DEVICE_PATH_TEST";
1473 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1474 explicit constexpr CALLOUT_DEVICE_PATH_TEST(const char* a) :
1475 _entry(entry(str, a)){};
1476 type _entry;
1477};
1478
1479} // namespace _Callout
1480
1481struct Callout : public sdbusplus::exception_t
1482{
1483 static constexpr auto errName =
1484 "example.xyz.openbmc_project.Example.Device.Callout";
1485 static constexpr auto errDesc = "Generic device callout";
1486 static constexpr auto L = level::ERR;
1487 using CALLOUT_ERRNO_TEST = _Callout::CALLOUT_ERRNO_TEST;
1488 using CALLOUT_DEVICE_PATH_TEST = _Callout::CALLOUT_DEVICE_PATH_TEST;
1489 using metadata_types =
1490 std::tuple<CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>;
1491
1492 const char* name() const noexcept
1493 {
1494 return errName;
1495 }
1496
1497 const char* description() const noexcept
1498 {
1499 return errDesc;
1500 }
1501
1502 const char* what() const noexcept
1503 {
1504 return errName;
1505 }
1506};
1507
1508} // namespace Device
1509} // namespace Example
1510} // namespace openbmc_project
1511} // namespace xyz
1512} // namespace example
1513
1514namespace xyz
1515{
1516namespace openbmc_project
1517{
1518namespace Common
1519{
1520namespace Callout
1521{
1522namespace _Device
1523{
1524
1525struct CALLOUT_ERRNO
1526{
1527 static constexpr auto str = "CALLOUT_ERRNO=%d";
1528 static constexpr auto str_short = "CALLOUT_ERRNO";
1529 using type = std::tuple<std::decay_t<decltype(str)>, int32_t>;
1530 explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)){};
1531 type _entry;
1532};
1533struct CALLOUT_DEVICE_PATH
1534{
1535 static constexpr auto str = "CALLOUT_DEVICE_PATH=%s";
1536 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
1537 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1538 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
1539 _entry(entry(str, a)){};
1540 type _entry;
1541};
1542
1543} // namespace _Device
1544
1545struct Device
1546{
1547 static constexpr auto L = level::ERR;
1548 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
1549 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
1550 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1551};
1552
1553} // namespace Callout
1554} // namespace Common
1555} // namespace openbmc_project
1556} // namespace xyz
1557
1558namespace details
1559{
1560
1561template <>
1562struct map_exception_type<
1563 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
1564{
1565 using type = xyz::openbmc_project::Common::Callout::Device;
1566};
1567
1568} // namespace details
1569
1570namespace xyz
1571{
1572namespace openbmc_project
1573{
1574namespace Common
1575{
1576namespace Callout
1577{
1578namespace _GPIO
1579{
1580
1581struct CALLOUT_GPIO_NUM
1582{
1583 static constexpr auto str = "CALLOUT_GPIO_NUM=%u";
1584 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
1585 using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>;
1586 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)){};
1587 type _entry;
1588};
1589
1590} // namespace _GPIO
1591
1592struct GPIO
1593{
1594 static constexpr auto L = level::ERR;
1595 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
1596 using CALLOUT_ERRNO =
1597 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1598 using CALLOUT_DEVICE_PATH =
1599 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1600 using metadata_types =
1601 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1602};
1603
1604} // namespace Callout
1605} // namespace Common
1606} // namespace openbmc_project
1607} // namespace xyz
1608
1609namespace details
1610{
1611
1612template <>
1613struct map_exception_type<
1614 sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
1615{
1616 using type = xyz::openbmc_project::Common::Callout::GPIO;
1617};
1618
1619} // namespace details
1620
1621namespace xyz
1622{
1623namespace openbmc_project
1624{
1625namespace Common
1626{
1627namespace Callout
1628{
1629namespace _IIC
1630{
1631
1632struct CALLOUT_IIC_BUS
1633{
1634 static constexpr auto str = "CALLOUT_IIC_BUS=%s";
1635 static constexpr auto str_short = "CALLOUT_IIC_BUS";
1636 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1637 explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)){};
1638 type _entry;
1639};
1640struct CALLOUT_IIC_ADDR
1641{
1642 static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx";
1643 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
1644 using type = std::tuple<std::decay_t<decltype(str)>, uint16_t>;
1645 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)){};
1646 type _entry;
1647};
1648
1649} // namespace _IIC
1650
1651struct IIC
1652{
1653 static constexpr auto L = level::ERR;
1654 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
1655 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
1656 using CALLOUT_ERRNO =
1657 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1658 using CALLOUT_DEVICE_PATH =
1659 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1660 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
1661 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1662};
1663
1664} // namespace Callout
1665} // namespace Common
1666} // namespace openbmc_project
1667} // namespace xyz
1668
1669namespace details
1670{
1671
1672template <>
1673struct map_exception_type<
1674 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
1675{
1676 using type = xyz::openbmc_project::Common::Callout::IIC;
1677};
1678
1679} // namespace details
1680
1681namespace xyz
1682{
1683namespace openbmc_project
1684{
1685namespace Common
1686{
1687namespace Callout
1688{
1689namespace _Inventory
1690{
1691
1692struct CALLOUT_INVENTORY_PATH
1693{
1694 static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s";
1695 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
1696 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1697 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
1698 _entry(entry(str, a)){};
1699 type _entry;
1700};
1701
1702} // namespace _Inventory
1703
1704struct Inventory
1705{
1706 static constexpr auto L = level::ERR;
1707 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
1708 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
1709};
1710
1711} // namespace Callout
1712} // namespace Common
1713} // namespace openbmc_project
1714} // namespace xyz
1715
1716namespace details
1717{
1718
1719template <>
1720struct map_exception_type<
1721 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
1722{
1723 using type = xyz::openbmc_project::Common::Callout::Inventory;
1724};
1725
1726} // namespace details
1727
1728namespace xyz
1729{
1730namespace openbmc_project
1731{
1732namespace Common
1733{
1734namespace Callout
1735{
1736namespace _IPMISensor
1737{
1738
1739struct CALLOUT_IPMI_SENSOR_NUM
1740{
1741 static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u";
1742 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
1743 using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>;
1744 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
1745 _entry(entry(str, a)){};
1746 type _entry;
1747};
1748
1749} // namespace _IPMISensor
1750
1751struct IPMISensor
1752{
1753 static constexpr auto L = level::ERR;
1754 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
1755 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
1756};
1757
1758} // namespace Callout
1759} // namespace Common
1760} // namespace openbmc_project
1761} // namespace xyz
1762
1763namespace details
1764{
1765
1766template <>
1767struct map_exception_type<
1768 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
1769{
1770 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
1771};
1772
1773} // namespace details
1774
1775namespace xyz
1776{
1777namespace openbmc_project
1778{
1779namespace Common
1780{
1781namespace Device
1782{
1783namespace _ReadFailure
1784{
1785
1786} // namespace _ReadFailure
1787
1788struct ReadFailure
1789{
1790 static constexpr auto L = level::ERR;
1791 using CALLOUT_ERRNO =
1792 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1793 using CALLOUT_DEVICE_PATH =
1794 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1795 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1796};
1797
1798} // namespace Device
1799} // namespace Common
1800} // namespace openbmc_project
1801} // namespace xyz
1802
1803namespace details
1804{
1805
1806template <>
1807struct map_exception_type<
1808 sdbusplus::xyz::openbmc_project::Common::Device::Error::ReadFailure>
1809{
1810 using type = xyz::openbmc_project::Common::Device::ReadFailure;
1811};
1812
1813} // namespace details
1814
1815namespace xyz
1816{
1817namespace openbmc_project
1818{
1819namespace Common
1820{
1821namespace Device
1822{
1823namespace _WriteFailure
1824{
1825
1826} // namespace _WriteFailure
1827
1828struct WriteFailure
1829{
1830 static constexpr auto L = level::ERR;
1831 using CALLOUT_ERRNO =
1832 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
1833 using CALLOUT_DEVICE_PATH =
1834 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
1835 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1836};
1837
1838} // namespace Device
1839} // namespace Common
1840} // namespace openbmc_project
1841} // namespace xyz
1842
1843namespace details
1844{
1845
1846template <>
1847struct map_exception_type<
1848 sdbusplus::xyz::openbmc_project::Common::Device::Error::WriteFailure>
1849{
1850 using type = xyz::openbmc_project::Common::Device::WriteFailure;
1851};
1852
1853} // namespace details
1854
1855namespace example
1856{
1857namespace xyz
1858{
1859namespace openbmc_project
1860{
1861namespace Example
1862{
1863namespace Elog
1864{
1865namespace _TestErrorTwo
1866{
1867
1868struct DEV_ADDR
1869{
1870 static constexpr auto str = "DEV_ADDR=0x%.8X";
1871 static constexpr auto str_short = "DEV_ADDR";
1872 using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>;
1873 explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)){};
1874 type _entry;
1875};
1876struct DEV_ID
1877{
1878 static constexpr auto str = "DEV_ID=%u";
1879 static constexpr auto str_short = "DEV_ID";
1880 using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>;
1881 explicit constexpr DEV_ID(uint32_t a) : _entry(entry(str, a)){};
1882 type _entry;
1883};
1884struct DEV_NAME
1885{
1886 static constexpr auto str = "DEV_NAME=%s";
1887 static constexpr auto str_short = "DEV_NAME";
1888 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1889 explicit constexpr DEV_NAME(const char* a) : _entry(entry(str, a)){};
1890 type _entry;
1891};
1892
1893} // namespace _TestErrorTwo
1894
1895struct TestErrorTwo : public sdbusplus::exception_t
1896{
1897 static constexpr auto errName =
1898 "example.xyz.openbmc_project.Example.Elog.TestErrorTwo";
1899 static constexpr auto errDesc = "This is test error two";
1900 static constexpr auto L = level::ERR;
1901 using DEV_ADDR = _TestErrorTwo::DEV_ADDR;
1902 using DEV_ID = _TestErrorTwo::DEV_ID;
1903 using DEV_NAME = _TestErrorTwo::DEV_NAME;
1904 using metadata_types = std::tuple<DEV_ADDR, DEV_ID, DEV_NAME>;
1905
1906 const char* name() const noexcept
1907 {
1908 return errName;
1909 }
1910
1911 const char* description() const noexcept
1912 {
1913 return errDesc;
1914 }
1915
1916 const char* what() const noexcept
1917 {
1918 return errName;
1919 }
1920};
1921
1922} // namespace Elog
1923} // namespace Example
1924} // namespace openbmc_project
1925} // namespace xyz
1926} // namespace example
1927
1928namespace example
1929{
1930namespace xyz
1931{
1932namespace openbmc_project
1933{
1934namespace Example
1935{
1936namespace Elog
1937{
1938namespace _AutoTestSimple
1939{
1940
1941struct STRING
1942{
1943 static constexpr auto str = "STRING=%s";
1944 static constexpr auto str_short = "STRING";
1945 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1946 explicit constexpr STRING(const char* a) : _entry(entry(str, a)){};
1947 type _entry;
1948};
1949
1950} // namespace _AutoTestSimple
1951
1952struct AutoTestSimple : public sdbusplus::exception_t
1953{
1954 static constexpr auto errName =
1955 "example.xyz.openbmc_project.Example.Elog.AutoTestSimple";
1956 static constexpr auto errDesc = "This is a simple test error.";
1957 static constexpr auto L = level::ERR;
1958 using STRING = _AutoTestSimple::STRING;
1959 using metadata_types = std::tuple<STRING>;
1960
1961 const char* name() const noexcept
1962 {
1963 return errName;
1964 }
1965
1966 const char* description() const noexcept
1967 {
1968 return errDesc;
1969 }
1970
1971 const char* what() const noexcept
1972 {
1973 return errName;
1974 }
1975};
1976
1977} // namespace Elog
1978} // namespace Example
1979} // namespace openbmc_project
1980} // namespace xyz
1981} // namespace example
1982
1983namespace example
1984{
1985namespace xyz
1986{
1987namespace openbmc_project
1988{
1989namespace Example
1990{
1991namespace Elog
1992{
1993namespace _TestCallout
1994{
1995
1996struct DEV_ADDR
1997{
1998 static constexpr auto str = "DEV_ADDR=0x%.8X";
1999 static constexpr auto str_short = "DEV_ADDR";
2000 using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>;
2001 explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)){};
2002 type _entry;
2003};
2004
2005} // namespace _TestCallout
2006
2007struct TestCallout : public sdbusplus::exception_t
2008{
2009 static constexpr auto errName =
2010 "example.xyz.openbmc_project.Example.Elog.TestCallout";
2011 static constexpr auto errDesc = "This is test error TestCallout";
2012 static constexpr auto L = level::ERR;
2013 using DEV_ADDR = _TestCallout::DEV_ADDR;
2014 using CALLOUT_ERRNO_TEST = example::xyz::openbmc_project::Example::Device::
2015 Callout::CALLOUT_ERRNO_TEST;
2016 using CALLOUT_DEVICE_PATH_TEST = example::xyz::openbmc_project::Example::
2017 Device::Callout::CALLOUT_DEVICE_PATH_TEST;
2018 using metadata_types =
2019 std::tuple<DEV_ADDR, CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>;
2020
2021 const char* name() const noexcept
2022 {
2023 return errName;
2024 }
2025
2026 const char* description() const noexcept
2027 {
2028 return errDesc;
2029 }
2030
2031 const char* what() const noexcept
2032 {
2033 return errName;
2034 }
2035};
2036
2037} // namespace Elog
2038} // namespace Example
2039} // namespace openbmc_project
2040} // namespace xyz
2041} // namespace example
2042
2043namespace xyz
2044{
2045namespace openbmc_project
2046{
2047namespace State
2048{
2049namespace Shutdown
2050{
2051namespace Inventory
2052{
2053namespace _Fan
2054{
2055
2056} // namespace _Fan
2057
2058struct Fan
2059{
2060 static constexpr auto L = level::ERR;
2061 using metadata_types = std::tuple<>;
2062};
2063
2064} // namespace Inventory
2065} // namespace Shutdown
2066} // namespace State
2067} // namespace openbmc_project
2068} // namespace xyz
2069
2070namespace details
2071{
2072
2073template <>
2074struct map_exception_type<
2075 sdbusplus::xyz::openbmc_project::State::Shutdown::Inventory::Error::Fan>
2076{
2077 using type = xyz::openbmc_project::State::Shutdown::Inventory::Fan;
2078};
2079
2080} // namespace details
2081
2082namespace xyz
2083{
2084namespace openbmc_project
2085{
2086namespace State
2087{
2088namespace Shutdown
2089{
2090namespace Power
2091{
2092namespace _Fault
2093{
2094
2095} // namespace _Fault
2096
2097struct Fault
2098{
2099 static constexpr auto L = level::ERR;
2100 using metadata_types = std::tuple<>;
2101};
2102
2103} // namespace Power
2104} // namespace Shutdown
2105} // namespace State
2106} // namespace openbmc_project
2107} // namespace xyz
2108
2109namespace details
2110{
2111
2112template <>
2113struct map_exception_type<
2114 sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Fault>
2115{
2116 using type = xyz::openbmc_project::State::Shutdown::Power::Fault;
2117};
2118
2119} // namespace details
2120
2121namespace xyz
2122{
2123namespace openbmc_project
2124{
2125namespace Sensor
2126{
2127namespace Device
2128{
2129namespace _ReadFailure
2130{
2131
2132} // namespace _ReadFailure
2133
2134struct ReadFailure
2135{
2136 static constexpr auto L = level::ERR;
2137 using CALLOUT_ERRNO =
2138 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
2139 using CALLOUT_DEVICE_PATH =
2140 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
2141 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
2142};
2143
2144} // namespace Device
2145} // namespace Sensor
2146} // namespace openbmc_project
2147} // namespace xyz
2148
2149namespace details
2150{
2151
2152template <>
2153struct map_exception_type<
2154 sdbusplus::xyz::openbmc_project::Sensor::Device::Error::ReadFailure>
2155{
2156 using type = xyz::openbmc_project::Sensor::Device::ReadFailure;
2157};
2158
2159} // namespace details
2160
2161namespace xyz
2162{
2163namespace openbmc_project
2164{
2165namespace State
2166{
2167namespace Host
2168{
2169namespace _SoftOffTimeout
2170{
2171
2172} // namespace _SoftOffTimeout
2173
2174struct SoftOffTimeout
2175{
2176 static constexpr auto L = level::ERR;
2177 using TIMEOUT_IN_MSEC =
2178 xyz::openbmc_project::Common::Timeout::TIMEOUT_IN_MSEC;
2179 using metadata_types = std::tuple<TIMEOUT_IN_MSEC>;
2180};
2181
2182} // namespace Host
2183} // namespace State
2184} // namespace openbmc_project
2185} // namespace xyz
2186
2187namespace details
2188{
2189
2190template <>
2191struct map_exception_type<
2192 sdbusplus::xyz::openbmc_project::State::Host::Error::SoftOffTimeout>
2193{
2194 using type = xyz::openbmc_project::State::Host::SoftOffTimeout;
2195};
2196
2197} // namespace details
2198
2199namespace xyz
2200{
2201namespace openbmc_project
2202{
2203namespace Inventory
2204{
2205namespace _NotPresent
2206{
2207
2208} // namespace _NotPresent
2209
2210struct NotPresent
2211{
2212 static constexpr auto L = level::ERR;
2213 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
2214 Inventory::CALLOUT_INVENTORY_PATH;
2215 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
2216};
2217
2218} // namespace Inventory
2219} // namespace openbmc_project
2220} // namespace xyz
2221
2222namespace details
2223{
2224
2225template <>
2226struct map_exception_type<
2227 sdbusplus::xyz::openbmc_project::Inventory::Error::NotPresent>
2228{
2229 using type = xyz::openbmc_project::Inventory::NotPresent;
2230};
2231
2232} // namespace details
2233
2234namespace xyz
2235{
2236namespace openbmc_project
2237{
2238namespace Inventory
2239{
2240namespace _Nonfunctional
2241{
2242
2243} // namespace _Nonfunctional
2244
2245struct Nonfunctional
2246{
2247 static constexpr auto L = level::ERR;
2248 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
2249 Inventory::CALLOUT_INVENTORY_PATH;
2250 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
2251};
2252
2253} // namespace Inventory
2254} // namespace openbmc_project
2255} // namespace xyz
2256
2257namespace details
2258{
2259
2260template <>
2261struct map_exception_type<
2262 sdbusplus::xyz::openbmc_project::Inventory::Error::Nonfunctional>
2263{
2264 using type = xyz::openbmc_project::Inventory::Nonfunctional;
2265};
2266
2267} // namespace details
2268
2269namespace xyz
2270{
2271namespace openbmc_project
2272{
2273namespace Control
2274{
2275namespace Device
2276{
2277namespace _WriteFailure
2278{
2279
2280} // namespace _WriteFailure
2281
2282struct WriteFailure
2283{
2284 static constexpr auto L = level::ERR;
2285 using CALLOUT_ERRNO =
2286 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
2287 using CALLOUT_DEVICE_PATH =
2288 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
2289 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
2290};
2291
2292} // namespace Device
2293} // namespace Control
2294} // namespace openbmc_project
2295} // namespace xyz
2296
2297namespace details
2298{
2299
2300template <>
2301struct map_exception_type<
2302 sdbusplus::xyz::openbmc_project::Control::Device::Error::WriteFailure>
2303{
2304 using type = xyz::openbmc_project::Control::Device::WriteFailure;
2305};
2306
2307} // namespace details
2308
2309namespace example
2310{
2311namespace xyz
2312{
2313namespace openbmc_project
2314{
2315namespace Example
2316{
2317namespace Elog
2318{
2319namespace _TestErrorOne
2320{
2321
2322struct ERRNUM
2323{
2324 static constexpr auto str = "ERRNUM=0x%.4X";
2325 static constexpr auto str_short = "ERRNUM";
2326 using type = std::tuple<std::decay_t<decltype(str)>, uint16_t>;
2327 explicit constexpr ERRNUM(uint16_t a) : _entry(entry(str, a)){};
2328 type _entry;
2329};
2330struct FILE_PATH
2331{
2332 static constexpr auto str = "FILE_PATH=%s";
2333 static constexpr auto str_short = "FILE_PATH";
2334 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
2335 explicit constexpr FILE_PATH(const char* a) : _entry(entry(str, a)){};
2336 type _entry;
2337};
2338struct FILE_NAME
2339{
2340 static constexpr auto str = "FILE_NAME=%s";
2341 static constexpr auto str_short = "FILE_NAME";
2342 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
2343 explicit constexpr FILE_NAME(const char* a) : _entry(entry(str, a)){};
2344 type _entry;
2345};
2346
2347} // namespace _TestErrorOne
2348
2349struct TestErrorOne : public sdbusplus::exception_t
2350{
2351 static constexpr auto errName =
2352 "example.xyz.openbmc_project.Example.Elog.TestErrorOne";
2353 static constexpr auto errDesc = "this is test error one";
2354 static constexpr auto L = level::INFO;
2355 using ERRNUM = _TestErrorOne::ERRNUM;
2356 using FILE_PATH = _TestErrorOne::FILE_PATH;
2357 using FILE_NAME = _TestErrorOne::FILE_NAME;
2358 using DEV_ADDR =
2359 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
2360 using DEV_ID =
2361 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
2362 using DEV_NAME =
2363 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
2364 using metadata_types =
2365 std::tuple<ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>;
2366
2367 const char* name() const noexcept
2368 {
2369 return errName;
2370 }
2371
2372 const char* description() const noexcept
2373 {
2374 return errDesc;
2375 }
2376
2377 const char* what() const noexcept
2378 {
2379 return errName;
2380 }
2381};
2382
2383} // namespace Elog
2384} // namespace Example
2385} // namespace openbmc_project
2386} // namespace xyz
2387} // namespace example
2388
2389namespace example
2390{
2391namespace xyz
2392{
2393namespace openbmc_project
2394{
2395namespace Example
2396{
2397namespace Foo
2398{
2399namespace _Foo
2400{
2401
2402struct FOO_DATA
2403{
2404 static constexpr auto str = "FOO_DATA=%s";
2405 static constexpr auto str_short = "FOO_DATA";
2406 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
2407 explicit constexpr FOO_DATA(const char* a) : _entry(entry(str, a)){};
2408 type _entry;
2409};
2410
2411} // namespace _Foo
2412
2413struct Foo : public sdbusplus::exception_t
2414{
2415 static constexpr auto errName =
2416 "example.xyz.openbmc_project.Example.Foo.Foo";
2417 static constexpr auto errDesc = "this is test error Foo";
2418 static constexpr auto L = level::INFO;
2419 using FOO_DATA = _Foo::FOO_DATA;
2420 using ERRNUM =
2421 example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM;
2422 using FILE_PATH =
2423 example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH;
2424 using FILE_NAME =
2425 example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME;
2426 using DEV_ADDR =
2427 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
2428 using DEV_ID =
2429 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
2430 using DEV_NAME =
2431 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
2432 using metadata_types = std::tuple<FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME,
2433 DEV_ADDR, DEV_ID, DEV_NAME>;
2434
2435 const char* name() const noexcept
2436 {
2437 return errName;
2438 }
2439
2440 const char* description() const noexcept
2441 {
2442 return errDesc;
2443 }
2444
2445 const char* what() const noexcept
2446 {
2447 return errName;
2448 }
2449};
2450
2451} // namespace Foo
2452} // namespace Example
2453} // namespace openbmc_project
2454} // namespace xyz
2455} // namespace example
2456
2457namespace example
2458{
2459namespace xyz
2460{
2461namespace openbmc_project
2462{
2463namespace Example
2464{
2465namespace Bar
2466{
2467namespace _Bar
2468{
2469
2470struct BAR_DATA
2471{
2472 static constexpr auto str = "BAR_DATA=%s";
2473 static constexpr auto str_short = "BAR_DATA";
2474 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
2475 explicit constexpr BAR_DATA(const char* a) : _entry(entry(str, a)){};
2476 type _entry;
2477};
2478
2479} // namespace _Bar
2480
2481struct Bar : public sdbusplus::exception_t
2482{
2483 static constexpr auto errName =
2484 "example.xyz.openbmc_project.Example.Bar.Bar";
2485 static constexpr auto errDesc = "this is test error Bar";
2486 static constexpr auto L = level::INFO;
2487 using BAR_DATA = _Bar::BAR_DATA;
2488 using FOO_DATA = example::xyz::openbmc_project::Example::Foo::Foo::FOO_DATA;
2489 using ERRNUM =
2490 example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM;
2491 using FILE_PATH =
2492 example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH;
2493 using FILE_NAME =
2494 example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME;
2495 using DEV_ADDR =
2496 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
2497 using DEV_ID =
2498 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
2499 using DEV_NAME =
2500 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
2501 using metadata_types = std::tuple<BAR_DATA, FOO_DATA, ERRNUM, FILE_PATH,
2502 FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>;
2503
2504 const char* name() const noexcept
2505 {
2506 return errName;
2507 }
2508
2509 const char* description() const noexcept
2510 {
2511 return errDesc;
2512 }
2513
2514 const char* what() const noexcept
2515 {
2516 return errName;
2517 }
2518};
2519
2520} // namespace Bar
2521} // namespace Example
2522} // namespace openbmc_project
2523} // namespace xyz
2524} // namespace example
2525
2526} // namespace logging
2527
2528} // namespace phosphor