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