blob: bb806140f269d41c00f1f1187c9df6a20ae55ea1 [file] [log] [blame]
Tom Joseph448e74e2017-07-24 23:08:56 +05301// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
3#pragma once
4
Patrick Venture0b02be92018-08-31 11:55:55 -07005#include <phosphor-logging/elog.hpp>
6#include <phosphor-logging/log.hpp>
7#include <sdbusplus/exception.hpp>
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05008
Tom Joseph448e74e2017-07-24 23:08:56 +05309#include <string>
10#include <tuple>
11#include <type_traits>
Tom Joseph448e74e2017-07-24 23:08:56 +053012
13namespace sdbusplus
14{
Patrick Williamsdf329092021-09-08 16:05:08 -050015namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053016{
Patrick Williamsdf329092021-09-08 16:05:08 -050017namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +053018{
Patrick Williamsdf329092021-09-08 16:05:08 -050019namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +053020{
21namespace Error
22{
Patrick Williamsdf329092021-09-08 16:05:08 -050023struct BlankSystemVPD;
Tom Joseph448e74e2017-07-24 23:08:56 +053024} // namespace Error
Patrick Williamsdf329092021-09-08 16:05:08 -050025} // namespace VPD
26} // namespace ibm
27} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053028} // namespace sdbusplus
Tom Joseph448e74e2017-07-24 23:08:56 +053029namespace sdbusplus
30{
Patrick Williamsdf329092021-09-08 16:05:08 -050031namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053032{
Patrick Williamsdf329092021-09-08 16:05:08 -050033namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +053034{
Patrick Williamsdf329092021-09-08 16:05:08 -050035namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +053036{
Tom Joseph448e74e2017-07-24 23:08:56 +053037namespace Error
38{
Patrick Williamsdf329092021-09-08 16:05:08 -050039struct DbusFailure;
Tom Joseph448e74e2017-07-24 23:08:56 +053040} // namespace Error
Patrick Williamsdf329092021-09-08 16:05:08 -050041} // namespace VPD
42} // namespace ibm
43} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053044} // namespace sdbusplus
Tom Joseph448e74e2017-07-24 23:08:56 +053045namespace sdbusplus
46{
Patrick Williamsdf329092021-09-08 16:05:08 -050047namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053048{
Patrick Williamsdf329092021-09-08 16:05:08 -050049namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +053050{
Patrick Williamsdf329092021-09-08 16:05:08 -050051namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +053052{
53namespace Error
54{
Patrick Williamsdf329092021-09-08 16:05:08 -050055struct EccCheckFailed;
Tom Joseph448e74e2017-07-24 23:08:56 +053056} // namespace Error
Patrick Williamsdf329092021-09-08 16:05:08 -050057} // namespace VPD
58} // namespace ibm
59} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053060} // namespace sdbusplus
Tom Joseph448e74e2017-07-24 23:08:56 +053061namespace sdbusplus
62{
Patrick Williamsdf329092021-09-08 16:05:08 -050063namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053064{
Patrick Williamsdf329092021-09-08 16:05:08 -050065namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +053066{
Patrick Williamsdf329092021-09-08 16:05:08 -050067namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +053068{
69namespace Error
70{
Patrick Williamsdf329092021-09-08 16:05:08 -050071struct InvalidEepromPath;
Tom Joseph448e74e2017-07-24 23:08:56 +053072} // namespace Error
Patrick Williamsdf329092021-09-08 16:05:08 -050073} // namespace VPD
74} // namespace ibm
75} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053076} // namespace sdbusplus
Tom Joseph448e74e2017-07-24 23:08:56 +053077namespace sdbusplus
78{
Patrick Williamsdf329092021-09-08 16:05:08 -050079namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053080{
Patrick Williamsdf329092021-09-08 16:05:08 -050081namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +053082{
Patrick Williamsdf329092021-09-08 16:05:08 -050083namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +053084{
85namespace Error
86{
Patrick Williamsdf329092021-09-08 16:05:08 -050087struct InvalidJson;
Tom Joseph448e74e2017-07-24 23:08:56 +053088} // namespace Error
Patrick Williamsdf329092021-09-08 16:05:08 -050089} // namespace VPD
90} // namespace ibm
91} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053092} // namespace sdbusplus
Tom Joseph448e74e2017-07-24 23:08:56 +053093namespace sdbusplus
94{
Patrick Williamsdf329092021-09-08 16:05:08 -050095namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +053096{
Patrick Williamsdf329092021-09-08 16:05:08 -050097namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +053098{
Patrick Williamsdf329092021-09-08 16:05:08 -050099namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +0530100{
101namespace Error
102{
Patrick Williamsdf329092021-09-08 16:05:08 -0500103struct InvalidVPD;
Tom Joseph448e74e2017-07-24 23:08:56 +0530104} // namespace Error
Patrick Williamsdf329092021-09-08 16:05:08 -0500105} // namespace VPD
106} // namespace ibm
107} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +0530108} // namespace sdbusplus
Patrick Williamsdf329092021-09-08 16:05:08 -0500109namespace sdbusplus
110{
111namespace com
112{
113namespace ibm
114{
115namespace VPD
116{
117namespace Error
118{
119struct KeywordNotFound;
120} // namespace Error
121} // namespace VPD
122} // namespace ibm
123} // namespace com
124} // namespace sdbusplus
125namespace sdbusplus
126{
127namespace com
128{
129namespace ibm
130{
131namespace VPD
132{
133namespace Error
134{
135struct LocationNotFound;
136} // namespace Error
137} // namespace VPD
138} // namespace ibm
139} // namespace com
140} // namespace sdbusplus
141namespace sdbusplus
142{
143namespace com
144{
145namespace ibm
146{
147namespace VPD
148{
149namespace Error
150{
151struct NodeNotFound;
152} // namespace Error
153} // namespace VPD
154} // namespace ibm
155} // namespace com
156} // namespace sdbusplus
157namespace sdbusplus
158{
159namespace com
160{
161namespace ibm
162{
163namespace VPD
164{
165namespace Error
166{
167struct PathNotFound;
168} // namespace Error
169} // namespace VPD
170} // namespace ibm
171} // namespace com
172} // namespace sdbusplus
173namespace sdbusplus
174{
175namespace com
176{
177namespace ibm
178{
179namespace VPD
180{
181namespace Error
182{
183struct RecordNotFound;
184} // namespace Error
185} // namespace VPD
186} // namespace ibm
187} // namespace com
188} // namespace sdbusplus
Tom Joseph448e74e2017-07-24 23:08:56 +0530189namespace sdbusplus
190{
Tom Josephb647d5b2017-10-31 17:25:33 +0530191namespace org
192{
193namespace open_power
194{
195namespace Common
196{
197namespace Callout
198{
199namespace Error
200{
Patrick Venture0b02be92018-08-31 11:55:55 -0700201struct Procedure;
Tom Josephb647d5b2017-10-31 17:25:33 +0530202} // namespace Error
203} // namespace Callout
204} // namespace Common
205} // namespace open_power
206} // namespace org
207} // namespace sdbusplus
Tom Joseph448e74e2017-07-24 23:08:56 +0530208namespace sdbusplus
209{
210namespace org
211{
212namespace open_power
213{
214namespace Host
215{
216namespace Access
217{
218namespace Error
219{
Patrick Venture0b02be92018-08-31 11:55:55 -0700220struct ReadCFAM;
Tom Joseph448e74e2017-07-24 23:08:56 +0530221} // namespace Error
222} // namespace Access
223} // namespace Host
224} // namespace open_power
225} // namespace org
226} // namespace sdbusplus
Patrick Williamsdf329092021-09-08 16:05:08 -0500227namespace sdbusplus
228{
229namespace org
230{
231namespace open_power
232{
233namespace Host
234{
235namespace Access
236{
237namespace Error
238{
239struct WriteCFAM;
240} // namespace Error
241} // namespace Access
242} // namespace Host
243} // namespace open_power
244} // namespace org
245} // namespace sdbusplus
246namespace sdbusplus
247{
248namespace org
249{
250namespace open_power
251{
252namespace Host
253{
254namespace Error
255{
256struct Event;
257} // namespace Error
258} // namespace Host
259} // namespace open_power
260} // namespace org
261} // namespace sdbusplus
Tom Josephb647d5b2017-10-31 17:25:33 +0530262namespace sdbusplus
263{
264namespace org
265{
266namespace open_power
267{
268namespace Host
269{
270namespace Error
271{
Patrick Venture0b02be92018-08-31 11:55:55 -0700272struct MaintenanceProcedure;
Tom Josephb647d5b2017-10-31 17:25:33 +0530273} // namespace Error
274} // namespace Host
275} // namespace open_power
276} // namespace org
277} // namespace sdbusplus
Patrick Williamsdf329092021-09-08 16:05:08 -0500278namespace sdbusplus
279{
280namespace org
281{
282namespace open_power
283{
284namespace Proc
285{
286namespace FSI
287{
288namespace Error
289{
290struct MasterDetectionFailure;
291} // namespace Error
292} // namespace FSI
293} // namespace Proc
294} // namespace open_power
295} // namespace org
296} // namespace sdbusplus
297namespace sdbusplus
298{
299namespace org
300{
301namespace open_power
302{
303namespace Proc
304{
305namespace FSI
306{
307namespace Error
308{
309struct SlaveDetectionFailure;
310} // namespace Error
311} // namespace FSI
312} // namespace Proc
313} // namespace open_power
314} // namespace org
315} // namespace sdbusplus
316namespace sdbusplus
317{
318namespace xyz
319{
320namespace openbmc_project
321{
322namespace BIOSConfig
323{
324namespace Common
325{
326namespace Error
327{
328struct AttributeNotFound;
329} // namespace Error
330} // namespace Common
331} // namespace BIOSConfig
332} // namespace openbmc_project
333} // namespace xyz
334} // namespace sdbusplus
335namespace sdbusplus
336{
337namespace xyz
338{
339namespace openbmc_project
340{
341namespace BIOSConfig
342{
343namespace Common
344{
345namespace Error
346{
347struct AttributeReadOnly;
348} // namespace Error
349} // namespace Common
350} // namespace BIOSConfig
351} // namespace openbmc_project
352} // namespace xyz
353} // namespace sdbusplus
354namespace sdbusplus
355{
356namespace xyz
357{
358namespace openbmc_project
359{
360namespace BIOSConfig
361{
362namespace Common
363{
364namespace Error
365{
366struct InvalidCurrentPassword;
367} // namespace Error
368} // namespace Common
369} // namespace BIOSConfig
370} // namespace openbmc_project
371} // namespace xyz
372} // namespace sdbusplus
373namespace sdbusplus
374{
375namespace xyz
376{
377namespace openbmc_project
378{
379namespace BIOSConfig
380{
381namespace Common
382{
383namespace Error
384{
385struct PasswordNotSettable;
386} // namespace Error
387} // namespace Common
388} // namespace BIOSConfig
389} // namespace openbmc_project
390} // namespace xyz
391} // namespace sdbusplus
392namespace sdbusplus
393{
394namespace xyz
395{
396namespace openbmc_project
397{
398namespace Certs
399{
400namespace Error
401{
402struct InvalidCertificate;
403} // namespace Error
404} // namespace Certs
405} // namespace openbmc_project
406} // namespace xyz
407} // namespace sdbusplus
408namespace sdbusplus
409{
410namespace xyz
411{
412namespace openbmc_project
413{
414namespace Chassis
415{
416namespace Common
417{
418namespace Error
419{
420struct IOError;
421} // namespace Error
422} // namespace Common
423} // namespace Chassis
424} // namespace openbmc_project
425} // namespace xyz
426} // namespace sdbusplus
427namespace sdbusplus
428{
429namespace xyz
430{
431namespace openbmc_project
432{
433namespace Chassis
434{
435namespace Common
436{
437namespace Error
438{
439struct UnsupportedCommand;
440} // namespace Error
441} // namespace Common
442} // namespace Chassis
443} // namespace openbmc_project
444} // namespace xyz
445} // namespace sdbusplus
446namespace sdbusplus
447{
448namespace xyz
449{
450namespace openbmc_project
451{
452namespace Common
453{
454namespace Callout
455{
456namespace Error
457{
458struct Device;
459} // namespace Error
460} // namespace Callout
461} // namespace Common
462} // namespace openbmc_project
463} // namespace xyz
464} // namespace sdbusplus
465namespace sdbusplus
466{
467namespace xyz
468{
469namespace openbmc_project
470{
471namespace Common
472{
473namespace Callout
474{
475namespace Error
476{
477struct GPIO;
478} // namespace Error
479} // namespace Callout
480} // namespace Common
481} // namespace openbmc_project
482} // namespace xyz
483} // namespace sdbusplus
484namespace sdbusplus
485{
486namespace xyz
487{
488namespace openbmc_project
489{
490namespace Common
491{
492namespace Callout
493{
494namespace Error
495{
496struct IIC;
497} // namespace Error
498} // namespace Callout
499} // namespace Common
500} // namespace openbmc_project
501} // namespace xyz
502} // namespace sdbusplus
503namespace sdbusplus
504{
505namespace xyz
506{
507namespace openbmc_project
508{
509namespace Common
510{
511namespace Callout
512{
513namespace Error
514{
515struct IPMISensor;
516} // namespace Error
517} // namespace Callout
518} // namespace Common
519} // namespace openbmc_project
520} // namespace xyz
521} // namespace sdbusplus
522namespace sdbusplus
523{
524namespace xyz
525{
526namespace openbmc_project
527{
528namespace Common
529{
530namespace Callout
531{
532namespace Error
533{
534struct Inventory;
535} // namespace Error
536} // namespace Callout
537} // namespace Common
538} // namespace openbmc_project
539} // namespace xyz
540} // namespace sdbusplus
541namespace sdbusplus
542{
543namespace xyz
544{
545namespace openbmc_project
546{
547namespace Common
548{
549namespace Device
550{
551namespace Error
552{
553struct ReadFailure;
554} // namespace Error
555} // namespace Device
556} // namespace Common
557} // namespace openbmc_project
558} // namespace xyz
559} // namespace sdbusplus
560namespace sdbusplus
561{
562namespace xyz
563{
564namespace openbmc_project
565{
566namespace Common
567{
568namespace Device
569{
570namespace Error
571{
572struct WriteFailure;
573} // namespace Error
574} // namespace Device
575} // namespace Common
576} // namespace openbmc_project
577} // namespace xyz
578} // namespace sdbusplus
579namespace sdbusplus
580{
581namespace xyz
582{
583namespace openbmc_project
584{
585namespace Common
586{
587namespace Error
588{
589struct InsufficientPermission;
590} // namespace Error
591} // namespace Common
592} // namespace openbmc_project
593} // namespace xyz
594} // namespace sdbusplus
595namespace sdbusplus
596{
597namespace xyz
598{
599namespace openbmc_project
600{
601namespace Common
602{
603namespace Error
604{
605struct InternalFailure;
606} // namespace Error
607} // namespace Common
608} // namespace openbmc_project
609} // namespace xyz
610} // namespace sdbusplus
611namespace sdbusplus
612{
613namespace xyz
614{
615namespace openbmc_project
616{
617namespace Common
618{
619namespace Error
620{
621struct InvalidArgument;
622} // namespace Error
623} // namespace Common
624} // namespace openbmc_project
625} // namespace xyz
626} // namespace sdbusplus
627namespace sdbusplus
628{
629namespace xyz
630{
631namespace openbmc_project
632{
633namespace Common
634{
635namespace Error
636{
637struct NoCACertificate;
638} // namespace Error
639} // namespace Common
640} // namespace openbmc_project
641} // namespace xyz
642} // namespace sdbusplus
643namespace sdbusplus
644{
645namespace xyz
646{
647namespace openbmc_project
648{
649namespace Common
650{
651namespace Error
652{
653struct NotAllowed;
654} // namespace Error
655} // namespace Common
656} // namespace openbmc_project
657} // namespace xyz
658} // namespace sdbusplus
659namespace sdbusplus
660{
661namespace xyz
662{
663namespace openbmc_project
664{
665namespace Common
666{
667namespace Error
668{
669struct ResourceNotFound;
670} // namespace Error
671} // namespace Common
672} // namespace openbmc_project
673} // namespace xyz
674} // namespace sdbusplus
675namespace sdbusplus
676{
677namespace xyz
678{
679namespace openbmc_project
680{
681namespace Common
682{
683namespace Error
684{
685struct Timeout;
686} // namespace Error
687} // namespace Common
688} // namespace openbmc_project
689} // namespace xyz
690} // namespace sdbusplus
691namespace sdbusplus
692{
693namespace xyz
694{
695namespace openbmc_project
696{
697namespace Common
698{
699namespace Error
700{
701struct TooManyResources;
702} // namespace Error
703} // namespace Common
704} // namespace openbmc_project
705} // namespace xyz
706} // namespace sdbusplus
707namespace sdbusplus
708{
709namespace xyz
710{
711namespace openbmc_project
712{
713namespace Common
714{
715namespace Error
716{
717struct Unavailable;
718} // namespace Error
719} // namespace Common
720} // namespace openbmc_project
721} // namespace xyz
722} // namespace sdbusplus
723namespace sdbusplus
724{
725namespace xyz
726{
727namespace openbmc_project
728{
729namespace Common
730{
731namespace Error
732{
733struct UnsupportedRequest;
734} // namespace Error
735} // namespace Common
736} // namespace openbmc_project
737} // namespace xyz
738} // namespace sdbusplus
739namespace sdbusplus
740{
741namespace xyz
742{
743namespace openbmc_project
744{
745namespace Common
746{
747namespace File
748{
749namespace Error
750{
751struct Open;
752} // namespace Error
753} // namespace File
754} // namespace Common
755} // namespace openbmc_project
756} // namespace xyz
757} // namespace sdbusplus
758namespace sdbusplus
759{
760namespace xyz
761{
762namespace openbmc_project
763{
764namespace Common
765{
766namespace File
767{
768namespace Error
769{
770struct Read;
771} // namespace Error
772} // namespace File
773} // namespace Common
774} // namespace openbmc_project
775} // namespace xyz
776} // namespace sdbusplus
777namespace sdbusplus
778{
779namespace xyz
780{
781namespace openbmc_project
782{
783namespace Common
784{
785namespace File
786{
787namespace Error
788{
789struct Seek;
790} // namespace Error
791} // namespace File
792} // namespace Common
793} // namespace openbmc_project
794} // namespace xyz
795} // namespace sdbusplus
796namespace sdbusplus
797{
798namespace xyz
799{
800namespace openbmc_project
801{
802namespace Common
803{
804namespace File
805{
806namespace Error
807{
808struct Write;
809} // namespace Error
810} // namespace File
811} // namespace Common
812} // namespace openbmc_project
813} // namespace xyz
814} // namespace sdbusplus
815namespace sdbusplus
816{
817namespace xyz
818{
819namespace openbmc_project
820{
821namespace Control
822{
823namespace Device
824{
825namespace Error
826{
827struct WriteFailure;
828} // namespace Error
829} // namespace Device
830} // namespace Control
831} // namespace openbmc_project
832} // namespace xyz
833} // namespace sdbusplus
834namespace sdbusplus
835{
836namespace xyz
837{
838namespace openbmc_project
839{
840namespace Control
841{
842namespace Host
843{
844namespace Error
845{
846struct CommandNotSupported;
847} // namespace Error
848} // namespace Host
849} // namespace Control
850} // namespace openbmc_project
851} // namespace xyz
852} // namespace sdbusplus
853namespace sdbusplus
854{
855namespace xyz
856{
857namespace openbmc_project
858{
859namespace Dump
860{
861namespace Create
862{
863namespace Error
864{
865struct Disabled;
866} // namespace Error
867} // namespace Create
868} // namespace Dump
869} // namespace openbmc_project
870} // namespace xyz
871} // namespace sdbusplus
872namespace sdbusplus
873{
874namespace xyz
875{
876namespace openbmc_project
877{
878namespace Dump
879{
880namespace Create
881{
882namespace Error
883{
884struct QuotaExceeded;
885} // namespace Error
886} // namespace Create
887} // namespace Dump
888} // namespace openbmc_project
889} // namespace xyz
890} // namespace sdbusplus
891namespace sdbusplus
892{
893namespace xyz
894{
895namespace openbmc_project
896{
897namespace HardwareIsolation
898{
899namespace Error
900{
901struct IsolatedAlready;
902} // namespace Error
903} // namespace HardwareIsolation
904} // namespace openbmc_project
905} // namespace xyz
906} // namespace sdbusplus
907namespace sdbusplus
908{
909namespace xyz
910{
911namespace openbmc_project
912{
913namespace Inventory
914{
915namespace Error
916{
917struct Nonfunctional;
918} // namespace Error
919} // namespace Inventory
920} // namespace openbmc_project
921} // namespace xyz
922} // namespace sdbusplus
923namespace sdbusplus
924{
925namespace xyz
926{
927namespace openbmc_project
928{
929namespace Inventory
930{
931namespace Error
932{
933struct NotPresent;
934} // namespace Error
935} // namespace Inventory
936} // namespace openbmc_project
937} // namespace xyz
938} // namespace sdbusplus
939namespace sdbusplus
940{
941namespace xyz
942{
943namespace openbmc_project
944{
945namespace Logging
946{
947namespace SEL
948{
949namespace Error
950{
951struct Created;
952} // namespace Error
953} // namespace SEL
954} // namespace Logging
955} // namespace openbmc_project
956} // namespace xyz
957} // namespace sdbusplus
958namespace sdbusplus
959{
960namespace xyz
961{
962namespace openbmc_project
963{
964namespace Memory
965{
966namespace MemoryECC
967{
968namespace Error
969{
970struct ceCount;
971} // namespace Error
972} // namespace MemoryECC
973} // namespace Memory
974} // namespace openbmc_project
975} // namespace xyz
976} // namespace sdbusplus
977namespace sdbusplus
978{
979namespace xyz
980{
981namespace openbmc_project
982{
983namespace Memory
984{
985namespace MemoryECC
986{
987namespace Error
988{
989struct isLoggingLimitReached;
990} // namespace Error
991} // namespace MemoryECC
992} // namespace Memory
993} // namespace openbmc_project
994} // namespace xyz
995} // namespace sdbusplus
996namespace sdbusplus
997{
998namespace xyz
999{
1000namespace openbmc_project
1001{
1002namespace Memory
1003{
1004namespace MemoryECC
1005{
1006namespace Error
1007{
1008struct ueCount;
1009} // namespace Error
1010} // namespace MemoryECC
1011} // namespace Memory
1012} // namespace openbmc_project
1013} // namespace xyz
1014} // namespace sdbusplus
1015namespace sdbusplus
1016{
1017namespace xyz
1018{
1019namespace openbmc_project
1020{
1021namespace Nvme
1022{
1023namespace Status
1024{
1025namespace Error
1026{
1027struct BackupDeviceFault;
1028} // namespace Error
1029} // namespace Status
1030} // namespace Nvme
1031} // namespace openbmc_project
1032} // namespace xyz
1033} // namespace sdbusplus
1034namespace sdbusplus
1035{
1036namespace xyz
1037{
1038namespace openbmc_project
1039{
1040namespace Nvme
1041{
1042namespace Status
1043{
1044namespace Error
1045{
1046struct CapacityFault;
1047} // namespace Error
1048} // namespace Status
1049} // namespace Nvme
1050} // namespace openbmc_project
1051} // namespace xyz
1052} // namespace sdbusplus
1053namespace sdbusplus
1054{
1055namespace xyz
1056{
1057namespace openbmc_project
1058{
1059namespace Nvme
1060{
1061namespace Status
1062{
1063namespace Error
1064{
1065struct DegradesFault;
1066} // namespace Error
1067} // namespace Status
1068} // namespace Nvme
1069} // namespace openbmc_project
1070} // namespace xyz
1071} // namespace sdbusplus
1072namespace sdbusplus
1073{
1074namespace xyz
1075{
1076namespace openbmc_project
1077{
1078namespace Nvme
1079{
1080namespace Status
1081{
1082namespace Error
1083{
1084struct MediaFault;
1085} // namespace Error
1086} // namespace Status
1087} // namespace Nvme
1088} // namespace openbmc_project
1089} // namespace xyz
1090} // namespace sdbusplus
1091namespace sdbusplus
1092{
1093namespace xyz
1094{
1095namespace openbmc_project
1096{
1097namespace Nvme
1098{
1099namespace Status
1100{
1101namespace Error
1102{
1103struct TemperatureFault;
1104} // namespace Error
1105} // namespace Status
1106} // namespace Nvme
1107} // namespace openbmc_project
1108} // namespace xyz
1109} // namespace sdbusplus
1110namespace sdbusplus
1111{
1112namespace xyz
1113{
1114namespace openbmc_project
1115{
1116namespace ScheduledTime
1117{
1118namespace Error
1119{
1120struct InvalidTime;
1121} // namespace Error
1122} // namespace ScheduledTime
1123} // namespace openbmc_project
1124} // namespace xyz
1125} // namespace sdbusplus
1126namespace sdbusplus
1127{
1128namespace xyz
1129{
1130namespace openbmc_project
1131{
1132namespace Sensor
1133{
1134namespace Device
1135{
1136namespace Error
1137{
1138struct ReadFailure;
1139} // namespace Error
1140} // namespace Device
1141} // namespace Sensor
1142} // namespace openbmc_project
1143} // namespace xyz
1144} // namespace sdbusplus
1145namespace sdbusplus
1146{
1147namespace xyz
1148{
1149namespace openbmc_project
1150{
1151namespace Sensor
1152{
1153namespace Threshold
1154{
1155namespace Error
1156{
1157struct CriticalHigh;
1158} // namespace Error
1159} // namespace Threshold
1160} // namespace Sensor
1161} // namespace openbmc_project
1162} // namespace xyz
1163} // namespace sdbusplus
1164namespace sdbusplus
1165{
1166namespace xyz
1167{
1168namespace openbmc_project
1169{
1170namespace Sensor
1171{
1172namespace Threshold
1173{
1174namespace Error
1175{
1176struct CriticalLow;
1177} // namespace Error
1178} // namespace Threshold
1179} // namespace Sensor
1180} // namespace openbmc_project
1181} // namespace xyz
1182} // namespace sdbusplus
1183namespace sdbusplus
1184{
1185namespace xyz
1186{
1187namespace openbmc_project
1188{
1189namespace Smbios
1190{
1191namespace MDR_V2
1192{
1193namespace Error
1194{
1195struct InvalidId;
1196} // namespace Error
1197} // namespace MDR_V2
1198} // namespace Smbios
1199} // namespace openbmc_project
1200} // namespace xyz
1201} // namespace sdbusplus
1202namespace sdbusplus
1203{
1204namespace xyz
1205{
1206namespace openbmc_project
1207{
1208namespace Smbios
1209{
1210namespace MDR_V2
1211{
1212namespace Error
1213{
1214struct InvalidParameter;
1215} // namespace Error
1216} // namespace MDR_V2
1217} // namespace Smbios
1218} // namespace openbmc_project
1219} // namespace xyz
1220} // namespace sdbusplus
1221namespace sdbusplus
1222{
1223namespace xyz
1224{
1225namespace openbmc_project
1226{
1227namespace Smbios
1228{
1229namespace MDR_V2
1230{
1231namespace Error
1232{
1233struct UpdateInProgress;
1234} // namespace Error
1235} // namespace MDR_V2
1236} // namespace Smbios
1237} // namespace openbmc_project
1238} // namespace xyz
1239} // namespace sdbusplus
1240namespace sdbusplus
1241{
1242namespace xyz
1243{
1244namespace openbmc_project
1245{
1246namespace Software
1247{
1248namespace Version
1249{
1250namespace Error
1251{
1252struct AlreadyExists;
1253} // namespace Error
1254} // namespace Version
1255} // namespace Software
1256} // namespace openbmc_project
1257} // namespace xyz
1258} // namespace sdbusplus
1259namespace sdbusplus
1260{
1261namespace xyz
1262{
1263namespace openbmc_project
1264{
1265namespace Software
1266{
1267namespace Version
1268{
1269namespace Error
1270{
1271struct Incompatible;
1272} // namespace Error
1273} // namespace Version
1274} // namespace Software
1275} // namespace openbmc_project
1276} // namespace xyz
1277} // namespace sdbusplus
1278namespace sdbusplus
1279{
1280namespace xyz
1281{
1282namespace openbmc_project
1283{
1284namespace State
1285{
1286namespace BMC
1287{
1288namespace Error
1289{
1290struct MultiUserTargetFailure;
1291} // namespace Error
1292} // namespace BMC
1293} // namespace State
1294} // namespace openbmc_project
1295} // namespace xyz
1296} // namespace sdbusplus
1297namespace sdbusplus
1298{
1299namespace xyz
1300{
1301namespace openbmc_project
1302{
1303namespace State
1304{
1305namespace Chassis
1306{
1307namespace Error
1308{
1309struct PowerOffFailure;
1310} // namespace Error
1311} // namespace Chassis
1312} // namespace State
1313} // namespace openbmc_project
1314} // namespace xyz
1315} // namespace sdbusplus
1316namespace sdbusplus
1317{
1318namespace xyz
1319{
1320namespace openbmc_project
1321{
1322namespace State
1323{
1324namespace Chassis
1325{
1326namespace Error
1327{
1328struct PowerOnFailure;
1329} // namespace Error
1330} // namespace Chassis
1331} // namespace State
1332} // namespace openbmc_project
1333} // namespace xyz
1334} // namespace sdbusplus
1335namespace sdbusplus
1336{
1337namespace xyz
1338{
1339namespace openbmc_project
1340{
1341namespace State
1342{
1343namespace Host
1344{
1345namespace Error
1346{
1347struct HostMinStartFailure;
1348} // namespace Error
1349} // namespace Host
1350} // namespace State
1351} // namespace openbmc_project
1352} // namespace xyz
1353} // namespace sdbusplus
1354namespace sdbusplus
1355{
1356namespace xyz
1357{
1358namespace openbmc_project
1359{
1360namespace State
1361{
1362namespace Host
1363{
1364namespace Error
1365{
1366struct HostRebootFailure;
1367} // namespace Error
1368} // namespace Host
1369} // namespace State
1370} // namespace openbmc_project
1371} // namespace xyz
1372} // namespace sdbusplus
1373namespace sdbusplus
1374{
1375namespace xyz
1376{
1377namespace openbmc_project
1378{
1379namespace State
1380{
1381namespace Host
1382{
1383namespace Error
1384{
1385struct HostShutdownFailure;
1386} // namespace Error
1387} // namespace Host
1388} // namespace State
1389} // namespace openbmc_project
1390} // namespace xyz
1391} // namespace sdbusplus
1392namespace sdbusplus
1393{
1394namespace xyz
1395{
1396namespace openbmc_project
1397{
1398namespace State
1399{
1400namespace Host
1401{
1402namespace Error
1403{
1404struct HostStartFailure;
1405} // namespace Error
1406} // namespace Host
1407} // namespace State
1408} // namespace openbmc_project
1409} // namespace xyz
1410} // namespace sdbusplus
1411namespace sdbusplus
1412{
1413namespace xyz
1414{
1415namespace openbmc_project
1416{
1417namespace State
1418{
1419namespace Host
1420{
1421namespace Error
1422{
1423struct HostStopFailure;
1424} // namespace Error
1425} // namespace Host
1426} // namespace State
1427} // namespace openbmc_project
1428} // namespace xyz
1429} // namespace sdbusplus
1430namespace sdbusplus
1431{
1432namespace xyz
1433{
1434namespace openbmc_project
1435{
1436namespace State
1437{
1438namespace Host
1439{
1440namespace Error
1441{
1442struct SoftOffTimeout;
1443} // namespace Error
1444} // namespace Host
1445} // namespace State
1446} // namespace openbmc_project
1447} // namespace xyz
1448} // namespace sdbusplus
1449namespace sdbusplus
1450{
1451namespace xyz
1452{
1453namespace openbmc_project
1454{
1455namespace State
1456{
1457namespace Shutdown
1458{
1459namespace Inventory
1460{
1461namespace Error
1462{
1463struct Fan;
1464} // namespace Error
1465} // namespace Inventory
1466} // namespace Shutdown
1467} // namespace State
1468} // namespace openbmc_project
1469} // namespace xyz
1470} // namespace sdbusplus
1471namespace sdbusplus
1472{
1473namespace xyz
1474{
1475namespace openbmc_project
1476{
1477namespace State
1478{
1479namespace Shutdown
1480{
1481namespace Power
1482{
1483namespace Error
1484{
1485struct Blackout;
1486} // namespace Error
1487} // namespace Power
1488} // namespace Shutdown
1489} // namespace State
1490} // namespace openbmc_project
1491} // namespace xyz
1492} // namespace sdbusplus
1493namespace sdbusplus
1494{
1495namespace xyz
1496{
1497namespace openbmc_project
1498{
1499namespace State
1500{
1501namespace Shutdown
1502{
1503namespace Power
1504{
1505namespace Error
1506{
1507struct Fault;
1508} // namespace Error
1509} // namespace Power
1510} // namespace Shutdown
1511} // namespace State
1512} // namespace openbmc_project
1513} // namespace xyz
1514} // namespace sdbusplus
1515namespace sdbusplus
1516{
1517namespace xyz
1518{
1519namespace openbmc_project
1520{
1521namespace State
1522{
1523namespace Shutdown
1524{
1525namespace Power
1526{
1527namespace Error
1528{
1529struct Regulator;
1530} // namespace Error
1531} // namespace Power
1532} // namespace Shutdown
1533} // namespace State
1534} // namespace openbmc_project
1535} // namespace xyz
1536} // namespace sdbusplus
1537namespace sdbusplus
1538{
1539namespace xyz
1540{
1541namespace openbmc_project
1542{
1543namespace State
1544{
1545namespace Shutdown
1546{
1547namespace ThermalEvent
1548{
1549namespace Error
1550{
1551struct Ambient;
1552} // namespace Error
1553} // namespace ThermalEvent
1554} // namespace Shutdown
1555} // namespace State
1556} // namespace openbmc_project
1557} // namespace xyz
1558} // namespace sdbusplus
1559namespace sdbusplus
1560{
1561namespace xyz
1562{
1563namespace openbmc_project
1564{
1565namespace State
1566{
1567namespace Shutdown
1568{
1569namespace ThermalEvent
1570{
1571namespace Error
1572{
1573struct GPU;
1574} // namespace Error
1575} // namespace ThermalEvent
1576} // namespace Shutdown
1577} // namespace State
1578} // namespace openbmc_project
1579} // namespace xyz
1580} // namespace sdbusplus
1581namespace sdbusplus
1582{
1583namespace xyz
1584{
1585namespace openbmc_project
1586{
1587namespace State
1588{
1589namespace Shutdown
1590{
1591namespace ThermalEvent
1592{
1593namespace Error
1594{
1595struct Processor;
1596} // namespace Error
1597} // namespace ThermalEvent
1598} // namespace Shutdown
1599} // namespace State
1600} // namespace openbmc_project
1601} // namespace xyz
1602} // namespace sdbusplus
1603namespace sdbusplus
1604{
1605namespace xyz
1606{
1607namespace openbmc_project
1608{
1609namespace State
1610{
1611namespace SystemdTarget
1612{
1613namespace Error
1614{
1615struct Failure;
1616} // namespace Error
1617} // namespace SystemdTarget
1618} // namespace State
1619} // namespace openbmc_project
1620} // namespace xyz
1621} // namespace sdbusplus
1622namespace sdbusplus
1623{
1624namespace xyz
1625{
1626namespace openbmc_project
1627{
1628namespace Time
1629{
1630namespace Error
1631{
1632struct Failed;
1633} // namespace Error
1634} // namespace Time
1635} // namespace openbmc_project
1636} // namespace xyz
1637} // namespace sdbusplus
1638namespace sdbusplus
1639{
1640namespace xyz
1641{
1642namespace openbmc_project
1643{
1644namespace Time
1645{
1646namespace Error
1647{
1648struct NotAllowed;
1649} // namespace Error
1650} // namespace Time
1651} // namespace openbmc_project
1652} // namespace xyz
1653} // namespace sdbusplus
1654namespace sdbusplus
1655{
1656namespace xyz
1657{
1658namespace openbmc_project
1659{
1660namespace User
1661{
1662namespace Common
1663{
1664namespace Error
1665{
1666struct NoResource;
1667} // namespace Error
1668} // namespace Common
1669} // namespace User
1670} // namespace openbmc_project
1671} // namespace xyz
1672} // namespace sdbusplus
1673namespace sdbusplus
1674{
1675namespace xyz
1676{
1677namespace openbmc_project
1678{
1679namespace User
1680{
1681namespace Common
1682{
1683namespace Error
1684{
1685struct PrivilegeMappingExists;
1686} // namespace Error
1687} // namespace Common
1688} // namespace User
1689} // namespace openbmc_project
1690} // namespace xyz
1691} // namespace sdbusplus
1692namespace sdbusplus
1693{
1694namespace xyz
1695{
1696namespace openbmc_project
1697{
1698namespace User
1699{
1700namespace Common
1701{
1702namespace Error
1703{
1704struct UserNameDoesNotExist;
1705} // namespace Error
1706} // namespace Common
1707} // namespace User
1708} // namespace openbmc_project
1709} // namespace xyz
1710} // namespace sdbusplus
1711namespace sdbusplus
1712{
1713namespace xyz
1714{
1715namespace openbmc_project
1716{
1717namespace User
1718{
1719namespace Common
1720{
1721namespace Error
1722{
1723struct UserNameExists;
1724} // namespace Error
1725} // namespace Common
1726} // namespace User
1727} // namespace openbmc_project
1728} // namespace xyz
1729} // namespace sdbusplus
1730namespace sdbusplus
1731{
1732namespace xyz
1733{
1734namespace openbmc_project
1735{
1736namespace User
1737{
1738namespace Common
1739{
1740namespace Error
1741{
1742struct UserNameGroupFail;
1743} // namespace Error
1744} // namespace Common
1745} // namespace User
1746} // namespace openbmc_project
1747} // namespace xyz
1748} // namespace sdbusplus
1749namespace sdbusplus
1750{
1751namespace xyz
1752{
1753namespace openbmc_project
1754{
1755namespace User
1756{
1757namespace Common
1758{
1759namespace Error
1760{
1761struct UserNamePrivFail;
1762} // namespace Error
1763} // namespace Common
1764} // namespace User
1765} // namespace openbmc_project
1766} // namespace xyz
1767} // namespace sdbusplus
Tom Joseph448e74e2017-07-24 23:08:56 +05301768
1769namespace phosphor
1770{
1771
1772namespace logging
1773{
1774
Patrick Williamsdf329092021-09-08 16:05:08 -05001775namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +05301776{
Patrick Williamsdf329092021-09-08 16:05:08 -05001777namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +05301778{
Patrick Williamsdf329092021-09-08 16:05:08 -05001779namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +05301780{
Patrick Williamsdf329092021-09-08 16:05:08 -05001781namespace _LocationNotFound
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05001782{} // namespace _LocationNotFound
Tom Joseph448e74e2017-07-24 23:08:56 +05301783
Patrick Williamsdf329092021-09-08 16:05:08 -05001784struct LocationNotFound
Tom Joseph448e74e2017-07-24 23:08:56 +05301785{
1786 static constexpr auto L = level::ERR;
Patrick Williamsdf329092021-09-08 16:05:08 -05001787 using metadata_types = std::tuple<>;
Tom Joseph448e74e2017-07-24 23:08:56 +05301788};
1789
Patrick Williamsdf329092021-09-08 16:05:08 -05001790} // namespace VPD
1791} // namespace ibm
1792} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +05301793
Tom Joseph448e74e2017-07-24 23:08:56 +05301794namespace details
1795{
1796
1797template <>
Patrick Williamsdf329092021-09-08 16:05:08 -05001798struct map_exception_type<sdbusplus::com::ibm::VPD::Error::LocationNotFound>
Tom Joseph448e74e2017-07-24 23:08:56 +05301799{
Patrick Williamsdf329092021-09-08 16:05:08 -05001800 using type = com::ibm::VPD::LocationNotFound;
Tom Joseph448e74e2017-07-24 23:08:56 +05301801};
1802
Patrick Venture0b02be92018-08-31 11:55:55 -07001803} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05301804
Patrick Williamsdf329092021-09-08 16:05:08 -05001805namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +05301806{
Patrick Williamsdf329092021-09-08 16:05:08 -05001807namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +05301808{
Patrick Williamsdf329092021-09-08 16:05:08 -05001809namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +05301810{
Patrick Williamsdf329092021-09-08 16:05:08 -05001811namespace _NodeNotFound
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05001812{} // namespace _NodeNotFound
Tom Joseph448e74e2017-07-24 23:08:56 +05301813
Patrick Williamsdf329092021-09-08 16:05:08 -05001814struct NodeNotFound
Tom Joseph448e74e2017-07-24 23:08:56 +05301815{
1816 static constexpr auto L = level::ERR;
Patrick Williamsdf329092021-09-08 16:05:08 -05001817 using metadata_types = std::tuple<>;
Tom Joseph448e74e2017-07-24 23:08:56 +05301818};
1819
Patrick Williamsdf329092021-09-08 16:05:08 -05001820} // namespace VPD
1821} // namespace ibm
1822} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +05301823
Tom Joseph448e74e2017-07-24 23:08:56 +05301824namespace details
1825{
1826
1827template <>
Patrick Williamsdf329092021-09-08 16:05:08 -05001828struct map_exception_type<sdbusplus::com::ibm::VPD::Error::NodeNotFound>
Tom Joseph448e74e2017-07-24 23:08:56 +05301829{
Patrick Williamsdf329092021-09-08 16:05:08 -05001830 using type = com::ibm::VPD::NodeNotFound;
Tom Joseph448e74e2017-07-24 23:08:56 +05301831};
1832
Patrick Venture0b02be92018-08-31 11:55:55 -07001833} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05301834
Patrick Williamsdf329092021-09-08 16:05:08 -05001835namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +05301836{
Patrick Williamsdf329092021-09-08 16:05:08 -05001837namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +05301838{
Patrick Williamsdf329092021-09-08 16:05:08 -05001839namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +05301840{
Patrick Williamsdf329092021-09-08 16:05:08 -05001841namespace _PathNotFound
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05001842{} // namespace _PathNotFound
Tom Joseph448e74e2017-07-24 23:08:56 +05301843
Patrick Williamsdf329092021-09-08 16:05:08 -05001844struct PathNotFound
Tom Joseph448e74e2017-07-24 23:08:56 +05301845{
1846 static constexpr auto L = level::ERR;
Patrick Williamsdf329092021-09-08 16:05:08 -05001847 using metadata_types = std::tuple<>;
Tom Joseph448e74e2017-07-24 23:08:56 +05301848};
1849
Patrick Williamsdf329092021-09-08 16:05:08 -05001850} // namespace VPD
1851} // namespace ibm
1852} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +05301853
Tom Joseph448e74e2017-07-24 23:08:56 +05301854namespace details
1855{
1856
1857template <>
Patrick Williamsdf329092021-09-08 16:05:08 -05001858struct map_exception_type<sdbusplus::com::ibm::VPD::Error::PathNotFound>
Tom Joseph448e74e2017-07-24 23:08:56 +05301859{
Patrick Williamsdf329092021-09-08 16:05:08 -05001860 using type = com::ibm::VPD::PathNotFound;
Tom Joseph448e74e2017-07-24 23:08:56 +05301861};
1862
Patrick Venture0b02be92018-08-31 11:55:55 -07001863} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05301864
Patrick Williamsdf329092021-09-08 16:05:08 -05001865namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +05301866{
Patrick Williamsdf329092021-09-08 16:05:08 -05001867namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +05301868{
Patrick Williamsdf329092021-09-08 16:05:08 -05001869namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +05301870{
Patrick Williamsdf329092021-09-08 16:05:08 -05001871namespace _RecordNotFound
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05001872{} // namespace _RecordNotFound
Tom Joseph448e74e2017-07-24 23:08:56 +05301873
Patrick Williamsdf329092021-09-08 16:05:08 -05001874struct RecordNotFound
Tom Joseph448e74e2017-07-24 23:08:56 +05301875{
1876 static constexpr auto L = level::ERR;
Patrick Williamsdf329092021-09-08 16:05:08 -05001877 using metadata_types = std::tuple<>;
Tom Joseph448e74e2017-07-24 23:08:56 +05301878};
1879
Patrick Williamsdf329092021-09-08 16:05:08 -05001880} // namespace VPD
1881} // namespace ibm
1882} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +05301883
Tom Joseph448e74e2017-07-24 23:08:56 +05301884namespace details
1885{
1886
1887template <>
Patrick Williamsdf329092021-09-08 16:05:08 -05001888struct map_exception_type<sdbusplus::com::ibm::VPD::Error::RecordNotFound>
Tom Joseph448e74e2017-07-24 23:08:56 +05301889{
Patrick Williamsdf329092021-09-08 16:05:08 -05001890 using type = com::ibm::VPD::RecordNotFound;
Tom Joseph448e74e2017-07-24 23:08:56 +05301891};
1892
Patrick Venture0b02be92018-08-31 11:55:55 -07001893} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05301894
Patrick Williamsdf329092021-09-08 16:05:08 -05001895namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +05301896{
Patrick Williamsdf329092021-09-08 16:05:08 -05001897namespace ibm
Tom Joseph448e74e2017-07-24 23:08:56 +05301898{
Patrick Williamsdf329092021-09-08 16:05:08 -05001899namespace VPD
Tom Joseph448e74e2017-07-24 23:08:56 +05301900{
Patrick Williamsdf329092021-09-08 16:05:08 -05001901namespace _KeywordNotFound
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05001902{} // namespace _KeywordNotFound
Tom Joseph448e74e2017-07-24 23:08:56 +05301903
Patrick Williamsdf329092021-09-08 16:05:08 -05001904struct KeywordNotFound
Tom Joseph448e74e2017-07-24 23:08:56 +05301905{
1906 static constexpr auto L = level::ERR;
Patrick Williamsdf329092021-09-08 16:05:08 -05001907 using metadata_types = std::tuple<>;
Tom Joseph448e74e2017-07-24 23:08:56 +05301908};
1909
Patrick Williamsdf329092021-09-08 16:05:08 -05001910} // namespace VPD
1911} // namespace ibm
1912} // namespace com
Tom Joseph448e74e2017-07-24 23:08:56 +05301913
Tom Joseph448e74e2017-07-24 23:08:56 +05301914namespace details
1915{
1916
1917template <>
Patrick Williamsdf329092021-09-08 16:05:08 -05001918struct map_exception_type<sdbusplus::com::ibm::VPD::Error::KeywordNotFound>
Tom Joseph448e74e2017-07-24 23:08:56 +05301919{
Patrick Williamsdf329092021-09-08 16:05:08 -05001920 using type = com::ibm::VPD::KeywordNotFound;
1921};
1922
1923} // namespace details
1924
1925namespace com
1926{
1927namespace ibm
1928{
1929namespace VPD
1930{
1931namespace _BlankSystemVPD
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05001932{} // namespace _BlankSystemVPD
Patrick Williamsdf329092021-09-08 16:05:08 -05001933
1934struct BlankSystemVPD
1935{
1936 static constexpr auto L = level::ERR;
1937 using metadata_types = std::tuple<>;
1938};
1939
1940} // namespace VPD
1941} // namespace ibm
1942} // namespace com
1943
1944namespace details
1945{
1946
1947template <>
1948struct map_exception_type<sdbusplus::com::ibm::VPD::Error::BlankSystemVPD>
1949{
1950 using type = com::ibm::VPD::BlankSystemVPD;
1951};
1952
1953} // namespace details
1954
1955namespace com
1956{
1957namespace ibm
1958{
1959namespace VPD
1960{
1961namespace _InvalidEepromPath
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05001962{} // namespace _InvalidEepromPath
Patrick Williamsdf329092021-09-08 16:05:08 -05001963
1964struct InvalidEepromPath
1965{
1966 static constexpr auto L = level::ERR;
1967 using metadata_types = std::tuple<>;
1968};
1969
1970} // namespace VPD
1971} // namespace ibm
1972} // namespace com
1973
1974namespace details
1975{
1976
1977template <>
1978struct map_exception_type<sdbusplus::com::ibm::VPD::Error::InvalidEepromPath>
1979{
1980 using type = com::ibm::VPD::InvalidEepromPath;
1981};
1982
1983} // namespace details
1984
1985namespace com
1986{
1987namespace ibm
1988{
1989namespace VPD
1990{
1991namespace _InvalidVPD
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05001992{} // namespace _InvalidVPD
Patrick Williamsdf329092021-09-08 16:05:08 -05001993
1994struct InvalidVPD
1995{
1996 static constexpr auto L = level::ERR;
1997 using metadata_types = std::tuple<>;
1998};
1999
2000} // namespace VPD
2001} // namespace ibm
2002} // namespace com
2003
2004namespace details
2005{
2006
2007template <>
2008struct map_exception_type<sdbusplus::com::ibm::VPD::Error::InvalidVPD>
2009{
2010 using type = com::ibm::VPD::InvalidVPD;
2011};
2012
2013} // namespace details
2014
2015namespace com
2016{
2017namespace ibm
2018{
2019namespace VPD
2020{
2021namespace _EccCheckFailed
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002022{} // namespace _EccCheckFailed
Patrick Williamsdf329092021-09-08 16:05:08 -05002023
2024struct EccCheckFailed
2025{
2026 static constexpr auto L = level::ERR;
2027 using metadata_types = std::tuple<>;
2028};
2029
2030} // namespace VPD
2031} // namespace ibm
2032} // namespace com
2033
2034namespace details
2035{
2036
2037template <>
2038struct map_exception_type<sdbusplus::com::ibm::VPD::Error::EccCheckFailed>
2039{
2040 using type = com::ibm::VPD::EccCheckFailed;
2041};
2042
2043} // namespace details
2044
2045namespace com
2046{
2047namespace ibm
2048{
2049namespace VPD
2050{
2051namespace _InvalidJson
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002052{} // namespace _InvalidJson
Patrick Williamsdf329092021-09-08 16:05:08 -05002053
2054struct InvalidJson
2055{
2056 static constexpr auto L = level::ERR;
2057 using metadata_types = std::tuple<>;
2058};
2059
2060} // namespace VPD
2061} // namespace ibm
2062} // namespace com
2063
2064namespace details
2065{
2066
2067template <>
2068struct map_exception_type<sdbusplus::com::ibm::VPD::Error::InvalidJson>
2069{
2070 using type = com::ibm::VPD::InvalidJson;
2071};
2072
2073} // namespace details
2074
2075namespace com
2076{
2077namespace ibm
2078{
2079namespace VPD
2080{
2081namespace _DbusFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002082{} // namespace _DbusFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05002083
2084struct DbusFailure
2085{
2086 static constexpr auto L = level::ERR;
2087 using metadata_types = std::tuple<>;
2088};
2089
2090} // namespace VPD
2091} // namespace ibm
2092} // namespace com
2093
2094namespace details
2095{
2096
2097template <>
2098struct map_exception_type<sdbusplus::com::ibm::VPD::Error::DbusFailure>
2099{
2100 using type = com::ibm::VPD::DbusFailure;
Tom Joseph448e74e2017-07-24 23:08:56 +05302101};
2102
Patrick Venture0b02be92018-08-31 11:55:55 -07002103} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05302104
Tom Josephb647d5b2017-10-31 17:25:33 +05302105namespace org
2106{
2107namespace open_power
2108{
2109namespace Common
2110{
2111namespace Callout
2112{
2113namespace _Procedure
2114{
2115
2116struct PROCEDURE
2117{
Patrick Williamsdf329092021-09-08 16:05:08 -05002118 /*
2119 * We can't use -fsanitize=undefined if we declare a
2120 * 'static constexpr auto str' member, so don't. Instead, open-code the
2121 * mako template lookups.
2122 */
Tom Josephb647d5b2017-10-31 17:25:33 +05302123 static constexpr auto str_short = "PROCEDURE";
Patrick Williamsdf329092021-09-08 16:05:08 -05002124 using type = std::tuple<std::decay_t<decltype("PROCEDURE=%u")>, uint32_t>;
2125 explicit constexpr PROCEDURE(uint32_t a) :
2126 _entry(entry("PROCEDURE=%u", a)){};
Tom Josephb647d5b2017-10-31 17:25:33 +05302127 type _entry;
2128};
2129
Patrick Venture0b02be92018-08-31 11:55:55 -07002130} // namespace _Procedure
Tom Josephb647d5b2017-10-31 17:25:33 +05302131
2132struct Procedure
2133{
2134 static constexpr auto L = level::ERR;
2135 using PROCEDURE = _Procedure::PROCEDURE;
2136 using metadata_types = std::tuple<PROCEDURE>;
Tom Josephb647d5b2017-10-31 17:25:33 +05302137};
2138
2139} // namespace Callout
2140} // namespace Common
2141} // namespace open_power
2142} // namespace org
2143
Tom Josephb647d5b2017-10-31 17:25:33 +05302144namespace details
2145{
2146
2147template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07002148struct map_exception_type<
2149 sdbusplus::org::open_power::Common::Callout::Error::Procedure>
Tom Josephb647d5b2017-10-31 17:25:33 +05302150{
2151 using type = org::open_power::Common::Callout::Procedure;
2152};
2153
Patrick Venture0b02be92018-08-31 11:55:55 -07002154} // namespace details
Tom Josephb647d5b2017-10-31 17:25:33 +05302155
Patrick Williamsdf329092021-09-08 16:05:08 -05002156namespace org
2157{
2158namespace open_power
2159{
2160namespace Proc
2161{
2162namespace FSI
2163{
2164namespace _SlaveDetectionFailure
2165{
2166
2167struct ERRNO
2168{
2169 /*
2170 * We can't use -fsanitize=undefined if we declare a
2171 * 'static constexpr auto str' member, so don't. Instead, open-code the
2172 * mako template lookups.
2173 */
2174 static constexpr auto str_short = "ERRNO";
2175 using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>;
2176 explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){};
2177 type _entry;
2178};
2179
2180} // namespace _SlaveDetectionFailure
2181
2182struct SlaveDetectionFailure
2183{
2184 static constexpr auto L = level::ERR;
2185 using ERRNO = _SlaveDetectionFailure::ERRNO;
2186 using metadata_types = std::tuple<ERRNO>;
2187};
2188
2189} // namespace FSI
2190} // namespace Proc
2191} // namespace open_power
2192} // namespace org
2193
2194namespace details
2195{
2196
2197template <>
2198struct map_exception_type<
2199 sdbusplus::org::open_power::Proc::FSI::Error::SlaveDetectionFailure>
2200{
2201 using type = org::open_power::Proc::FSI::SlaveDetectionFailure;
2202};
2203
2204} // namespace details
2205
2206namespace xyz
2207{
2208namespace openbmc_project
2209{
2210namespace Certs
2211{
2212namespace _InvalidCertificate
2213{
2214
2215struct REASON
2216{
2217 /*
2218 * We can't use -fsanitize=undefined if we declare a
2219 * 'static constexpr auto str' member, so don't. Instead, open-code the
2220 * mako template lookups.
2221 */
2222 static constexpr auto str_short = "REASON ";
2223 using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>;
2224 explicit constexpr REASON(const char* a) :
2225 _entry(entry("REASON = %s", a)){};
2226 type _entry;
2227};
2228
2229} // namespace _InvalidCertificate
2230
2231struct InvalidCertificate
2232{
2233 static constexpr auto L = level::ERR;
2234 using REASON = _InvalidCertificate::REASON;
2235 using metadata_types = std::tuple<REASON>;
2236};
2237
2238} // namespace Certs
2239} // namespace openbmc_project
2240} // namespace xyz
2241
2242namespace details
2243{
2244
2245template <>
2246struct map_exception_type<
2247 sdbusplus::xyz::openbmc_project::Certs::Error::InvalidCertificate>
2248{
2249 using type = xyz::openbmc_project::Certs::InvalidCertificate;
2250};
2251
2252} // namespace details
2253
2254namespace xyz
2255{
2256namespace openbmc_project
2257{
2258namespace ScheduledTime
2259{
2260namespace _InvalidTime
2261{
2262
2263struct REASON
2264{
2265 /*
2266 * We can't use -fsanitize=undefined if we declare a
2267 * 'static constexpr auto str' member, so don't. Instead, open-code the
2268 * mako template lookups.
2269 */
2270 static constexpr auto str_short = "REASON";
2271 using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>;
2272 explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){};
2273 type _entry;
2274};
2275
2276} // namespace _InvalidTime
2277
2278struct InvalidTime
2279{
2280 static constexpr auto L = level::ERR;
2281 using REASON = _InvalidTime::REASON;
2282 using metadata_types = std::tuple<REASON>;
2283};
2284
2285} // namespace ScheduledTime
2286} // namespace openbmc_project
2287} // namespace xyz
2288
2289namespace details
2290{
2291
2292template <>
2293struct map_exception_type<
2294 sdbusplus::xyz::openbmc_project::ScheduledTime::Error::InvalidTime>
2295{
2296 using type = xyz::openbmc_project::ScheduledTime::InvalidTime;
2297};
2298
2299} // namespace details
2300
2301namespace xyz
2302{
2303namespace openbmc_project
2304{
2305namespace HardwareIsolation
2306{
2307namespace _IsolatedAlready
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002308{} // namespace _IsolatedAlready
Patrick Williamsdf329092021-09-08 16:05:08 -05002309
2310struct IsolatedAlready
2311{
2312 static constexpr auto L = level::ERR;
2313 using metadata_types = std::tuple<>;
2314};
2315
2316} // namespace HardwareIsolation
2317} // namespace openbmc_project
2318} // namespace xyz
2319
2320namespace details
2321{
2322
2323template <>
2324struct map_exception_type<
2325 sdbusplus::xyz::openbmc_project::HardwareIsolation::Error::IsolatedAlready>
2326{
2327 using type = xyz::openbmc_project::HardwareIsolation::IsolatedAlready;
2328};
2329
2330} // namespace details
2331
Tom Joseph448e74e2017-07-24 23:08:56 +05302332namespace xyz
2333{
2334namespace openbmc_project
2335{
2336namespace Common
2337{
2338namespace _Timeout
2339{
2340
2341struct TIMEOUT_IN_MSEC
2342{
Patrick Williamsdf329092021-09-08 16:05:08 -05002343 /*
2344 * We can't use -fsanitize=undefined if we declare a
2345 * 'static constexpr auto str' member, so don't. Instead, open-code the
2346 * mako template lookups.
2347 */
Tom Joseph448e74e2017-07-24 23:08:56 +05302348 static constexpr auto str_short = "TIMEOUT_IN_MSEC";
Patrick Williamsdf329092021-09-08 16:05:08 -05002349 using type =
2350 std::tuple<std::decay_t<decltype("TIMEOUT_IN_MSEC=%llu")>, uint64_t>;
2351 explicit constexpr TIMEOUT_IN_MSEC(uint64_t a) :
2352 _entry(entry("TIMEOUT_IN_MSEC=%llu", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05302353 type _entry;
2354};
2355
Patrick Venture0b02be92018-08-31 11:55:55 -07002356} // namespace _Timeout
Tom Joseph448e74e2017-07-24 23:08:56 +05302357
2358struct Timeout
2359{
2360 static constexpr auto L = level::ERR;
2361 using TIMEOUT_IN_MSEC = _Timeout::TIMEOUT_IN_MSEC;
2362 using metadata_types = std::tuple<TIMEOUT_IN_MSEC>;
Tom Joseph448e74e2017-07-24 23:08:56 +05302363};
2364
2365} // namespace Common
2366} // namespace openbmc_project
2367} // namespace xyz
2368
Tom Joseph448e74e2017-07-24 23:08:56 +05302369namespace details
2370{
2371
2372template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07002373struct map_exception_type<
2374 sdbusplus::xyz::openbmc_project::Common::Error::Timeout>
Tom Joseph448e74e2017-07-24 23:08:56 +05302375{
2376 using type = xyz::openbmc_project::Common::Timeout;
2377};
2378
Patrick Venture0b02be92018-08-31 11:55:55 -07002379} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05302380
2381namespace xyz
2382{
2383namespace openbmc_project
2384{
2385namespace Common
2386{
2387namespace _InternalFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002388{} // namespace _InternalFailure
Tom Joseph448e74e2017-07-24 23:08:56 +05302389
2390struct InternalFailure
2391{
2392 static constexpr auto L = level::ERR;
2393 using metadata_types = std::tuple<>;
Tom Joseph448e74e2017-07-24 23:08:56 +05302394};
2395
2396} // namespace Common
2397} // namespace openbmc_project
2398} // namespace xyz
2399
Tom Joseph448e74e2017-07-24 23:08:56 +05302400namespace details
2401{
2402
2403template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07002404struct map_exception_type<
2405 sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure>
Tom Joseph448e74e2017-07-24 23:08:56 +05302406{
2407 using type = xyz::openbmc_project::Common::InternalFailure;
2408};
2409
Patrick Venture0b02be92018-08-31 11:55:55 -07002410} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05302411
2412namespace xyz
2413{
2414namespace openbmc_project
2415{
2416namespace Common
2417{
2418namespace _InvalidArgument
2419{
2420
2421struct ARGUMENT_NAME
2422{
Patrick Williamsdf329092021-09-08 16:05:08 -05002423 /*
2424 * We can't use -fsanitize=undefined if we declare a
2425 * 'static constexpr auto str' member, so don't. Instead, open-code the
2426 * mako template lookups.
2427 */
Tom Joseph448e74e2017-07-24 23:08:56 +05302428 static constexpr auto str_short = "ARGUMENT_NAME";
Patrick Williamsdf329092021-09-08 16:05:08 -05002429 using type =
2430 std::tuple<std::decay_t<decltype("ARGUMENT_NAME=%s")>, const char*>;
2431 explicit constexpr ARGUMENT_NAME(const char* a) :
2432 _entry(entry("ARGUMENT_NAME=%s", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05302433 type _entry;
2434};
2435struct ARGUMENT_VALUE
2436{
Patrick Williamsdf329092021-09-08 16:05:08 -05002437 /*
2438 * We can't use -fsanitize=undefined if we declare a
2439 * 'static constexpr auto str' member, so don't. Instead, open-code the
2440 * mako template lookups.
2441 */
Tom Joseph448e74e2017-07-24 23:08:56 +05302442 static constexpr auto str_short = "ARGUMENT_VALUE";
Patrick Williamsdf329092021-09-08 16:05:08 -05002443 using type =
2444 std::tuple<std::decay_t<decltype("ARGUMENT_VALUE=%s")>, const char*>;
2445 explicit constexpr ARGUMENT_VALUE(const char* a) :
2446 _entry(entry("ARGUMENT_VALUE=%s", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05302447 type _entry;
2448};
2449
Patrick Venture0b02be92018-08-31 11:55:55 -07002450} // namespace _InvalidArgument
Tom Joseph448e74e2017-07-24 23:08:56 +05302451
2452struct InvalidArgument
2453{
2454 static constexpr auto L = level::ERR;
2455 using ARGUMENT_NAME = _InvalidArgument::ARGUMENT_NAME;
2456 using ARGUMENT_VALUE = _InvalidArgument::ARGUMENT_VALUE;
2457 using metadata_types = std::tuple<ARGUMENT_NAME, ARGUMENT_VALUE>;
Tom Joseph448e74e2017-07-24 23:08:56 +05302458};
2459
2460} // namespace Common
2461} // namespace openbmc_project
2462} // namespace xyz
2463
Tom Joseph448e74e2017-07-24 23:08:56 +05302464namespace details
2465{
2466
2467template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07002468struct map_exception_type<
2469 sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument>
Tom Joseph448e74e2017-07-24 23:08:56 +05302470{
2471 using type = xyz::openbmc_project::Common::InvalidArgument;
2472};
2473
Patrick Venture0b02be92018-08-31 11:55:55 -07002474} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05302475
Tom Joseph448e74e2017-07-24 23:08:56 +05302476namespace xyz
2477{
2478namespace openbmc_project
2479{
Patrick Williamsdf329092021-09-08 16:05:08 -05002480namespace Common
Tom Joseph448e74e2017-07-24 23:08:56 +05302481{
Patrick Williamsdf329092021-09-08 16:05:08 -05002482namespace _InsufficientPermission
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002483{} // namespace _InsufficientPermission
Patrick Williamsdf329092021-09-08 16:05:08 -05002484
2485struct InsufficientPermission
Tom Joseph448e74e2017-07-24 23:08:56 +05302486{
Patrick Williamsdf329092021-09-08 16:05:08 -05002487 static constexpr auto L = level::INFO;
2488 using metadata_types = std::tuple<>;
Tom Joseph448e74e2017-07-24 23:08:56 +05302489};
2490
Patrick Williamsdf329092021-09-08 16:05:08 -05002491} // namespace Common
Tom Joseph448e74e2017-07-24 23:08:56 +05302492} // namespace openbmc_project
2493} // namespace xyz
Patrick Williamsdf329092021-09-08 16:05:08 -05002494
2495namespace details
2496{
2497
2498template <>
2499struct map_exception_type<
2500 sdbusplus::xyz::openbmc_project::Common::Error::InsufficientPermission>
2501{
2502 using type = xyz::openbmc_project::Common::InsufficientPermission;
2503};
2504
2505} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05302506
Tom Joseph448e74e2017-07-24 23:08:56 +05302507namespace xyz
2508{
2509namespace openbmc_project
2510{
Patrick Williamsdf329092021-09-08 16:05:08 -05002511namespace Common
2512{
2513namespace _NotAllowed
2514{
2515
2516struct REASON
2517{
2518 /*
2519 * We can't use -fsanitize=undefined if we declare a
2520 * 'static constexpr auto str' member, so don't. Instead, open-code the
2521 * mako template lookups.
2522 */
2523 static constexpr auto str_short = "REASON";
2524 using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>;
2525 explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){};
2526 type _entry;
2527};
2528
2529} // namespace _NotAllowed
2530
2531struct NotAllowed
2532{
2533 static constexpr auto L = level::INFO;
2534 using REASON = _NotAllowed::REASON;
2535 using metadata_types = std::tuple<REASON>;
2536};
2537
2538} // namespace Common
2539} // namespace openbmc_project
2540} // namespace xyz
2541
2542namespace details
2543{
2544
2545template <>
2546struct map_exception_type<
2547 sdbusplus::xyz::openbmc_project::Common::Error::NotAllowed>
2548{
2549 using type = xyz::openbmc_project::Common::NotAllowed;
2550};
2551
2552} // namespace details
2553
2554namespace xyz
2555{
2556namespace openbmc_project
2557{
2558namespace Common
2559{
2560namespace _NoCACertificate
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002561{} // namespace _NoCACertificate
Patrick Williamsdf329092021-09-08 16:05:08 -05002562
2563struct NoCACertificate
2564{
2565 static constexpr auto L = level::ERR;
2566 using metadata_types = std::tuple<>;
2567};
2568
2569} // namespace Common
2570} // namespace openbmc_project
2571} // namespace xyz
2572
2573namespace details
2574{
2575
2576template <>
2577struct map_exception_type<
2578 sdbusplus::xyz::openbmc_project::Common::Error::NoCACertificate>
2579{
2580 using type = xyz::openbmc_project::Common::NoCACertificate;
2581};
2582
2583} // namespace details
2584
2585namespace xyz
2586{
2587namespace openbmc_project
2588{
2589namespace Common
2590{
2591namespace _TooManyResources
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002592{} // namespace _TooManyResources
Patrick Williamsdf329092021-09-08 16:05:08 -05002593
2594struct TooManyResources
2595{
2596 static constexpr auto L = level::INFO;
2597 using metadata_types = std::tuple<>;
2598};
2599
2600} // namespace Common
2601} // namespace openbmc_project
2602} // namespace xyz
2603
2604namespace details
2605{
2606
2607template <>
2608struct map_exception_type<
2609 sdbusplus::xyz::openbmc_project::Common::Error::TooManyResources>
2610{
2611 using type = xyz::openbmc_project::Common::TooManyResources;
2612};
2613
2614} // namespace details
2615
2616namespace xyz
2617{
2618namespace openbmc_project
2619{
2620namespace Common
2621{
2622namespace _ResourceNotFound
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002623{} // namespace _ResourceNotFound
Patrick Williamsdf329092021-09-08 16:05:08 -05002624
2625struct ResourceNotFound
2626{
2627 static constexpr auto L = level::INFO;
2628 using metadata_types = std::tuple<>;
2629};
2630
2631} // namespace Common
2632} // namespace openbmc_project
2633} // namespace xyz
2634
2635namespace details
2636{
2637
2638template <>
2639struct map_exception_type<
2640 sdbusplus::xyz::openbmc_project::Common::Error::ResourceNotFound>
2641{
2642 using type = xyz::openbmc_project::Common::ResourceNotFound;
2643};
2644
2645} // namespace details
2646
2647namespace xyz
2648{
2649namespace openbmc_project
2650{
2651namespace Common
2652{
2653namespace _Unavailable
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002654{} // namespace _Unavailable
Patrick Williamsdf329092021-09-08 16:05:08 -05002655
2656struct Unavailable
2657{
2658 static constexpr auto L = level::ERR;
2659 using metadata_types = std::tuple<>;
2660};
2661
2662} // namespace Common
2663} // namespace openbmc_project
2664} // namespace xyz
2665
2666namespace details
2667{
2668
2669template <>
2670struct map_exception_type<
2671 sdbusplus::xyz::openbmc_project::Common::Error::Unavailable>
2672{
2673 using type = xyz::openbmc_project::Common::Unavailable;
2674};
2675
2676} // namespace details
2677
2678namespace xyz
2679{
2680namespace openbmc_project
2681{
2682namespace Common
2683{
2684namespace _UnsupportedRequest
2685{
2686
2687struct REASON
2688{
2689 /*
2690 * We can't use -fsanitize=undefined if we declare a
2691 * 'static constexpr auto str' member, so don't. Instead, open-code the
2692 * mako template lookups.
2693 */
2694 static constexpr auto str_short = "REASON";
2695 using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>;
2696 explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){};
2697 type _entry;
2698};
2699
2700} // namespace _UnsupportedRequest
2701
2702struct UnsupportedRequest
2703{
2704 static constexpr auto L = level::INFO;
2705 using REASON = _UnsupportedRequest::REASON;
2706 using metadata_types = std::tuple<REASON>;
2707};
2708
2709} // namespace Common
2710} // namespace openbmc_project
2711} // namespace xyz
2712
2713namespace details
2714{
2715
2716template <>
2717struct map_exception_type<
2718 sdbusplus::xyz::openbmc_project::Common::Error::UnsupportedRequest>
2719{
2720 using type = xyz::openbmc_project::Common::UnsupportedRequest;
2721};
2722
2723} // namespace details
2724
2725namespace xyz
2726{
2727namespace openbmc_project
2728{
2729namespace BIOSConfig
2730{
2731namespace Common
2732{
2733namespace _AttributeNotFound
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002734{} // namespace _AttributeNotFound
Patrick Williamsdf329092021-09-08 16:05:08 -05002735
2736struct AttributeNotFound
2737{
2738 static constexpr auto L = level::ERR;
2739 using metadata_types = std::tuple<>;
2740};
2741
2742} // namespace Common
2743} // namespace BIOSConfig
2744} // namespace openbmc_project
2745} // namespace xyz
2746
2747namespace details
2748{
2749
2750template <>
2751struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common::
2752 Error::AttributeNotFound>
2753{
2754 using type = xyz::openbmc_project::BIOSConfig::Common::AttributeNotFound;
2755};
2756
2757} // namespace details
2758
2759namespace xyz
2760{
2761namespace openbmc_project
2762{
2763namespace BIOSConfig
2764{
2765namespace Common
2766{
2767namespace _AttributeReadOnly
2768{
2769
2770struct REASON
2771{
2772 /*
2773 * We can't use -fsanitize=undefined if we declare a
2774 * 'static constexpr auto str' member, so don't. Instead, open-code the
2775 * mako template lookups.
2776 */
2777 static constexpr auto str_short = "REASON";
2778 using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>;
2779 explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){};
2780 type _entry;
2781};
2782
2783} // namespace _AttributeReadOnly
2784
2785struct AttributeReadOnly
2786{
2787 static constexpr auto L = level::ERR;
2788 using REASON = _AttributeReadOnly::REASON;
2789 using metadata_types = std::tuple<REASON>;
2790};
2791
2792} // namespace Common
2793} // namespace BIOSConfig
2794} // namespace openbmc_project
2795} // namespace xyz
2796
2797namespace details
2798{
2799
2800template <>
2801struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common::
2802 Error::AttributeReadOnly>
2803{
2804 using type = xyz::openbmc_project::BIOSConfig::Common::AttributeReadOnly;
2805};
2806
2807} // namespace details
2808
2809namespace xyz
2810{
2811namespace openbmc_project
2812{
2813namespace BIOSConfig
2814{
2815namespace Common
2816{
2817namespace _InvalidCurrentPassword
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002818{} // namespace _InvalidCurrentPassword
Patrick Williamsdf329092021-09-08 16:05:08 -05002819
2820struct InvalidCurrentPassword
2821{
2822 static constexpr auto L = level::ERR;
2823 using metadata_types = std::tuple<>;
2824};
2825
2826} // namespace Common
2827} // namespace BIOSConfig
2828} // namespace openbmc_project
2829} // namespace xyz
2830
2831namespace details
2832{
2833
2834template <>
2835struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common::
2836 Error::InvalidCurrentPassword>
2837{
2838 using type =
2839 xyz::openbmc_project::BIOSConfig::Common::InvalidCurrentPassword;
2840};
2841
2842} // namespace details
2843
2844namespace xyz
2845{
2846namespace openbmc_project
2847{
2848namespace BIOSConfig
2849{
2850namespace Common
2851{
2852namespace _PasswordNotSettable
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002853{} // namespace _PasswordNotSettable
Patrick Williamsdf329092021-09-08 16:05:08 -05002854
2855struct PasswordNotSettable
2856{
2857 static constexpr auto L = level::ERR;
2858 using metadata_types = std::tuple<>;
2859};
2860
2861} // namespace Common
2862} // namespace BIOSConfig
2863} // namespace openbmc_project
2864} // namespace xyz
2865
2866namespace details
2867{
2868
2869template <>
2870struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common::
2871 Error::PasswordNotSettable>
2872{
2873 using type = xyz::openbmc_project::BIOSConfig::Common::PasswordNotSettable;
2874};
2875
2876} // namespace details
2877
2878namespace xyz
2879{
2880namespace openbmc_project
2881{
2882namespace Chassis
2883{
2884namespace Common
2885{
2886namespace _UnsupportedCommand
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002887{} // namespace _UnsupportedCommand
Patrick Williamsdf329092021-09-08 16:05:08 -05002888
2889struct UnsupportedCommand
2890{
2891 static constexpr auto L = level::ERR;
2892 using metadata_types = std::tuple<>;
2893};
2894
2895} // namespace Common
2896} // namespace Chassis
2897} // namespace openbmc_project
2898} // namespace xyz
2899
2900namespace details
2901{
2902
2903template <>
2904struct map_exception_type<
2905 sdbusplus::xyz::openbmc_project::Chassis::Common::Error::UnsupportedCommand>
2906{
2907 using type = xyz::openbmc_project::Chassis::Common::UnsupportedCommand;
2908};
2909
2910} // namespace details
2911
2912namespace xyz
2913{
2914namespace openbmc_project
2915{
2916namespace Chassis
2917{
2918namespace Common
2919{
2920namespace _IOError
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05002921{} // namespace _IOError
Patrick Williamsdf329092021-09-08 16:05:08 -05002922
2923struct IOError
2924{
2925 static constexpr auto L = level::ERR;
2926 using metadata_types = std::tuple<>;
2927};
2928
2929} // namespace Common
2930} // namespace Chassis
2931} // namespace openbmc_project
2932} // namespace xyz
2933
2934namespace details
2935{
2936
2937template <>
2938struct map_exception_type<
2939 sdbusplus::xyz::openbmc_project::Chassis::Common::Error::IOError>
2940{
2941 using type = xyz::openbmc_project::Chassis::Common::IOError;
2942};
2943
2944} // namespace details
2945
2946namespace xyz
2947{
2948namespace openbmc_project
2949{
2950namespace Common
2951{
2952namespace Callout
2953{
2954namespace _Device
2955{
2956
2957struct CALLOUT_ERRNO
2958{
2959 /*
2960 * We can't use -fsanitize=undefined if we declare a
2961 * 'static constexpr auto str' member, so don't. Instead, open-code the
2962 * mako template lookups.
2963 */
2964 static constexpr auto str_short = "CALLOUT_ERRNO";
2965 using type =
2966 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
2967 explicit constexpr CALLOUT_ERRNO(int32_t a) :
2968 _entry(entry("CALLOUT_ERRNO=%d", a)){};
2969 type _entry;
2970};
2971struct CALLOUT_DEVICE_PATH
2972{
2973 /*
2974 * We can't use -fsanitize=undefined if we declare a
2975 * 'static constexpr auto str' member, so don't. Instead, open-code the
2976 * mako template lookups.
2977 */
2978 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
2979 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
2980 const char*>;
2981 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
2982 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){};
2983 type _entry;
2984};
2985
2986} // namespace _Device
2987
2988struct Device
2989{
2990 static constexpr auto L = level::ERR;
2991 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
2992 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
2993 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
2994};
2995
2996} // namespace Callout
2997} // namespace Common
2998} // namespace openbmc_project
2999} // namespace xyz
3000
3001namespace details
3002{
3003
3004template <>
3005struct map_exception_type<
3006 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
3007{
3008 using type = xyz::openbmc_project::Common::Callout::Device;
3009};
3010
3011} // namespace details
3012
3013namespace xyz
3014{
3015namespace openbmc_project
3016{
3017namespace Common
3018{
3019namespace Callout
3020{
3021namespace _GPIO
3022{
3023
3024struct CALLOUT_GPIO_NUM
3025{
3026 /*
3027 * We can't use -fsanitize=undefined if we declare a
3028 * 'static constexpr auto str' member, so don't. Instead, open-code the
3029 * mako template lookups.
3030 */
3031 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
3032 using type =
3033 std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
3034 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
3035 _entry(entry("CALLOUT_GPIO_NUM=%u", a)){};
3036 type _entry;
3037};
3038
3039} // namespace _GPIO
3040
3041struct GPIO
3042{
3043 static constexpr auto L = level::ERR;
3044 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
3045 using CALLOUT_ERRNO =
3046 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
3047 using CALLOUT_DEVICE_PATH =
3048 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
3049 using metadata_types =
3050 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
3051};
3052
3053} // namespace Callout
3054} // namespace Common
3055} // namespace openbmc_project
3056} // namespace xyz
3057
3058namespace details
3059{
3060
3061template <>
3062struct map_exception_type<
3063 sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
3064{
3065 using type = xyz::openbmc_project::Common::Callout::GPIO;
3066};
3067
3068} // namespace details
3069
3070namespace xyz
3071{
3072namespace openbmc_project
3073{
3074namespace Common
3075{
3076namespace Callout
3077{
3078namespace _IIC
3079{
3080
3081struct CALLOUT_IIC_BUS
3082{
3083 /*
3084 * We can't use -fsanitize=undefined if we declare a
3085 * 'static constexpr auto str' member, so don't. Instead, open-code the
3086 * mako template lookups.
3087 */
3088 static constexpr auto str_short = "CALLOUT_IIC_BUS";
3089 using type =
3090 std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
3091 explicit constexpr CALLOUT_IIC_BUS(const char* a) :
3092 _entry(entry("CALLOUT_IIC_BUS=%s", a)){};
3093 type _entry;
3094};
3095struct CALLOUT_IIC_ADDR
3096{
3097 /*
3098 * We can't use -fsanitize=undefined if we declare a
3099 * 'static constexpr auto str' member, so don't. Instead, open-code the
3100 * mako template lookups.
3101 */
3102 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
3103 using type =
3104 std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
3105 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
3106 _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){};
3107 type _entry;
3108};
3109
3110} // namespace _IIC
3111
3112struct IIC
3113{
3114 static constexpr auto L = level::ERR;
3115 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
3116 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
3117 using CALLOUT_ERRNO =
3118 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
3119 using CALLOUT_DEVICE_PATH =
3120 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
3121 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
3122 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
3123};
3124
3125} // namespace Callout
3126} // namespace Common
3127} // namespace openbmc_project
3128} // namespace xyz
3129
3130namespace details
3131{
3132
3133template <>
3134struct map_exception_type<
3135 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
3136{
3137 using type = xyz::openbmc_project::Common::Callout::IIC;
3138};
3139
3140} // namespace details
3141
3142namespace xyz
3143{
3144namespace openbmc_project
3145{
3146namespace Common
3147{
3148namespace Callout
3149{
3150namespace _Inventory
3151{
3152
3153struct CALLOUT_INVENTORY_PATH
3154{
3155 /*
3156 * We can't use -fsanitize=undefined if we declare a
3157 * 'static constexpr auto str' member, so don't. Instead, open-code the
3158 * mako template lookups.
3159 */
3160 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
3161 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
3162 const char*>;
3163 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
3164 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){};
3165 type _entry;
3166};
3167
3168} // namespace _Inventory
3169
3170struct Inventory
3171{
3172 static constexpr auto L = level::ERR;
3173 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
3174 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
3175};
3176
3177} // namespace Callout
3178} // namespace Common
3179} // namespace openbmc_project
3180} // namespace xyz
3181
3182namespace details
3183{
3184
3185template <>
3186struct map_exception_type<
3187 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
3188{
3189 using type = xyz::openbmc_project::Common::Callout::Inventory;
3190};
3191
3192} // namespace details
3193
3194namespace xyz
3195{
3196namespace openbmc_project
3197{
3198namespace Common
3199{
3200namespace Callout
3201{
3202namespace _IPMISensor
3203{
3204
3205struct CALLOUT_IPMI_SENSOR_NUM
3206{
3207 /*
3208 * We can't use -fsanitize=undefined if we declare a
3209 * 'static constexpr auto str' member, so don't. Instead, open-code the
3210 * mako template lookups.
3211 */
3212 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
3213 using type =
3214 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
3215 uint32_t>;
3216 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
3217 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){};
3218 type _entry;
3219};
3220
3221} // namespace _IPMISensor
3222
3223struct IPMISensor
3224{
3225 static constexpr auto L = level::ERR;
3226 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
3227 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
3228};
3229
3230} // namespace Callout
3231} // namespace Common
3232} // namespace openbmc_project
3233} // namespace xyz
3234
3235namespace details
3236{
3237
3238template <>
3239struct map_exception_type<
3240 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
3241{
3242 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
3243};
3244
3245} // namespace details
3246
3247namespace xyz
3248{
3249namespace openbmc_project
3250{
3251namespace Common
Tom Joseph448e74e2017-07-24 23:08:56 +05303252{
3253namespace Device
3254{
3255namespace _ReadFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05003256{} // namespace _ReadFailure
Tom Joseph448e74e2017-07-24 23:08:56 +05303257
3258struct ReadFailure
3259{
3260 static constexpr auto L = level::ERR;
Patrick Venture0b02be92018-08-31 11:55:55 -07003261 using CALLOUT_ERRNO =
3262 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
3263 using CALLOUT_DEVICE_PATH =
3264 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
Tom Joseph448e74e2017-07-24 23:08:56 +05303265 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Tom Joseph448e74e2017-07-24 23:08:56 +05303266};
3267
3268} // namespace Device
Patrick Williamsdf329092021-09-08 16:05:08 -05003269} // namespace Common
Tom Joseph448e74e2017-07-24 23:08:56 +05303270} // namespace openbmc_project
3271} // namespace xyz
3272
Tom Joseph448e74e2017-07-24 23:08:56 +05303273namespace details
3274{
3275
3276template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07003277struct map_exception_type<
Patrick Williamsdf329092021-09-08 16:05:08 -05003278 sdbusplus::xyz::openbmc_project::Common::Device::Error::ReadFailure>
Tom Joseph448e74e2017-07-24 23:08:56 +05303279{
Patrick Williamsdf329092021-09-08 16:05:08 -05003280 using type = xyz::openbmc_project::Common::Device::ReadFailure;
Tom Joseph448e74e2017-07-24 23:08:56 +05303281};
3282
Patrick Venture0b02be92018-08-31 11:55:55 -07003283} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05303284
Patrick Williamsdf329092021-09-08 16:05:08 -05003285namespace xyz
Tom Joseph448e74e2017-07-24 23:08:56 +05303286{
Patrick Williamsdf329092021-09-08 16:05:08 -05003287namespace openbmc_project
Tom Joseph448e74e2017-07-24 23:08:56 +05303288{
Patrick Williamsdf329092021-09-08 16:05:08 -05003289namespace Common
Tom Joseph448e74e2017-07-24 23:08:56 +05303290{
Patrick Williamsdf329092021-09-08 16:05:08 -05003291namespace Device
3292{
3293namespace _WriteFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05003294{} // namespace _WriteFailure
Tom Joseph448e74e2017-07-24 23:08:56 +05303295
Patrick Williamsdf329092021-09-08 16:05:08 -05003296struct WriteFailure
Tom Joseph448e74e2017-07-24 23:08:56 +05303297{
3298 static constexpr auto L = level::ERR;
Patrick Williamsdf329092021-09-08 16:05:08 -05003299 using CALLOUT_ERRNO =
3300 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
3301 using CALLOUT_DEVICE_PATH =
3302 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
3303 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Tom Joseph448e74e2017-07-24 23:08:56 +05303304};
3305
Patrick Williamsdf329092021-09-08 16:05:08 -05003306} // namespace Device
3307} // namespace Common
3308} // namespace openbmc_project
3309} // namespace xyz
Tom Joseph448e74e2017-07-24 23:08:56 +05303310
Tom Joseph448e74e2017-07-24 23:08:56 +05303311namespace details
3312{
3313
3314template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07003315struct map_exception_type<
Patrick Williamsdf329092021-09-08 16:05:08 -05003316 sdbusplus::xyz::openbmc_project::Common::Device::Error::WriteFailure>
Tom Joseph448e74e2017-07-24 23:08:56 +05303317{
Patrick Williamsdf329092021-09-08 16:05:08 -05003318 using type = xyz::openbmc_project::Common::Device::WriteFailure;
Tom Joseph448e74e2017-07-24 23:08:56 +05303319};
3320
Patrick Venture0b02be92018-08-31 11:55:55 -07003321} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05303322
Tom Joseph448e74e2017-07-24 23:08:56 +05303323namespace xyz
3324{
3325namespace openbmc_project
3326{
Patrick Williamsdf329092021-09-08 16:05:08 -05003327namespace Common
Tom Joseph448e74e2017-07-24 23:08:56 +05303328{
Patrick Williamsdf329092021-09-08 16:05:08 -05003329namespace File
Tom Joseph448e74e2017-07-24 23:08:56 +05303330{
Patrick Williamsdf329092021-09-08 16:05:08 -05003331namespace _Open
Tom Joseph448e74e2017-07-24 23:08:56 +05303332{
3333
Patrick Williamsdf329092021-09-08 16:05:08 -05003334struct ERRNO
Tom Joseph448e74e2017-07-24 23:08:56 +05303335{
Patrick Williamsdf329092021-09-08 16:05:08 -05003336 /*
3337 * We can't use -fsanitize=undefined if we declare a
3338 * 'static constexpr auto str' member, so don't. Instead, open-code the
3339 * mako template lookups.
3340 */
3341 static constexpr auto str_short = "ERRNO";
3342 using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>;
3343 explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05303344 type _entry;
3345};
Patrick Williamsdf329092021-09-08 16:05:08 -05003346struct PATH
Tom Joseph448e74e2017-07-24 23:08:56 +05303347{
Patrick Williamsdf329092021-09-08 16:05:08 -05003348 /*
3349 * We can't use -fsanitize=undefined if we declare a
3350 * 'static constexpr auto str' member, so don't. Instead, open-code the
3351 * mako template lookups.
3352 */
3353 static constexpr auto str_short = "PATH";
3354 using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>;
3355 explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05303356 type _entry;
3357};
3358
Patrick Williamsdf329092021-09-08 16:05:08 -05003359} // namespace _Open
Tom Joseph448e74e2017-07-24 23:08:56 +05303360
Patrick Williamsdf329092021-09-08 16:05:08 -05003361struct Open
Tom Joseph448e74e2017-07-24 23:08:56 +05303362{
Tom Joseph448e74e2017-07-24 23:08:56 +05303363 static constexpr auto L = level::ERR;
Patrick Williamsdf329092021-09-08 16:05:08 -05003364 using ERRNO = _Open::ERRNO;
3365 using PATH = _Open::PATH;
3366 using metadata_types = std::tuple<ERRNO, PATH>;
Tom Joseph448e74e2017-07-24 23:08:56 +05303367};
3368
Patrick Williamsdf329092021-09-08 16:05:08 -05003369} // namespace File
3370} // namespace Common
Tom Joseph448e74e2017-07-24 23:08:56 +05303371} // namespace openbmc_project
3372} // namespace xyz
Tom Josephb647d5b2017-10-31 17:25:33 +05303373
Tom Josephb647d5b2017-10-31 17:25:33 +05303374namespace details
3375{
3376
3377template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07003378struct map_exception_type<
Patrick Williamsdf329092021-09-08 16:05:08 -05003379 sdbusplus::xyz::openbmc_project::Common::File::Error::Open>
Tom Josephb647d5b2017-10-31 17:25:33 +05303380{
Patrick Williamsdf329092021-09-08 16:05:08 -05003381 using type = xyz::openbmc_project::Common::File::Open;
3382};
3383
3384} // namespace details
3385
3386namespace xyz
3387{
3388namespace openbmc_project
3389{
3390namespace Common
3391{
3392namespace File
3393{
3394namespace _Seek
3395{
3396
3397struct OFFSET
3398{
3399 /*
3400 * We can't use -fsanitize=undefined if we declare a
3401 * 'static constexpr auto str' member, so don't. Instead, open-code the
3402 * mako template lookups.
3403 */
3404 static constexpr auto str_short = "OFFSET";
3405 using type = std::tuple<std::decay_t<decltype("OFFSET=%ll")>, int64_t>;
3406 explicit constexpr OFFSET(int64_t a) : _entry(entry("OFFSET=%ll", a)){};
3407 type _entry;
3408};
3409struct WHENCE
3410{
3411 /*
3412 * We can't use -fsanitize=undefined if we declare a
3413 * 'static constexpr auto str' member, so don't. Instead, open-code the
3414 * mako template lookups.
3415 */
3416 static constexpr auto str_short = "WHENCE";
3417 using type = std::tuple<std::decay_t<decltype("WHENCE=%d")>, int32_t>;
3418 explicit constexpr WHENCE(int32_t a) : _entry(entry("WHENCE=%d", a)){};
3419 type _entry;
3420};
3421struct ERRNO
3422{
3423 /*
3424 * We can't use -fsanitize=undefined if we declare a
3425 * 'static constexpr auto str' member, so don't. Instead, open-code the
3426 * mako template lookups.
3427 */
3428 static constexpr auto str_short = "ERRNO";
3429 using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>;
3430 explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){};
3431 type _entry;
3432};
3433struct PATH
3434{
3435 /*
3436 * We can't use -fsanitize=undefined if we declare a
3437 * 'static constexpr auto str' member, so don't. Instead, open-code the
3438 * mako template lookups.
3439 */
3440 static constexpr auto str_short = "PATH";
3441 using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>;
3442 explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){};
3443 type _entry;
3444};
3445
3446} // namespace _Seek
3447
3448struct Seek
3449{
3450 static constexpr auto L = level::ERR;
3451 using OFFSET = _Seek::OFFSET;
3452 using WHENCE = _Seek::WHENCE;
3453 using ERRNO = _Seek::ERRNO;
3454 using PATH = _Seek::PATH;
3455 using metadata_types = std::tuple<OFFSET, WHENCE, ERRNO, PATH>;
3456};
3457
3458} // namespace File
3459} // namespace Common
3460} // namespace openbmc_project
3461} // namespace xyz
3462
3463namespace details
3464{
3465
3466template <>
3467struct map_exception_type<
3468 sdbusplus::xyz::openbmc_project::Common::File::Error::Seek>
3469{
3470 using type = xyz::openbmc_project::Common::File::Seek;
3471};
3472
3473} // namespace details
3474
3475namespace xyz
3476{
3477namespace openbmc_project
3478{
3479namespace Common
3480{
3481namespace File
3482{
3483namespace _Write
3484{
3485
3486struct ERRNO
3487{
3488 /*
3489 * We can't use -fsanitize=undefined if we declare a
3490 * 'static constexpr auto str' member, so don't. Instead, open-code the
3491 * mako template lookups.
3492 */
3493 static constexpr auto str_short = "ERRNO";
3494 using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>;
3495 explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){};
3496 type _entry;
3497};
3498struct PATH
3499{
3500 /*
3501 * We can't use -fsanitize=undefined if we declare a
3502 * 'static constexpr auto str' member, so don't. Instead, open-code the
3503 * mako template lookups.
3504 */
3505 static constexpr auto str_short = "PATH";
3506 using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>;
3507 explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){};
3508 type _entry;
3509};
3510
3511} // namespace _Write
3512
3513struct Write
3514{
3515 static constexpr auto L = level::ERR;
3516 using ERRNO = _Write::ERRNO;
3517 using PATH = _Write::PATH;
3518 using metadata_types = std::tuple<ERRNO, PATH>;
3519};
3520
3521} // namespace File
3522} // namespace Common
3523} // namespace openbmc_project
3524} // namespace xyz
3525
3526namespace details
3527{
3528
3529template <>
3530struct map_exception_type<
3531 sdbusplus::xyz::openbmc_project::Common::File::Error::Write>
3532{
3533 using type = xyz::openbmc_project::Common::File::Write;
3534};
3535
3536} // namespace details
3537
3538namespace xyz
3539{
3540namespace openbmc_project
3541{
3542namespace Common
3543{
3544namespace File
3545{
3546namespace _Read
3547{
3548
3549struct ERRNO
3550{
3551 /*
3552 * We can't use -fsanitize=undefined if we declare a
3553 * 'static constexpr auto str' member, so don't. Instead, open-code the
3554 * mako template lookups.
3555 */
3556 static constexpr auto str_short = "ERRNO";
3557 using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>;
3558 explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){};
3559 type _entry;
3560};
3561struct PATH
3562{
3563 /*
3564 * We can't use -fsanitize=undefined if we declare a
3565 * 'static constexpr auto str' member, so don't. Instead, open-code the
3566 * mako template lookups.
3567 */
3568 static constexpr auto str_short = "PATH";
3569 using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>;
3570 explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){};
3571 type _entry;
3572};
3573
3574} // namespace _Read
3575
3576struct Read
3577{
3578 static constexpr auto L = level::ERR;
3579 using ERRNO = _Read::ERRNO;
3580 using PATH = _Read::PATH;
3581 using metadata_types = std::tuple<ERRNO, PATH>;
3582};
3583
3584} // namespace File
3585} // namespace Common
3586} // namespace openbmc_project
3587} // namespace xyz
3588
3589namespace details
3590{
3591
3592template <>
3593struct map_exception_type<
3594 sdbusplus::xyz::openbmc_project::Common::File::Error::Read>
3595{
3596 using type = xyz::openbmc_project::Common::File::Read;
Tom Josephb647d5b2017-10-31 17:25:33 +05303597};
3598
Patrick Venture0b02be92018-08-31 11:55:55 -07003599} // namespace details
Tom Josephb647d5b2017-10-31 17:25:33 +05303600
Tom Joseph448e74e2017-07-24 23:08:56 +05303601namespace xyz
3602{
3603namespace openbmc_project
3604{
3605namespace Control
3606{
3607namespace Device
3608{
3609namespace _WriteFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05003610{} // namespace _WriteFailure
Tom Joseph448e74e2017-07-24 23:08:56 +05303611
3612struct WriteFailure
3613{
3614 static constexpr auto L = level::ERR;
Patrick Venture0b02be92018-08-31 11:55:55 -07003615 using CALLOUT_ERRNO =
3616 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
3617 using CALLOUT_DEVICE_PATH =
3618 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
Tom Joseph448e74e2017-07-24 23:08:56 +05303619 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Tom Joseph448e74e2017-07-24 23:08:56 +05303620};
3621
3622} // namespace Device
3623} // namespace Control
3624} // namespace openbmc_project
3625} // namespace xyz
3626
Tom Joseph448e74e2017-07-24 23:08:56 +05303627namespace details
3628{
3629
3630template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07003631struct map_exception_type<
3632 sdbusplus::xyz::openbmc_project::Control::Device::Error::WriteFailure>
Tom Joseph448e74e2017-07-24 23:08:56 +05303633{
3634 using type = xyz::openbmc_project::Control::Device::WriteFailure;
3635};
3636
Patrick Venture0b02be92018-08-31 11:55:55 -07003637} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05303638
3639namespace xyz
3640{
3641namespace openbmc_project
3642{
Patrick Williamsdf329092021-09-08 16:05:08 -05003643namespace Control
Tom Joseph448e74e2017-07-24 23:08:56 +05303644{
3645namespace Host
3646{
Patrick Williamsdf329092021-09-08 16:05:08 -05003647namespace _CommandNotSupported
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05003648{} // namespace _CommandNotSupported
Tom Joseph448e74e2017-07-24 23:08:56 +05303649
Patrick Williamsdf329092021-09-08 16:05:08 -05003650struct CommandNotSupported
Tom Joseph448e74e2017-07-24 23:08:56 +05303651{
3652 static constexpr auto L = level::ERR;
Patrick Williamsdf329092021-09-08 16:05:08 -05003653 using metadata_types = std::tuple<>;
Tom Joseph448e74e2017-07-24 23:08:56 +05303654};
3655
3656} // namespace Host
Patrick Williamsdf329092021-09-08 16:05:08 -05003657} // namespace Control
Tom Joseph448e74e2017-07-24 23:08:56 +05303658} // namespace openbmc_project
3659} // namespace xyz
3660
Tom Joseph448e74e2017-07-24 23:08:56 +05303661namespace details
3662{
3663
3664template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07003665struct map_exception_type<
Patrick Williamsdf329092021-09-08 16:05:08 -05003666 sdbusplus::xyz::openbmc_project::Control::Host::Error::CommandNotSupported>
Tom Joseph448e74e2017-07-24 23:08:56 +05303667{
Patrick Williamsdf329092021-09-08 16:05:08 -05003668 using type = xyz::openbmc_project::Control::Host::CommandNotSupported;
Tom Joseph448e74e2017-07-24 23:08:56 +05303669};
3670
Patrick Venture0b02be92018-08-31 11:55:55 -07003671} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05303672
3673namespace xyz
3674{
3675namespace openbmc_project
3676{
3677namespace Dump
3678{
3679namespace Create
3680{
3681namespace _Disabled
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05003682{} // namespace _Disabled
Tom Joseph448e74e2017-07-24 23:08:56 +05303683
3684struct Disabled
3685{
3686 static constexpr auto L = level::ERR;
3687 using metadata_types = std::tuple<>;
Tom Joseph448e74e2017-07-24 23:08:56 +05303688};
3689
3690} // namespace Create
3691} // namespace Dump
3692} // namespace openbmc_project
3693} // namespace xyz
3694
Tom Joseph448e74e2017-07-24 23:08:56 +05303695namespace details
3696{
3697
3698template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07003699struct map_exception_type<
3700 sdbusplus::xyz::openbmc_project::Dump::Create::Error::Disabled>
Tom Joseph448e74e2017-07-24 23:08:56 +05303701{
3702 using type = xyz::openbmc_project::Dump::Create::Disabled;
3703};
3704
Patrick Venture0b02be92018-08-31 11:55:55 -07003705} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05303706
3707namespace xyz
3708{
3709namespace openbmc_project
3710{
3711namespace Dump
3712{
3713namespace Create
3714{
3715namespace _QuotaExceeded
3716{
3717
Gunnar Millsd8249ee2018-04-12 16:33:53 -05003718struct REASON
Tom Joseph448e74e2017-07-24 23:08:56 +05303719{
Patrick Williamsdf329092021-09-08 16:05:08 -05003720 /*
3721 * We can't use -fsanitize=undefined if we declare a
3722 * 'static constexpr auto str' member, so don't. Instead, open-code the
3723 * mako template lookups.
3724 */
Tom Joseph448e74e2017-07-24 23:08:56 +05303725 static constexpr auto str_short = "REASON ";
Patrick Williamsdf329092021-09-08 16:05:08 -05003726 using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>;
3727 explicit constexpr REASON(const char* a) :
3728 _entry(entry("REASON = %s", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05303729 type _entry;
3730};
3731
Patrick Venture0b02be92018-08-31 11:55:55 -07003732} // namespace _QuotaExceeded
Tom Joseph448e74e2017-07-24 23:08:56 +05303733
3734struct QuotaExceeded
3735{
3736 static constexpr auto L = level::ERR;
Patrick Venture0b02be92018-08-31 11:55:55 -07003737 using REASON = _QuotaExceeded::REASON;
3738 using metadata_types = std::tuple<REASON>;
Tom Joseph448e74e2017-07-24 23:08:56 +05303739};
3740
3741} // namespace Create
3742} // namespace Dump
3743} // namespace openbmc_project
3744} // namespace xyz
3745
Tom Joseph448e74e2017-07-24 23:08:56 +05303746namespace details
3747{
3748
3749template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07003750struct map_exception_type<
3751 sdbusplus::xyz::openbmc_project::Dump::Create::Error::QuotaExceeded>
Tom Joseph448e74e2017-07-24 23:08:56 +05303752{
3753 using type = xyz::openbmc_project::Dump::Create::QuotaExceeded;
3754};
3755
Patrick Venture0b02be92018-08-31 11:55:55 -07003756} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05303757
3758namespace xyz
3759{
3760namespace openbmc_project
3761{
Patrick Williamsdf329092021-09-08 16:05:08 -05003762namespace Logging
Tom Joseph448e74e2017-07-24 23:08:56 +05303763{
Patrick Williamsdf329092021-09-08 16:05:08 -05003764namespace SEL
Tom Joseph448e74e2017-07-24 23:08:56 +05303765{
Patrick Williamsdf329092021-09-08 16:05:08 -05003766namespace _Created
Tom Joseph448e74e2017-07-24 23:08:56 +05303767{
3768
Patrick Williamsdf329092021-09-08 16:05:08 -05003769struct RECORD_TYPE
Tom Joseph448e74e2017-07-24 23:08:56 +05303770{
Patrick Williamsdf329092021-09-08 16:05:08 -05003771 /*
3772 * We can't use -fsanitize=undefined if we declare a
3773 * 'static constexpr auto str' member, so don't. Instead, open-code the
3774 * mako template lookups.
3775 */
3776 static constexpr auto str_short = "RECORD_TYPE";
3777 using type = std::tuple<std::decay_t<decltype("RECORD_TYPE=%u")>, uint8_t>;
3778 explicit constexpr RECORD_TYPE(uint8_t a) :
3779 _entry(entry("RECORD_TYPE=%u", a)){};
3780 type _entry;
3781};
3782struct GENERATOR_ID
3783{
3784 /*
3785 * We can't use -fsanitize=undefined if we declare a
3786 * 'static constexpr auto str' member, so don't. Instead, open-code the
3787 * mako template lookups.
3788 */
3789 static constexpr auto str_short = "GENERATOR_ID";
3790 using type =
3791 std::tuple<std::decay_t<decltype("GENERATOR_ID=%u")>, uint16_t>;
3792 explicit constexpr GENERATOR_ID(uint16_t a) :
3793 _entry(entry("GENERATOR_ID=%u", a)){};
3794 type _entry;
3795};
3796struct SENSOR_DATA
3797{
3798 /*
3799 * We can't use -fsanitize=undefined if we declare a
3800 * 'static constexpr auto str' member, so don't. Instead, open-code the
3801 * mako template lookups.
3802 */
3803 static constexpr auto str_short = "SENSOR_DATA";
3804 using type =
3805 std::tuple<std::decay_t<decltype("SENSOR_DATA=%s")>, const char*>;
3806 explicit constexpr SENSOR_DATA(const char* a) :
3807 _entry(entry("SENSOR_DATA=%s", a)){};
3808 type _entry;
3809};
3810struct EVENT_DIR
3811{
3812 /*
3813 * We can't use -fsanitize=undefined if we declare a
3814 * 'static constexpr auto str' member, so don't. Instead, open-code the
3815 * mako template lookups.
3816 */
3817 static constexpr auto str_short = "EVENT_DIR";
3818 using type = std::tuple<std::decay_t<decltype("EVENT_DIR=%u")>, uint8_t>;
3819 explicit constexpr EVENT_DIR(uint8_t a) :
3820 _entry(entry("EVENT_DIR=%u", a)){};
3821 type _entry;
3822};
3823struct SENSOR_PATH
3824{
3825 /*
3826 * We can't use -fsanitize=undefined if we declare a
3827 * 'static constexpr auto str' member, so don't. Instead, open-code the
3828 * mako template lookups.
3829 */
3830 static constexpr auto str_short = "SENSOR_PATH";
3831 using type =
3832 std::tuple<std::decay_t<decltype("SENSOR_PATH=%s")>, const char*>;
3833 explicit constexpr SENSOR_PATH(const char* a) :
3834 _entry(entry("SENSOR_PATH=%s", a)){};
3835 type _entry;
Tom Joseph448e74e2017-07-24 23:08:56 +05303836};
3837
Patrick Williamsdf329092021-09-08 16:05:08 -05003838} // namespace _Created
3839
3840struct Created
3841{
3842 static constexpr auto L = level::INFO;
3843 using RECORD_TYPE = _Created::RECORD_TYPE;
3844 using GENERATOR_ID = _Created::GENERATOR_ID;
3845 using SENSOR_DATA = _Created::SENSOR_DATA;
3846 using EVENT_DIR = _Created::EVENT_DIR;
3847 using SENSOR_PATH = _Created::SENSOR_PATH;
3848 using metadata_types = std::tuple<RECORD_TYPE, GENERATOR_ID, SENSOR_DATA,
3849 EVENT_DIR, SENSOR_PATH>;
3850};
3851
3852} // namespace SEL
3853} // namespace Logging
Tom Joseph448e74e2017-07-24 23:08:56 +05303854} // namespace openbmc_project
3855} // namespace xyz
3856
Tom Joseph448e74e2017-07-24 23:08:56 +05303857namespace details
3858{
3859
3860template <>
Patrick Venture0b02be92018-08-31 11:55:55 -07003861struct map_exception_type<
Patrick Williamsdf329092021-09-08 16:05:08 -05003862 sdbusplus::xyz::openbmc_project::Logging::SEL::Error::Created>
Tom Joseph448e74e2017-07-24 23:08:56 +05303863{
Patrick Williamsdf329092021-09-08 16:05:08 -05003864 using type = xyz::openbmc_project::Logging::SEL::Created;
3865};
3866
3867} // namespace details
3868
3869namespace xyz
3870{
3871namespace openbmc_project
3872{
3873namespace Memory
3874{
3875namespace MemoryECC
3876{
3877namespace _isLoggingLimitReached
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05003878{} // namespace _isLoggingLimitReached
Patrick Williamsdf329092021-09-08 16:05:08 -05003879
3880struct isLoggingLimitReached
3881{
3882 static constexpr auto L = level::ERR;
3883 using metadata_types = std::tuple<>;
3884};
3885
3886} // namespace MemoryECC
3887} // namespace Memory
3888} // namespace openbmc_project
3889} // namespace xyz
3890
3891namespace details
3892{
3893
3894template <>
3895struct map_exception_type<sdbusplus::xyz::openbmc_project::Memory::MemoryECC::
3896 Error::isLoggingLimitReached>
3897{
3898 using type = xyz::openbmc_project::Memory::MemoryECC::isLoggingLimitReached;
3899};
3900
3901} // namespace details
3902
3903namespace xyz
3904{
3905namespace openbmc_project
3906{
3907namespace Memory
3908{
3909namespace MemoryECC
3910{
3911namespace _ceCount
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05003912{} // namespace _ceCount
Patrick Williamsdf329092021-09-08 16:05:08 -05003913
3914struct ceCount
3915{
3916 static constexpr auto L = level::ERR;
3917 using metadata_types = std::tuple<>;
3918};
3919
3920} // namespace MemoryECC
3921} // namespace Memory
3922} // namespace openbmc_project
3923} // namespace xyz
3924
3925namespace details
3926{
3927
3928template <>
3929struct map_exception_type<
3930 sdbusplus::xyz::openbmc_project::Memory::MemoryECC::Error::ceCount>
3931{
3932 using type = xyz::openbmc_project::Memory::MemoryECC::ceCount;
3933};
3934
3935} // namespace details
3936
3937namespace xyz
3938{
3939namespace openbmc_project
3940{
3941namespace Memory
3942{
3943namespace MemoryECC
3944{
3945namespace _ueCount
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05003946{} // namespace _ueCount
Patrick Williamsdf329092021-09-08 16:05:08 -05003947
3948struct ueCount
3949{
3950 static constexpr auto L = level::ERR;
3951 using metadata_types = std::tuple<>;
3952};
3953
3954} // namespace MemoryECC
3955} // namespace Memory
3956} // namespace openbmc_project
3957} // namespace xyz
3958
3959namespace details
3960{
3961
3962template <>
3963struct map_exception_type<
3964 sdbusplus::xyz::openbmc_project::Memory::MemoryECC::Error::ueCount>
3965{
3966 using type = xyz::openbmc_project::Memory::MemoryECC::ueCount;
3967};
3968
3969} // namespace details
3970
3971namespace xyz
3972{
3973namespace openbmc_project
3974{
3975namespace Nvme
3976{
3977namespace Status
3978{
3979namespace _CapacityFault
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05003980{} // namespace _CapacityFault
Patrick Williamsdf329092021-09-08 16:05:08 -05003981
3982struct CapacityFault
3983{
3984 static constexpr auto L = level::ERR;
3985 using metadata_types = std::tuple<>;
3986};
3987
3988} // namespace Status
3989} // namespace Nvme
3990} // namespace openbmc_project
3991} // namespace xyz
3992
3993namespace details
3994{
3995
3996template <>
3997struct map_exception_type<
3998 sdbusplus::xyz::openbmc_project::Nvme::Status::Error::CapacityFault>
3999{
4000 using type = xyz::openbmc_project::Nvme::Status::CapacityFault;
4001};
4002
4003} // namespace details
4004
4005namespace xyz
4006{
4007namespace openbmc_project
4008{
4009namespace Nvme
4010{
4011namespace Status
4012{
4013namespace _TemperatureFault
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004014{} // namespace _TemperatureFault
Patrick Williamsdf329092021-09-08 16:05:08 -05004015
4016struct TemperatureFault
4017{
4018 static constexpr auto L = level::ERR;
4019 using metadata_types = std::tuple<>;
4020};
4021
4022} // namespace Status
4023} // namespace Nvme
4024} // namespace openbmc_project
4025} // namespace xyz
4026
4027namespace details
4028{
4029
4030template <>
4031struct map_exception_type<
4032 sdbusplus::xyz::openbmc_project::Nvme::Status::Error::TemperatureFault>
4033{
4034 using type = xyz::openbmc_project::Nvme::Status::TemperatureFault;
4035};
4036
4037} // namespace details
4038
4039namespace xyz
4040{
4041namespace openbmc_project
4042{
4043namespace Nvme
4044{
4045namespace Status
4046{
4047namespace _DegradesFault
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004048{} // namespace _DegradesFault
Patrick Williamsdf329092021-09-08 16:05:08 -05004049
4050struct DegradesFault
4051{
4052 static constexpr auto L = level::ERR;
4053 using metadata_types = std::tuple<>;
4054};
4055
4056} // namespace Status
4057} // namespace Nvme
4058} // namespace openbmc_project
4059} // namespace xyz
4060
4061namespace details
4062{
4063
4064template <>
4065struct map_exception_type<
4066 sdbusplus::xyz::openbmc_project::Nvme::Status::Error::DegradesFault>
4067{
4068 using type = xyz::openbmc_project::Nvme::Status::DegradesFault;
4069};
4070
4071} // namespace details
4072
4073namespace xyz
4074{
4075namespace openbmc_project
4076{
4077namespace Nvme
4078{
4079namespace Status
4080{
4081namespace _MediaFault
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004082{} // namespace _MediaFault
Patrick Williamsdf329092021-09-08 16:05:08 -05004083
4084struct MediaFault
4085{
4086 static constexpr auto L = level::ERR;
4087 using metadata_types = std::tuple<>;
4088};
4089
4090} // namespace Status
4091} // namespace Nvme
4092} // namespace openbmc_project
4093} // namespace xyz
4094
4095namespace details
4096{
4097
4098template <>
4099struct map_exception_type<
4100 sdbusplus::xyz::openbmc_project::Nvme::Status::Error::MediaFault>
4101{
4102 using type = xyz::openbmc_project::Nvme::Status::MediaFault;
4103};
4104
4105} // namespace details
4106
4107namespace xyz
4108{
4109namespace openbmc_project
4110{
4111namespace Nvme
4112{
4113namespace Status
4114{
4115namespace _BackupDeviceFault
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004116{} // namespace _BackupDeviceFault
Patrick Williamsdf329092021-09-08 16:05:08 -05004117
4118struct BackupDeviceFault
4119{
4120 static constexpr auto L = level::ERR;
4121 using metadata_types = std::tuple<>;
4122};
4123
4124} // namespace Status
4125} // namespace Nvme
4126} // namespace openbmc_project
4127} // namespace xyz
4128
4129namespace details
4130{
4131
4132template <>
4133struct map_exception_type<
4134 sdbusplus::xyz::openbmc_project::Nvme::Status::Error::BackupDeviceFault>
4135{
4136 using type = xyz::openbmc_project::Nvme::Status::BackupDeviceFault;
4137};
4138
4139} // namespace details
4140
4141namespace xyz
4142{
4143namespace openbmc_project
4144{
4145namespace Sensor
4146{
4147namespace Device
4148{
4149namespace _ReadFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004150{} // namespace _ReadFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05004151
4152struct ReadFailure
4153{
4154 static constexpr auto L = level::ERR;
4155 using CALLOUT_ERRNO =
4156 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
4157 using CALLOUT_DEVICE_PATH =
4158 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
4159 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
4160};
4161
4162} // namespace Device
4163} // namespace Sensor
4164} // namespace openbmc_project
4165} // namespace xyz
4166
4167namespace details
4168{
4169
4170template <>
4171struct map_exception_type<
4172 sdbusplus::xyz::openbmc_project::Sensor::Device::Error::ReadFailure>
4173{
4174 using type = xyz::openbmc_project::Sensor::Device::ReadFailure;
4175};
4176
4177} // namespace details
4178
4179namespace xyz
4180{
4181namespace openbmc_project
4182{
4183namespace Sensor
4184{
4185namespace Threshold
4186{
4187namespace _CriticalHigh
4188{
4189
4190struct SENSOR_DATA
4191{
4192 /*
4193 * We can't use -fsanitize=undefined if we declare a
4194 * 'static constexpr auto str' member, so don't. Instead, open-code the
4195 * mako template lookups.
4196 */
4197 static constexpr auto str_short = "SENSOR_DATA";
4198 using type =
4199 std::tuple<std::decay_t<decltype("SENSOR_DATA=%s")>, const char*>;
4200 explicit constexpr SENSOR_DATA(const char* a) :
4201 _entry(entry("SENSOR_DATA=%s", a)){};
4202 type _entry;
4203};
4204
4205} // namespace _CriticalHigh
4206
4207struct CriticalHigh
4208{
4209 static constexpr auto L = level::ERR;
4210 using SENSOR_DATA = _CriticalHigh::SENSOR_DATA;
4211 using metadata_types = std::tuple<SENSOR_DATA>;
4212};
4213
4214} // namespace Threshold
4215} // namespace Sensor
4216} // namespace openbmc_project
4217} // namespace xyz
4218
4219namespace details
4220{
4221
4222template <>
4223struct map_exception_type<
4224 sdbusplus::xyz::openbmc_project::Sensor::Threshold::Error::CriticalHigh>
4225{
4226 using type = xyz::openbmc_project::Sensor::Threshold::CriticalHigh;
4227};
4228
4229} // namespace details
4230
4231namespace xyz
4232{
4233namespace openbmc_project
4234{
4235namespace Sensor
4236{
4237namespace Threshold
4238{
4239namespace _CriticalLow
4240{
4241
4242struct SENSOR_DATA
4243{
4244 /*
4245 * We can't use -fsanitize=undefined if we declare a
4246 * 'static constexpr auto str' member, so don't. Instead, open-code the
4247 * mako template lookups.
4248 */
4249 static constexpr auto str_short = "SENSOR_DATA";
4250 using type =
4251 std::tuple<std::decay_t<decltype("SENSOR_DATA=%s")>, const char*>;
4252 explicit constexpr SENSOR_DATA(const char* a) :
4253 _entry(entry("SENSOR_DATA=%s", a)){};
4254 type _entry;
4255};
4256
4257} // namespace _CriticalLow
4258
4259struct CriticalLow
4260{
4261 static constexpr auto L = level::ERR;
4262 using SENSOR_DATA = _CriticalLow::SENSOR_DATA;
4263 using metadata_types = std::tuple<SENSOR_DATA>;
4264};
4265
4266} // namespace Threshold
4267} // namespace Sensor
4268} // namespace openbmc_project
4269} // namespace xyz
4270
4271namespace details
4272{
4273
4274template <>
4275struct map_exception_type<
4276 sdbusplus::xyz::openbmc_project::Sensor::Threshold::Error::CriticalLow>
4277{
4278 using type = xyz::openbmc_project::Sensor::Threshold::CriticalLow;
4279};
4280
4281} // namespace details
4282
4283namespace xyz
4284{
4285namespace openbmc_project
4286{
4287namespace Smbios
4288{
4289namespace MDR_V2
4290{
4291namespace _InvalidParameter
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004292{} // namespace _InvalidParameter
Patrick Williamsdf329092021-09-08 16:05:08 -05004293
4294struct InvalidParameter
4295{
4296 static constexpr auto L = level::ERR;
4297 using metadata_types = std::tuple<>;
4298};
4299
4300} // namespace MDR_V2
4301} // namespace Smbios
4302} // namespace openbmc_project
4303} // namespace xyz
4304
4305namespace details
4306{
4307
4308template <>
4309struct map_exception_type<
4310 sdbusplus::xyz::openbmc_project::Smbios::MDR_V2::Error::InvalidParameter>
4311{
4312 using type = xyz::openbmc_project::Smbios::MDR_V2::InvalidParameter;
4313};
4314
4315} // namespace details
4316
4317namespace xyz
4318{
4319namespace openbmc_project
4320{
4321namespace Smbios
4322{
4323namespace MDR_V2
4324{
4325namespace _UpdateInProgress
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004326{} // namespace _UpdateInProgress
Patrick Williamsdf329092021-09-08 16:05:08 -05004327
4328struct UpdateInProgress
4329{
4330 static constexpr auto L = level::ERR;
4331 using metadata_types = std::tuple<>;
4332};
4333
4334} // namespace MDR_V2
4335} // namespace Smbios
4336} // namespace openbmc_project
4337} // namespace xyz
4338
4339namespace details
4340{
4341
4342template <>
4343struct map_exception_type<
4344 sdbusplus::xyz::openbmc_project::Smbios::MDR_V2::Error::UpdateInProgress>
4345{
4346 using type = xyz::openbmc_project::Smbios::MDR_V2::UpdateInProgress;
4347};
4348
4349} // namespace details
4350
4351namespace xyz
4352{
4353namespace openbmc_project
4354{
4355namespace Smbios
4356{
4357namespace MDR_V2
4358{
4359namespace _InvalidId
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004360{} // namespace _InvalidId
Patrick Williamsdf329092021-09-08 16:05:08 -05004361
4362struct InvalidId
4363{
4364 static constexpr auto L = level::ERR;
4365 using metadata_types = std::tuple<>;
4366};
4367
4368} // namespace MDR_V2
4369} // namespace Smbios
4370} // namespace openbmc_project
4371} // namespace xyz
4372
4373namespace details
4374{
4375
4376template <>
4377struct map_exception_type<
4378 sdbusplus::xyz::openbmc_project::Smbios::MDR_V2::Error::InvalidId>
4379{
4380 using type = xyz::openbmc_project::Smbios::MDR_V2::InvalidId;
4381};
4382
4383} // namespace details
4384
4385namespace xyz
4386{
4387namespace openbmc_project
4388{
4389namespace Software
4390{
4391namespace Version
4392{
4393namespace _Incompatible
4394{
4395
4396struct MIN_VERSION
4397{
4398 /*
4399 * We can't use -fsanitize=undefined if we declare a
4400 * 'static constexpr auto str' member, so don't. Instead, open-code the
4401 * mako template lookups.
4402 */
4403 static constexpr auto str_short = "MIN_VERSION";
4404 using type =
4405 std::tuple<std::decay_t<decltype("MIN_VERSION=%s")>, const char*>;
4406 explicit constexpr MIN_VERSION(const char* a) :
4407 _entry(entry("MIN_VERSION=%s", a)){};
4408 type _entry;
4409};
4410struct ACTUAL_VERSION
4411{
4412 /*
4413 * We can't use -fsanitize=undefined if we declare a
4414 * 'static constexpr auto str' member, so don't. Instead, open-code the
4415 * mako template lookups.
4416 */
4417 static constexpr auto str_short = "ACTUAL_VERSION";
4418 using type =
4419 std::tuple<std::decay_t<decltype("ACTUAL_VERSION=%s")>, const char*>;
4420 explicit constexpr ACTUAL_VERSION(const char* a) :
4421 _entry(entry("ACTUAL_VERSION=%s", a)){};
4422 type _entry;
4423};
4424struct VERSION_PURPOSE
4425{
4426 /*
4427 * We can't use -fsanitize=undefined if we declare a
4428 * 'static constexpr auto str' member, so don't. Instead, open-code the
4429 * mako template lookups.
4430 */
4431 static constexpr auto str_short = "VERSION_PURPOSE";
4432 using type =
4433 std::tuple<std::decay_t<decltype("VERSION_PURPOSE=%s")>, const char*>;
4434 explicit constexpr VERSION_PURPOSE(const char* a) :
4435 _entry(entry("VERSION_PURPOSE=%s", a)){};
4436 type _entry;
4437};
4438
4439} // namespace _Incompatible
4440
4441struct Incompatible
4442{
4443 static constexpr auto L = level::ERR;
4444 using MIN_VERSION = _Incompatible::MIN_VERSION;
4445 using ACTUAL_VERSION = _Incompatible::ACTUAL_VERSION;
4446 using VERSION_PURPOSE = _Incompatible::VERSION_PURPOSE;
4447 using metadata_types =
4448 std::tuple<MIN_VERSION, ACTUAL_VERSION, VERSION_PURPOSE>;
4449};
4450
4451} // namespace Version
4452} // namespace Software
4453} // namespace openbmc_project
4454} // namespace xyz
4455
4456namespace details
4457{
4458
4459template <>
4460struct map_exception_type<
4461 sdbusplus::xyz::openbmc_project::Software::Version::Error::Incompatible>
4462{
4463 using type = xyz::openbmc_project::Software::Version::Incompatible;
4464};
4465
4466} // namespace details
4467
4468namespace xyz
4469{
4470namespace openbmc_project
4471{
4472namespace Software
4473{
4474namespace Version
4475{
4476namespace _AlreadyExists
4477{
4478
4479struct IMAGE_VERSION
4480{
4481 /*
4482 * We can't use -fsanitize=undefined if we declare a
4483 * 'static constexpr auto str' member, so don't. Instead, open-code the
4484 * mako template lookups.
4485 */
4486 static constexpr auto str_short = "IMAGE_VERSION";
4487 using type =
4488 std::tuple<std::decay_t<decltype("IMAGE_VERSION=%s")>, const char*>;
4489 explicit constexpr IMAGE_VERSION(const char* a) :
4490 _entry(entry("IMAGE_VERSION=%s", a)){};
4491 type _entry;
4492};
4493
4494} // namespace _AlreadyExists
4495
4496struct AlreadyExists
4497{
4498 static constexpr auto L = level::ERR;
4499 using IMAGE_VERSION = _AlreadyExists::IMAGE_VERSION;
4500 using metadata_types = std::tuple<IMAGE_VERSION>;
4501};
4502
4503} // namespace Version
4504} // namespace Software
4505} // namespace openbmc_project
4506} // namespace xyz
4507
4508namespace details
4509{
4510
4511template <>
4512struct map_exception_type<
4513 sdbusplus::xyz::openbmc_project::Software::Version::Error::AlreadyExists>
4514{
4515 using type = xyz::openbmc_project::Software::Version::AlreadyExists;
4516};
4517
4518} // namespace details
4519
4520namespace xyz
4521{
4522namespace openbmc_project
4523{
4524namespace State
4525{
4526namespace Host
4527{
4528namespace _SoftOffTimeout
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004529{} // namespace _SoftOffTimeout
Patrick Williamsdf329092021-09-08 16:05:08 -05004530
4531struct SoftOffTimeout
4532{
4533 static constexpr auto L = level::ERR;
4534 using TIMEOUT_IN_MSEC =
4535 xyz::openbmc_project::Common::Timeout::TIMEOUT_IN_MSEC;
4536 using metadata_types = std::tuple<TIMEOUT_IN_MSEC>;
4537};
4538
4539} // namespace Host
4540} // namespace State
4541} // namespace openbmc_project
4542} // namespace xyz
4543
4544namespace details
4545{
4546
4547template <>
4548struct map_exception_type<
4549 sdbusplus::xyz::openbmc_project::State::Host::Error::SoftOffTimeout>
4550{
4551 using type = xyz::openbmc_project::State::Host::SoftOffTimeout;
4552};
4553
4554} // namespace details
4555
4556namespace xyz
4557{
4558namespace openbmc_project
4559{
4560namespace State
4561{
4562namespace SystemdTarget
4563{
4564namespace _Failure
4565{
4566
4567struct SYSTEMD_RESULT
4568{
4569 /*
4570 * We can't use -fsanitize=undefined if we declare a
4571 * 'static constexpr auto str' member, so don't. Instead, open-code the
4572 * mako template lookups.
4573 */
4574 static constexpr auto str_short = "SYSTEMD_RESULT";
4575 using type =
4576 std::tuple<std::decay_t<decltype("SYSTEMD_RESULT=%s")>, const char*>;
4577 explicit constexpr SYSTEMD_RESULT(const char* a) :
4578 _entry(entry("SYSTEMD_RESULT=%s", a)){};
4579 type _entry;
4580};
4581
4582} // namespace _Failure
4583
4584struct Failure
4585{
4586 static constexpr auto L = level::ERR;
4587 using SYSTEMD_RESULT = _Failure::SYSTEMD_RESULT;
4588 using metadata_types = std::tuple<SYSTEMD_RESULT>;
4589};
4590
4591} // namespace SystemdTarget
4592} // namespace State
4593} // namespace openbmc_project
4594} // namespace xyz
4595
4596namespace details
4597{
4598
4599template <>
4600struct map_exception_type<
4601 sdbusplus::xyz::openbmc_project::State::SystemdTarget::Error::Failure>
4602{
4603 using type = xyz::openbmc_project::State::SystemdTarget::Failure;
4604};
4605
4606} // namespace details
4607
4608namespace xyz
4609{
4610namespace openbmc_project
4611{
4612namespace State
4613{
4614namespace Shutdown
4615{
4616namespace Inventory
4617{
4618namespace _Fan
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004619{} // namespace _Fan
Patrick Williamsdf329092021-09-08 16:05:08 -05004620
4621struct Fan
4622{
4623 static constexpr auto L = level::ERR;
4624 using metadata_types = std::tuple<>;
4625};
4626
4627} // namespace Inventory
4628} // namespace Shutdown
4629} // namespace State
4630} // namespace openbmc_project
4631} // namespace xyz
4632
4633namespace details
4634{
4635
4636template <>
4637struct map_exception_type<
4638 sdbusplus::xyz::openbmc_project::State::Shutdown::Inventory::Error::Fan>
4639{
4640 using type = xyz::openbmc_project::State::Shutdown::Inventory::Fan;
4641};
4642
4643} // namespace details
4644
4645namespace xyz
4646{
4647namespace openbmc_project
4648{
4649namespace State
4650{
4651namespace Shutdown
4652{
4653namespace ThermalEvent
4654{
4655namespace _Processor
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004656{} // namespace _Processor
Patrick Williamsdf329092021-09-08 16:05:08 -05004657
4658struct Processor
4659{
4660 static constexpr auto L = level::ERR;
4661 using metadata_types = std::tuple<>;
4662};
4663
4664} // namespace ThermalEvent
4665} // namespace Shutdown
4666} // namespace State
4667} // namespace openbmc_project
4668} // namespace xyz
4669
4670namespace details
4671{
4672
4673template <>
4674struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Shutdown::
4675 ThermalEvent::Error::Processor>
4676{
4677 using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::Processor;
4678};
4679
4680} // namespace details
4681
4682namespace xyz
4683{
4684namespace openbmc_project
4685{
4686namespace State
4687{
4688namespace Shutdown
4689{
4690namespace ThermalEvent
4691{
4692namespace _GPU
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004693{} // namespace _GPU
Patrick Williamsdf329092021-09-08 16:05:08 -05004694
4695struct GPU
4696{
4697 static constexpr auto L = level::ERR;
4698 using metadata_types = std::tuple<>;
4699};
4700
4701} // namespace ThermalEvent
4702} // namespace Shutdown
4703} // namespace State
4704} // namespace openbmc_project
4705} // namespace xyz
4706
4707namespace details
4708{
4709
4710template <>
4711struct map_exception_type<
4712 sdbusplus::xyz::openbmc_project::State::Shutdown::ThermalEvent::Error::GPU>
4713{
4714 using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::GPU;
4715};
4716
4717} // namespace details
4718
4719namespace xyz
4720{
4721namespace openbmc_project
4722{
4723namespace State
4724{
4725namespace Shutdown
4726{
4727namespace ThermalEvent
4728{
4729namespace _Ambient
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004730{} // namespace _Ambient
Patrick Williamsdf329092021-09-08 16:05:08 -05004731
4732struct Ambient
4733{
4734 static constexpr auto L = level::ERR;
4735 using metadata_types = std::tuple<>;
4736};
4737
4738} // namespace ThermalEvent
4739} // namespace Shutdown
4740} // namespace State
4741} // namespace openbmc_project
4742} // namespace xyz
4743
4744namespace details
4745{
4746
4747template <>
4748struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Shutdown::
4749 ThermalEvent::Error::Ambient>
4750{
4751 using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::Ambient;
4752};
4753
4754} // namespace details
4755
4756namespace xyz
4757{
4758namespace openbmc_project
4759{
4760namespace State
4761{
4762namespace Shutdown
4763{
4764namespace Power
4765{
4766namespace _Fault
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004767{} // namespace _Fault
Patrick Williamsdf329092021-09-08 16:05:08 -05004768
4769struct Fault
4770{
4771 static constexpr auto L = level::ERR;
4772 using metadata_types = std::tuple<>;
4773};
4774
4775} // namespace Power
4776} // namespace Shutdown
4777} // namespace State
4778} // namespace openbmc_project
4779} // namespace xyz
4780
4781namespace details
4782{
4783
4784template <>
4785struct map_exception_type<
4786 sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Fault>
4787{
4788 using type = xyz::openbmc_project::State::Shutdown::Power::Fault;
4789};
4790
4791} // namespace details
4792
4793namespace xyz
4794{
4795namespace openbmc_project
4796{
4797namespace State
4798{
4799namespace Shutdown
4800{
4801namespace Power
4802{
4803namespace _Blackout
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004804{} // namespace _Blackout
Patrick Williamsdf329092021-09-08 16:05:08 -05004805
4806struct Blackout
4807{
4808 static constexpr auto L = level::ERR;
4809 using metadata_types = std::tuple<>;
4810};
4811
4812} // namespace Power
4813} // namespace Shutdown
4814} // namespace State
4815} // namespace openbmc_project
4816} // namespace xyz
4817
4818namespace details
4819{
4820
4821template <>
4822struct map_exception_type<
4823 sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Blackout>
4824{
4825 using type = xyz::openbmc_project::State::Shutdown::Power::Blackout;
4826};
4827
4828} // namespace details
4829
4830namespace xyz
4831{
4832namespace openbmc_project
4833{
4834namespace State
4835{
4836namespace Shutdown
4837{
4838namespace Power
4839{
4840namespace _Regulator
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004841{} // namespace _Regulator
Patrick Williamsdf329092021-09-08 16:05:08 -05004842
4843struct Regulator
4844{
4845 static constexpr auto L = level::ERR;
4846 using metadata_types = std::tuple<>;
4847};
4848
4849} // namespace Power
4850} // namespace Shutdown
4851} // namespace State
4852} // namespace openbmc_project
4853} // namespace xyz
4854
4855namespace details
4856{
4857
4858template <>
4859struct map_exception_type<
4860 sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Regulator>
4861{
4862 using type = xyz::openbmc_project::State::Shutdown::Power::Regulator;
4863};
4864
4865} // namespace details
4866
4867namespace xyz
4868{
4869namespace openbmc_project
4870{
4871namespace User
4872{
4873namespace Common
4874{
4875namespace _UserNameExists
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004876{} // namespace _UserNameExists
Patrick Williamsdf329092021-09-08 16:05:08 -05004877
4878struct UserNameExists
4879{
4880 static constexpr auto L = level::ERR;
4881 using metadata_types = std::tuple<>;
4882};
4883
4884} // namespace Common
4885} // namespace User
4886} // namespace openbmc_project
4887} // namespace xyz
4888
4889namespace details
4890{
4891
4892template <>
4893struct map_exception_type<
4894 sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameExists>
4895{
4896 using type = xyz::openbmc_project::User::Common::UserNameExists;
4897};
4898
4899} // namespace details
4900
4901namespace xyz
4902{
4903namespace openbmc_project
4904{
4905namespace User
4906{
4907namespace Common
4908{
4909namespace _UserNameDoesNotExist
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05004910{} // namespace _UserNameDoesNotExist
Patrick Williamsdf329092021-09-08 16:05:08 -05004911
4912struct UserNameDoesNotExist
4913{
4914 static constexpr auto L = level::ERR;
4915 using metadata_types = std::tuple<>;
4916};
4917
4918} // namespace Common
4919} // namespace User
4920} // namespace openbmc_project
4921} // namespace xyz
4922
4923namespace details
4924{
4925
4926template <>
4927struct map_exception_type<
4928 sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameDoesNotExist>
4929{
4930 using type = xyz::openbmc_project::User::Common::UserNameDoesNotExist;
4931};
4932
4933} // namespace details
4934
4935namespace xyz
4936{
4937namespace openbmc_project
4938{
4939namespace User
4940{
4941namespace Common
4942{
4943namespace _UserNameGroupFail
4944{
4945
4946struct REASON
4947{
4948 /*
4949 * We can't use -fsanitize=undefined if we declare a
4950 * 'static constexpr auto str' member, so don't. Instead, open-code the
4951 * mako template lookups.
4952 */
4953 static constexpr auto str_short = "REASON ";
4954 using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>;
4955 explicit constexpr REASON(const char* a) :
4956 _entry(entry("REASON = %s", a)){};
4957 type _entry;
4958};
4959
4960} // namespace _UserNameGroupFail
4961
4962struct UserNameGroupFail
4963{
4964 static constexpr auto L = level::ERR;
4965 using REASON = _UserNameGroupFail::REASON;
4966 using metadata_types = std::tuple<REASON>;
4967};
4968
4969} // namespace Common
4970} // namespace User
4971} // namespace openbmc_project
4972} // namespace xyz
4973
4974namespace details
4975{
4976
4977template <>
4978struct map_exception_type<
4979 sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameGroupFail>
4980{
4981 using type = xyz::openbmc_project::User::Common::UserNameGroupFail;
4982};
4983
4984} // namespace details
4985
4986namespace xyz
4987{
4988namespace openbmc_project
4989{
4990namespace User
4991{
4992namespace Common
4993{
4994namespace _UserNamePrivFail
4995{
4996
4997struct REASON
4998{
4999 /*
5000 * We can't use -fsanitize=undefined if we declare a
5001 * 'static constexpr auto str' member, so don't. Instead, open-code the
5002 * mako template lookups.
5003 */
5004 static constexpr auto str_short = "REASON ";
5005 using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>;
5006 explicit constexpr REASON(const char* a) :
5007 _entry(entry("REASON = %s", a)){};
5008 type _entry;
5009};
5010
5011} // namespace _UserNamePrivFail
5012
5013struct UserNamePrivFail
5014{
5015 static constexpr auto L = level::ERR;
5016 using REASON = _UserNamePrivFail::REASON;
5017 using metadata_types = std::tuple<REASON>;
5018};
5019
5020} // namespace Common
5021} // namespace User
5022} // namespace openbmc_project
5023} // namespace xyz
5024
5025namespace details
5026{
5027
5028template <>
5029struct map_exception_type<
5030 sdbusplus::xyz::openbmc_project::User::Common::Error::UserNamePrivFail>
5031{
5032 using type = xyz::openbmc_project::User::Common::UserNamePrivFail;
5033};
5034
5035} // namespace details
5036
5037namespace xyz
5038{
5039namespace openbmc_project
5040{
5041namespace User
5042{
5043namespace Common
5044{
5045namespace _NoResource
5046{
5047
5048struct REASON
5049{
5050 /*
5051 * We can't use -fsanitize=undefined if we declare a
5052 * 'static constexpr auto str' member, so don't. Instead, open-code the
5053 * mako template lookups.
5054 */
5055 static constexpr auto str_short = "REASON ";
5056 using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>;
5057 explicit constexpr REASON(const char* a) :
5058 _entry(entry("REASON = %s", a)){};
5059 type _entry;
5060};
5061
5062} // namespace _NoResource
5063
5064struct NoResource
5065{
5066 static constexpr auto L = level::ERR;
5067 using REASON = _NoResource::REASON;
5068 using metadata_types = std::tuple<REASON>;
5069};
5070
5071} // namespace Common
5072} // namespace User
5073} // namespace openbmc_project
5074} // namespace xyz
5075
5076namespace details
5077{
5078
5079template <>
5080struct map_exception_type<
5081 sdbusplus::xyz::openbmc_project::User::Common::Error::NoResource>
5082{
5083 using type = xyz::openbmc_project::User::Common::NoResource;
5084};
5085
5086} // namespace details
5087
5088namespace xyz
5089{
5090namespace openbmc_project
5091{
5092namespace User
5093{
5094namespace Common
5095{
5096namespace _PrivilegeMappingExists
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05005097{} // namespace _PrivilegeMappingExists
Patrick Williamsdf329092021-09-08 16:05:08 -05005098
5099struct PrivilegeMappingExists
5100{
5101 static constexpr auto L = level::ERR;
5102 using metadata_types = std::tuple<>;
5103};
5104
5105} // namespace Common
5106} // namespace User
5107} // namespace openbmc_project
5108} // namespace xyz
5109
5110namespace details
5111{
5112
5113template <>
5114struct map_exception_type<sdbusplus::xyz::openbmc_project::User::Common::Error::
5115 PrivilegeMappingExists>
5116{
5117 using type = xyz::openbmc_project::User::Common::PrivilegeMappingExists;
5118};
5119
5120} // namespace details
5121
5122namespace example
5123{
5124namespace xyz
5125{
5126namespace openbmc_project
5127{
5128namespace Example
5129{
5130namespace Device
5131{
5132namespace _Callout
5133{
5134
5135struct CALLOUT_ERRNO_TEST
5136{
5137 /*
5138 * We can't use -fsanitize=undefined if we declare a
5139 * 'static constexpr auto str' member, so don't. Instead, open-code the
5140 * mako template lookups.
5141 */
5142 static constexpr auto str_short = "CALLOUT_ERRNO_TEST";
5143 using type =
5144 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO_TEST=%d")>, int32_t>;
5145 explicit constexpr CALLOUT_ERRNO_TEST(int32_t a) :
5146 _entry(entry("CALLOUT_ERRNO_TEST=%d", a)){};
5147 type _entry;
5148};
5149struct CALLOUT_DEVICE_PATH_TEST
5150{
5151 /*
5152 * We can't use -fsanitize=undefined if we declare a
5153 * 'static constexpr auto str' member, so don't. Instead, open-code the
5154 * mako template lookups.
5155 */
5156 static constexpr auto str_short = "CALLOUT_DEVICE_PATH_TEST";
5157 using type =
5158 std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH_TEST=%s")>,
5159 const char*>;
5160 explicit constexpr CALLOUT_DEVICE_PATH_TEST(const char* a) :
5161 _entry(entry("CALLOUT_DEVICE_PATH_TEST=%s", a)){};
5162 type _entry;
5163};
5164
5165} // namespace _Callout
5166
5167struct Callout : public sdbusplus::exception_t
5168{
5169 static constexpr auto errName =
5170 "example.xyz.openbmc_project.Example.Device.Callout";
5171 static constexpr auto errDesc = "Generic device callout";
5172 static constexpr auto L = level::ERR;
5173 using CALLOUT_ERRNO_TEST = _Callout::CALLOUT_ERRNO_TEST;
5174 using CALLOUT_DEVICE_PATH_TEST = _Callout::CALLOUT_DEVICE_PATH_TEST;
5175 using metadata_types =
5176 std::tuple<CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>;
5177
5178 const char* name() const noexcept override
5179 {
5180 return errName;
5181 }
5182
5183 const char* description() const noexcept override
5184 {
5185 return errDesc;
5186 }
5187
5188 const char* what() const noexcept override
5189 {
5190 return errName;
5191 }
5192
5193 int get_errno() const noexcept override
5194 {
5195 return EIO;
5196 }
5197};
5198
5199} // namespace Device
5200} // namespace Example
5201} // namespace openbmc_project
5202} // namespace xyz
5203} // namespace example
5204
5205namespace example
5206{
5207namespace xyz
5208{
5209namespace openbmc_project
5210{
5211namespace Example
5212{
5213namespace Elog
5214{
5215namespace _TestErrorTwo
5216{
5217
5218struct DEV_ADDR
5219{
5220 /*
5221 * We can't use -fsanitize=undefined if we declare a
5222 * 'static constexpr auto str' member, so don't. Instead, open-code the
5223 * mako template lookups.
5224 */
5225 static constexpr auto str_short = "DEV_ADDR";
5226 using type =
5227 std::tuple<std::decay_t<decltype("DEV_ADDR=0x%.8X")>, uint32_t>;
5228 explicit constexpr DEV_ADDR(uint32_t a) :
5229 _entry(entry("DEV_ADDR=0x%.8X", a)){};
5230 type _entry;
5231};
5232struct DEV_ID
5233{
5234 /*
5235 * We can't use -fsanitize=undefined if we declare a
5236 * 'static constexpr auto str' member, so don't. Instead, open-code the
5237 * mako template lookups.
5238 */
5239 static constexpr auto str_short = "DEV_ID";
5240 using type = std::tuple<std::decay_t<decltype("DEV_ID=%u")>, uint32_t>;
5241 explicit constexpr DEV_ID(uint32_t a) : _entry(entry("DEV_ID=%u", a)){};
5242 type _entry;
5243};
5244struct DEV_NAME
5245{
5246 /*
5247 * We can't use -fsanitize=undefined if we declare a
5248 * 'static constexpr auto str' member, so don't. Instead, open-code the
5249 * mako template lookups.
5250 */
5251 static constexpr auto str_short = "DEV_NAME";
5252 using type = std::tuple<std::decay_t<decltype("DEV_NAME=%s")>, const char*>;
5253 explicit constexpr DEV_NAME(const char* a) :
5254 _entry(entry("DEV_NAME=%s", a)){};
5255 type _entry;
5256};
5257
5258} // namespace _TestErrorTwo
5259
5260struct TestErrorTwo : public sdbusplus::exception_t
5261{
5262 static constexpr auto errName =
5263 "example.xyz.openbmc_project.Example.Elog.TestErrorTwo";
5264 static constexpr auto errDesc = "This is test error two";
5265 static constexpr auto L = level::ERR;
5266 using DEV_ADDR = _TestErrorTwo::DEV_ADDR;
5267 using DEV_ID = _TestErrorTwo::DEV_ID;
5268 using DEV_NAME = _TestErrorTwo::DEV_NAME;
5269 using metadata_types = std::tuple<DEV_ADDR, DEV_ID, DEV_NAME>;
5270
5271 const char* name() const noexcept override
5272 {
5273 return errName;
5274 }
5275
5276 const char* description() const noexcept override
5277 {
5278 return errDesc;
5279 }
5280
5281 const char* what() const noexcept override
5282 {
5283 return errName;
5284 }
5285
5286 int get_errno() const noexcept override
5287 {
5288 return EIO;
5289 }
5290};
5291
5292} // namespace Elog
5293} // namespace Example
5294} // namespace openbmc_project
5295} // namespace xyz
5296} // namespace example
5297
5298namespace example
5299{
5300namespace xyz
5301{
5302namespace openbmc_project
5303{
5304namespace Example
5305{
5306namespace Elog
5307{
5308namespace _AutoTestSimple
5309{
5310
5311struct STRING
5312{
5313 /*
5314 * We can't use -fsanitize=undefined if we declare a
5315 * 'static constexpr auto str' member, so don't. Instead, open-code the
5316 * mako template lookups.
5317 */
5318 static constexpr auto str_short = "STRING";
5319 using type = std::tuple<std::decay_t<decltype("STRING=%s")>, const char*>;
5320 explicit constexpr STRING(const char* a) : _entry(entry("STRING=%s", a)){};
5321 type _entry;
5322};
5323
5324} // namespace _AutoTestSimple
5325
5326struct AutoTestSimple : public sdbusplus::exception_t
5327{
5328 static constexpr auto errName =
5329 "example.xyz.openbmc_project.Example.Elog.AutoTestSimple";
5330 static constexpr auto errDesc = "This is a simple test error.";
5331 static constexpr auto L = level::ERR;
5332 using STRING = _AutoTestSimple::STRING;
5333 using metadata_types = std::tuple<STRING>;
5334
5335 const char* name() const noexcept override
5336 {
5337 return errName;
5338 }
5339
5340 const char* description() const noexcept override
5341 {
5342 return errDesc;
5343 }
5344
5345 const char* what() const noexcept override
5346 {
5347 return errName;
5348 }
5349
5350 int get_errno() const noexcept override
5351 {
5352 return EIO;
5353 }
5354};
5355
5356} // namespace Elog
5357} // namespace Example
5358} // namespace openbmc_project
5359} // namespace xyz
5360} // namespace example
5361
5362namespace example
5363{
5364namespace xyz
5365{
5366namespace openbmc_project
5367{
5368namespace Example
5369{
5370namespace Elog
5371{
5372namespace _TestCallout
5373{
5374
5375struct DEV_ADDR
5376{
5377 /*
5378 * We can't use -fsanitize=undefined if we declare a
5379 * 'static constexpr auto str' member, so don't. Instead, open-code the
5380 * mako template lookups.
5381 */
5382 static constexpr auto str_short = "DEV_ADDR";
5383 using type =
5384 std::tuple<std::decay_t<decltype("DEV_ADDR=0x%.8X")>, uint32_t>;
5385 explicit constexpr DEV_ADDR(uint32_t a) :
5386 _entry(entry("DEV_ADDR=0x%.8X", a)){};
5387 type _entry;
5388};
5389
5390} // namespace _TestCallout
5391
5392struct TestCallout : public sdbusplus::exception_t
5393{
5394 static constexpr auto errName =
5395 "example.xyz.openbmc_project.Example.Elog.TestCallout";
5396 static constexpr auto errDesc = "This is test error TestCallout";
5397 static constexpr auto L = level::ERR;
5398 using DEV_ADDR = _TestCallout::DEV_ADDR;
5399 using CALLOUT_ERRNO_TEST = example::xyz::openbmc_project::Example::Device::
5400 Callout::CALLOUT_ERRNO_TEST;
5401 using CALLOUT_DEVICE_PATH_TEST = example::xyz::openbmc_project::Example::
5402 Device::Callout::CALLOUT_DEVICE_PATH_TEST;
5403 using metadata_types =
5404 std::tuple<DEV_ADDR, CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>;
5405
5406 const char* name() const noexcept override
5407 {
5408 return errName;
5409 }
5410
5411 const char* description() const noexcept override
5412 {
5413 return errDesc;
5414 }
5415
5416 const char* what() const noexcept override
5417 {
5418 return errName;
5419 }
5420
5421 int get_errno() const noexcept override
5422 {
5423 return EIO;
5424 }
5425};
5426
5427} // namespace Elog
5428} // namespace Example
5429} // namespace openbmc_project
5430} // namespace xyz
5431} // namespace example
5432
5433namespace org
5434{
5435namespace open_power
5436{
5437namespace Host
5438{
5439namespace _Event
5440{
5441
5442struct ESEL
5443{
5444 /*
5445 * We can't use -fsanitize=undefined if we declare a
5446 * 'static constexpr auto str' member, so don't. Instead, open-code the
5447 * mako template lookups.
5448 */
5449 static constexpr auto str_short = "ESEL";
5450 using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
5451 explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){};
5452 type _entry;
5453};
5454
5455} // namespace _Event
5456
5457struct Event
5458{
5459 static constexpr auto L = level::ERR;
5460 using ESEL = _Event::ESEL;
5461 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
5462 Inventory::CALLOUT_INVENTORY_PATH;
5463 using metadata_types = std::tuple<ESEL, CALLOUT_INVENTORY_PATH>;
5464};
5465
5466} // namespace Host
5467} // namespace open_power
5468} // namespace org
5469
5470namespace details
5471{
5472
5473template <>
5474struct map_exception_type<sdbusplus::org::open_power::Host::Error::Event>
5475{
5476 using type = org::open_power::Host::Event;
5477};
5478
5479} // namespace details
5480
5481namespace org
5482{
5483namespace open_power
5484{
5485namespace Host
5486{
5487namespace _MaintenanceProcedure
5488{
5489
5490struct ESEL
5491{
5492 /*
5493 * We can't use -fsanitize=undefined if we declare a
5494 * 'static constexpr auto str' member, so don't. Instead, open-code the
5495 * mako template lookups.
5496 */
5497 static constexpr auto str_short = "ESEL";
5498 using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
5499 explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){};
5500 type _entry;
5501};
5502
5503} // namespace _MaintenanceProcedure
5504
5505struct MaintenanceProcedure
5506{
5507 static constexpr auto L = level::ERR;
5508 using ESEL = _MaintenanceProcedure::ESEL;
5509 using PROCEDURE = org::open_power::Common::Callout::Procedure::PROCEDURE;
5510 using metadata_types = std::tuple<ESEL, PROCEDURE>;
5511};
5512
5513} // namespace Host
5514} // namespace open_power
5515} // namespace org
5516
5517namespace details
5518{
5519
5520template <>
5521struct map_exception_type<
5522 sdbusplus::org::open_power::Host::Error::MaintenanceProcedure>
5523{
5524 using type = org::open_power::Host::MaintenanceProcedure;
5525};
5526
5527} // namespace details
5528
5529namespace org
5530{
5531namespace open_power
5532{
5533namespace Host
5534{
5535namespace Access
5536{
5537namespace _WriteCFAM
5538{
5539
5540struct ADDRESS
5541{
5542 /*
5543 * We can't use -fsanitize=undefined if we declare a
5544 * 'static constexpr auto str' member, so don't. Instead, open-code the
5545 * mako template lookups.
5546 */
5547 static constexpr auto str_short = "ADDRESS";
5548 using type = std::tuple<std::decay_t<decltype("ADDRESS=0x%X")>, uint32_t>;
5549 explicit constexpr ADDRESS(uint32_t a) : _entry(entry("ADDRESS=0x%X", a)){};
5550 type _entry;
5551};
5552
5553} // namespace _WriteCFAM
5554
5555struct WriteCFAM
5556{
5557 static constexpr auto L = level::ERR;
5558 using ADDRESS = _WriteCFAM::ADDRESS;
5559 using CALLOUT_ERRNO =
5560 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
5561 using CALLOUT_DEVICE_PATH =
5562 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
5563 using metadata_types =
5564 std::tuple<ADDRESS, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
5565};
5566
5567} // namespace Access
5568} // namespace Host
5569} // namespace open_power
5570} // namespace org
5571
5572namespace details
5573{
5574
5575template <>
5576struct map_exception_type<
5577 sdbusplus::org::open_power::Host::Access::Error::WriteCFAM>
5578{
5579 using type = org::open_power::Host::Access::WriteCFAM;
5580};
5581
5582} // namespace details
5583
5584namespace org
5585{
5586namespace open_power
5587{
5588namespace Host
5589{
5590namespace Access
5591{
5592namespace _ReadCFAM
5593{
5594
5595struct ADDRESS
5596{
5597 /*
5598 * We can't use -fsanitize=undefined if we declare a
5599 * 'static constexpr auto str' member, so don't. Instead, open-code the
5600 * mako template lookups.
5601 */
5602 static constexpr auto str_short = "ADDRESS";
5603 using type = std::tuple<std::decay_t<decltype("ADDRESS=0x%X")>, uint32_t>;
5604 explicit constexpr ADDRESS(uint32_t a) : _entry(entry("ADDRESS=0x%X", a)){};
5605 type _entry;
5606};
5607
5608} // namespace _ReadCFAM
5609
5610struct ReadCFAM
5611{
5612 static constexpr auto L = level::ERR;
5613 using ADDRESS = _ReadCFAM::ADDRESS;
5614 using CALLOUT_ERRNO =
5615 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
5616 using CALLOUT_DEVICE_PATH =
5617 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
5618 using metadata_types =
5619 std::tuple<ADDRESS, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
5620};
5621
5622} // namespace Access
5623} // namespace Host
5624} // namespace open_power
5625} // namespace org
5626
5627namespace details
5628{
5629
5630template <>
5631struct map_exception_type<
5632 sdbusplus::org::open_power::Host::Access::Error::ReadCFAM>
5633{
5634 using type = org::open_power::Host::Access::ReadCFAM;
5635};
5636
5637} // namespace details
5638
5639namespace org
5640{
5641namespace open_power
5642{
5643namespace Proc
5644{
5645namespace FSI
5646{
5647namespace _MasterDetectionFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05005648{} // namespace _MasterDetectionFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05005649
5650struct MasterDetectionFailure
5651{
5652 static constexpr auto L = level::ERR;
5653 using CALLOUT_ERRNO =
5654 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
5655 using CALLOUT_DEVICE_PATH =
5656 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
5657 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
5658};
5659
5660} // namespace FSI
5661} // namespace Proc
5662} // namespace open_power
5663} // namespace org
5664
5665namespace details
5666{
5667
5668template <>
5669struct map_exception_type<
5670 sdbusplus::org::open_power::Proc::FSI::Error::MasterDetectionFailure>
5671{
5672 using type = org::open_power::Proc::FSI::MasterDetectionFailure;
5673};
5674
5675} // namespace details
5676
5677namespace xyz
5678{
5679namespace openbmc_project
5680{
5681namespace Inventory
5682{
5683namespace _NotPresent
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05005684{} // namespace _NotPresent
Patrick Williamsdf329092021-09-08 16:05:08 -05005685
5686struct NotPresent
5687{
5688 static constexpr auto L = level::ERR;
5689 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
5690 Inventory::CALLOUT_INVENTORY_PATH;
5691 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
5692};
5693
5694} // namespace Inventory
5695} // namespace openbmc_project
5696} // namespace xyz
5697
5698namespace details
5699{
5700
5701template <>
5702struct map_exception_type<
5703 sdbusplus::xyz::openbmc_project::Inventory::Error::NotPresent>
5704{
5705 using type = xyz::openbmc_project::Inventory::NotPresent;
5706};
5707
5708} // namespace details
5709
5710namespace xyz
5711{
5712namespace openbmc_project
5713{
5714namespace Inventory
5715{
5716namespace _Nonfunctional
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05005717{} // namespace _Nonfunctional
Patrick Williamsdf329092021-09-08 16:05:08 -05005718
5719struct Nonfunctional
5720{
5721 static constexpr auto L = level::ERR;
5722 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
5723 Inventory::CALLOUT_INVENTORY_PATH;
5724 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
5725};
5726
5727} // namespace Inventory
5728} // namespace openbmc_project
5729} // namespace xyz
5730
5731namespace details
5732{
5733
5734template <>
5735struct map_exception_type<
5736 sdbusplus::xyz::openbmc_project::Inventory::Error::Nonfunctional>
5737{
5738 using type = xyz::openbmc_project::Inventory::Nonfunctional;
5739};
5740
5741} // namespace details
5742
5743namespace xyz
5744{
5745namespace openbmc_project
5746{
5747namespace Time
5748{
5749namespace _NotAllowed
5750{
5751
5752struct OWNER
5753{
5754 /*
5755 * We can't use -fsanitize=undefined if we declare a
5756 * 'static constexpr auto str' member, so don't. Instead, open-code the
5757 * mako template lookups.
5758 */
5759 static constexpr auto str_short = "OWNER";
5760 using type = std::tuple<std::decay_t<decltype("OWNER=%s")>, const char*>;
5761 explicit constexpr OWNER(const char* a) : _entry(entry("OWNER=%s", a)){};
5762 type _entry;
5763};
5764struct SYNC_METHOD
5765{
5766 /*
5767 * We can't use -fsanitize=undefined if we declare a
5768 * 'static constexpr auto str' member, so don't. Instead, open-code the
5769 * mako template lookups.
5770 */
5771 static constexpr auto str_short = "SYNC_METHOD";
5772 using type =
5773 std::tuple<std::decay_t<decltype("SYNC_METHOD=%s")>, const char*>;
5774 explicit constexpr SYNC_METHOD(const char* a) :
5775 _entry(entry("SYNC_METHOD=%s", a)){};
5776 type _entry;
5777};
5778
5779} // namespace _NotAllowed
5780
5781struct NotAllowed
5782{
5783 static constexpr auto L = level::ERR;
5784 using OWNER = _NotAllowed::OWNER;
5785 using SYNC_METHOD = _NotAllowed::SYNC_METHOD;
5786 using REASON = xyz::openbmc_project::Common::NotAllowed::REASON;
5787 using metadata_types = std::tuple<OWNER, SYNC_METHOD, REASON>;
5788};
5789
5790} // namespace Time
5791} // namespace openbmc_project
5792} // namespace xyz
5793
5794namespace details
5795{
5796
5797template <>
5798struct map_exception_type<
5799 sdbusplus::xyz::openbmc_project::Time::Error::NotAllowed>
5800{
5801 using type = xyz::openbmc_project::Time::NotAllowed;
5802};
5803
5804} // namespace details
5805
5806namespace xyz
5807{
5808namespace openbmc_project
5809{
5810namespace Time
5811{
5812namespace _Failed
5813{
5814
5815struct REASON
5816{
5817 /*
5818 * We can't use -fsanitize=undefined if we declare a
5819 * 'static constexpr auto str' member, so don't. Instead, open-code the
5820 * mako template lookups.
5821 */
5822 static constexpr auto str_short = "REASON";
5823 using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>;
5824 explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){};
5825 type _entry;
5826};
5827
5828} // namespace _Failed
5829
5830struct Failed
5831{
5832 static constexpr auto L = level::ERR;
5833 using REASON = _Failed::REASON;
5834 using metadata_types = std::tuple<REASON>;
5835};
5836
5837} // namespace Time
5838} // namespace openbmc_project
5839} // namespace xyz
5840
5841namespace details
5842{
5843
5844template <>
5845struct map_exception_type<sdbusplus::xyz::openbmc_project::Time::Error::Failed>
5846{
5847 using type = xyz::openbmc_project::Time::Failed;
5848};
5849
5850} // namespace details
5851
5852namespace xyz
5853{
5854namespace openbmc_project
5855{
5856namespace State
5857{
5858namespace BMC
5859{
5860namespace _MultiUserTargetFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05005861{} // namespace _MultiUserTargetFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05005862
5863struct MultiUserTargetFailure
5864{
5865 static constexpr auto L = level::ERR;
5866 using SYSTEMD_RESULT =
5867 xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT;
5868 using metadata_types = std::tuple<SYSTEMD_RESULT>;
5869};
5870
5871} // namespace BMC
5872} // namespace State
5873} // namespace openbmc_project
5874} // namespace xyz
5875
5876namespace details
5877{
5878
5879template <>
5880struct map_exception_type<
5881 sdbusplus::xyz::openbmc_project::State::BMC::Error::MultiUserTargetFailure>
5882{
5883 using type = xyz::openbmc_project::State::BMC::MultiUserTargetFailure;
5884};
5885
5886} // namespace details
5887
5888namespace xyz
5889{
5890namespace openbmc_project
5891{
5892namespace State
5893{
5894namespace Chassis
5895{
5896namespace _PowerOnFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05005897{} // namespace _PowerOnFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05005898
5899struct PowerOnFailure
5900{
5901 static constexpr auto L = level::ERR;
5902 using SYSTEMD_RESULT =
5903 xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT;
5904 using metadata_types = std::tuple<SYSTEMD_RESULT>;
5905};
5906
5907} // namespace Chassis
5908} // namespace State
5909} // namespace openbmc_project
5910} // namespace xyz
5911
5912namespace details
5913{
5914
5915template <>
5916struct map_exception_type<
5917 sdbusplus::xyz::openbmc_project::State::Chassis::Error::PowerOnFailure>
5918{
5919 using type = xyz::openbmc_project::State::Chassis::PowerOnFailure;
5920};
5921
5922} // namespace details
5923
5924namespace xyz
5925{
5926namespace openbmc_project
5927{
5928namespace State
5929{
5930namespace Chassis
5931{
5932namespace _PowerOffFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05005933{} // namespace _PowerOffFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05005934
5935struct PowerOffFailure
5936{
5937 static constexpr auto L = level::ERR;
5938 using SYSTEMD_RESULT =
5939 xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT;
5940 using metadata_types = std::tuple<SYSTEMD_RESULT>;
5941};
5942
5943} // namespace Chassis
5944} // namespace State
5945} // namespace openbmc_project
5946} // namespace xyz
5947
5948namespace details
5949{
5950
5951template <>
5952struct map_exception_type<
5953 sdbusplus::xyz::openbmc_project::State::Chassis::Error::PowerOffFailure>
5954{
5955 using type = xyz::openbmc_project::State::Chassis::PowerOffFailure;
5956};
5957
5958} // namespace details
5959
5960namespace xyz
5961{
5962namespace openbmc_project
5963{
5964namespace State
5965{
5966namespace Host
5967{
5968namespace _HostStartFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05005969{} // namespace _HostStartFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05005970
5971struct HostStartFailure
5972{
5973 static constexpr auto L = level::ERR;
5974 using SYSTEMD_RESULT =
5975 xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT;
5976 using metadata_types = std::tuple<SYSTEMD_RESULT>;
5977};
5978
5979} // namespace Host
5980} // namespace State
5981} // namespace openbmc_project
5982} // namespace xyz
5983
5984namespace details
5985{
5986
5987template <>
5988struct map_exception_type<
5989 sdbusplus::xyz::openbmc_project::State::Host::Error::HostStartFailure>
5990{
5991 using type = xyz::openbmc_project::State::Host::HostStartFailure;
5992};
5993
5994} // namespace details
5995
5996namespace xyz
5997{
5998namespace openbmc_project
5999{
6000namespace State
6001{
6002namespace Host
6003{
6004namespace _HostMinStartFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05006005{} // namespace _HostMinStartFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05006006
6007struct HostMinStartFailure
6008{
6009 static constexpr auto L = level::ERR;
6010 using SYSTEMD_RESULT =
6011 xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT;
6012 using metadata_types = std::tuple<SYSTEMD_RESULT>;
6013};
6014
6015} // namespace Host
6016} // namespace State
6017} // namespace openbmc_project
6018} // namespace xyz
6019
6020namespace details
6021{
6022
6023template <>
6024struct map_exception_type<
6025 sdbusplus::xyz::openbmc_project::State::Host::Error::HostMinStartFailure>
6026{
6027 using type = xyz::openbmc_project::State::Host::HostMinStartFailure;
6028};
6029
6030} // namespace details
6031
6032namespace xyz
6033{
6034namespace openbmc_project
6035{
6036namespace State
6037{
6038namespace Host
6039{
6040namespace _HostShutdownFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05006041{} // namespace _HostShutdownFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05006042
6043struct HostShutdownFailure
6044{
6045 static constexpr auto L = level::ERR;
6046 using SYSTEMD_RESULT =
6047 xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT;
6048 using metadata_types = std::tuple<SYSTEMD_RESULT>;
6049};
6050
6051} // namespace Host
6052} // namespace State
6053} // namespace openbmc_project
6054} // namespace xyz
6055
6056namespace details
6057{
6058
6059template <>
6060struct map_exception_type<
6061 sdbusplus::xyz::openbmc_project::State::Host::Error::HostShutdownFailure>
6062{
6063 using type = xyz::openbmc_project::State::Host::HostShutdownFailure;
6064};
6065
6066} // namespace details
6067
6068namespace xyz
6069{
6070namespace openbmc_project
6071{
6072namespace State
6073{
6074namespace Host
6075{
6076namespace _HostStopFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05006077{} // namespace _HostStopFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05006078
6079struct HostStopFailure
6080{
6081 static constexpr auto L = level::ERR;
6082 using SYSTEMD_RESULT =
6083 xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT;
6084 using metadata_types = std::tuple<SYSTEMD_RESULT>;
6085};
6086
6087} // namespace Host
6088} // namespace State
6089} // namespace openbmc_project
6090} // namespace xyz
6091
6092namespace details
6093{
6094
6095template <>
6096struct map_exception_type<
6097 sdbusplus::xyz::openbmc_project::State::Host::Error::HostStopFailure>
6098{
6099 using type = xyz::openbmc_project::State::Host::HostStopFailure;
6100};
6101
6102} // namespace details
6103
6104namespace xyz
6105{
6106namespace openbmc_project
6107{
6108namespace State
6109{
6110namespace Host
6111{
6112namespace _HostRebootFailure
Patrick Williamsfbc6c9d2023-05-10 07:50:16 -05006113{} // namespace _HostRebootFailure
Patrick Williamsdf329092021-09-08 16:05:08 -05006114
6115struct HostRebootFailure
6116{
6117 static constexpr auto L = level::ERR;
6118 using SYSTEMD_RESULT =
6119 xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT;
6120 using metadata_types = std::tuple<SYSTEMD_RESULT>;
6121};
6122
6123} // namespace Host
6124} // namespace State
6125} // namespace openbmc_project
6126} // namespace xyz
6127
6128namespace details
6129{
6130
6131template <>
6132struct map_exception_type<
6133 sdbusplus::xyz::openbmc_project::State::Host::Error::HostRebootFailure>
6134{
6135 using type = xyz::openbmc_project::State::Host::HostRebootFailure;
Tom Joseph448e74e2017-07-24 23:08:56 +05306136};
6137
Patrick Venture0b02be92018-08-31 11:55:55 -07006138} // namespace details
Tom Joseph448e74e2017-07-24 23:08:56 +05306139
6140namespace example
6141{
6142namespace xyz
6143{
6144namespace openbmc_project
6145{
6146namespace Example
6147{
6148namespace Elog
6149{
6150namespace _TestErrorOne
6151{
6152
6153struct ERRNUM
6154{
Patrick Williamsdf329092021-09-08 16:05:08 -05006155 /*
6156 * We can't use -fsanitize=undefined if we declare a
6157 * 'static constexpr auto str' member, so don't. Instead, open-code the
6158 * mako template lookups.
6159 */
Tom Joseph448e74e2017-07-24 23:08:56 +05306160 static constexpr auto str_short = "ERRNUM";
Patrick Williamsdf329092021-09-08 16:05:08 -05006161 using type = std::tuple<std::decay_t<decltype("ERRNUM=0x%.4X")>, uint16_t>;
6162 explicit constexpr ERRNUM(uint16_t a) : _entry(entry("ERRNUM=0x%.4X", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05306163 type _entry;
6164};
6165struct FILE_PATH
6166{
Patrick Williamsdf329092021-09-08 16:05:08 -05006167 /*
6168 * We can't use -fsanitize=undefined if we declare a
6169 * 'static constexpr auto str' member, so don't. Instead, open-code the
6170 * mako template lookups.
6171 */
Tom Joseph448e74e2017-07-24 23:08:56 +05306172 static constexpr auto str_short = "FILE_PATH";
Patrick Williamsdf329092021-09-08 16:05:08 -05006173 using type =
6174 std::tuple<std::decay_t<decltype("FILE_PATH=%s")>, const char*>;
6175 explicit constexpr FILE_PATH(const char* a) :
6176 _entry(entry("FILE_PATH=%s", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05306177 type _entry;
6178};
6179struct FILE_NAME
6180{
Patrick Williamsdf329092021-09-08 16:05:08 -05006181 /*
6182 * We can't use -fsanitize=undefined if we declare a
6183 * 'static constexpr auto str' member, so don't. Instead, open-code the
6184 * mako template lookups.
6185 */
Tom Joseph448e74e2017-07-24 23:08:56 +05306186 static constexpr auto str_short = "FILE_NAME";
Patrick Williamsdf329092021-09-08 16:05:08 -05006187 using type =
6188 std::tuple<std::decay_t<decltype("FILE_NAME=%s")>, const char*>;
6189 explicit constexpr FILE_NAME(const char* a) :
6190 _entry(entry("FILE_NAME=%s", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05306191 type _entry;
6192};
6193
Patrick Venture0b02be92018-08-31 11:55:55 -07006194} // namespace _TestErrorOne
Tom Joseph448e74e2017-07-24 23:08:56 +05306195
6196struct TestErrorOne : public sdbusplus::exception_t
6197{
Patrick Venture0b02be92018-08-31 11:55:55 -07006198 static constexpr auto errName =
6199 "example.xyz.openbmc_project.Example.Elog.TestErrorOne";
Tom Joseph448e74e2017-07-24 23:08:56 +05306200 static constexpr auto errDesc = "this is test error one";
6201 static constexpr auto L = level::INFO;
6202 using ERRNUM = _TestErrorOne::ERRNUM;
6203 using FILE_PATH = _TestErrorOne::FILE_PATH;
6204 using FILE_NAME = _TestErrorOne::FILE_NAME;
Patrick Venture0b02be92018-08-31 11:55:55 -07006205 using DEV_ADDR =
6206 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
6207 using DEV_ID =
6208 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
6209 using DEV_NAME =
6210 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
6211 using metadata_types =
6212 std::tuple<ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>;
Tom Joseph448e74e2017-07-24 23:08:56 +05306213
Patrick Williamsdf329092021-09-08 16:05:08 -05006214 const char* name() const noexcept override
Tom Joseph448e74e2017-07-24 23:08:56 +05306215 {
6216 return errName;
6217 }
6218
Patrick Williamsdf329092021-09-08 16:05:08 -05006219 const char* description() const noexcept override
Tom Joseph448e74e2017-07-24 23:08:56 +05306220 {
6221 return errDesc;
6222 }
6223
Patrick Williamsdf329092021-09-08 16:05:08 -05006224 const char* what() const noexcept override
Tom Joseph448e74e2017-07-24 23:08:56 +05306225 {
6226 return errName;
6227 }
Patrick Williamsdf329092021-09-08 16:05:08 -05006228
6229 int get_errno() const noexcept override
6230 {
6231 return EIO;
6232 }
Tom Joseph448e74e2017-07-24 23:08:56 +05306233};
6234
6235} // namespace Elog
6236} // namespace Example
6237} // namespace openbmc_project
6238} // namespace xyz
6239} // namespace example
6240
Tom Joseph448e74e2017-07-24 23:08:56 +05306241namespace example
6242{
6243namespace xyz
6244{
6245namespace openbmc_project
6246{
6247namespace Example
6248{
6249namespace Foo
6250{
6251namespace _Foo
6252{
6253
6254struct FOO_DATA
6255{
Patrick Williamsdf329092021-09-08 16:05:08 -05006256 /*
6257 * We can't use -fsanitize=undefined if we declare a
6258 * 'static constexpr auto str' member, so don't. Instead, open-code the
6259 * mako template lookups.
6260 */
Tom Joseph448e74e2017-07-24 23:08:56 +05306261 static constexpr auto str_short = "FOO_DATA";
Patrick Williamsdf329092021-09-08 16:05:08 -05006262 using type = std::tuple<std::decay_t<decltype("FOO_DATA=%s")>, const char*>;
6263 explicit constexpr FOO_DATA(const char* a) :
6264 _entry(entry("FOO_DATA=%s", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05306265 type _entry;
6266};
6267
Patrick Venture0b02be92018-08-31 11:55:55 -07006268} // namespace _Foo
Tom Joseph448e74e2017-07-24 23:08:56 +05306269
6270struct Foo : public sdbusplus::exception_t
6271{
Patrick Venture0b02be92018-08-31 11:55:55 -07006272 static constexpr auto errName =
6273 "example.xyz.openbmc_project.Example.Foo.Foo";
Tom Joseph448e74e2017-07-24 23:08:56 +05306274 static constexpr auto errDesc = "this is test error Foo";
6275 static constexpr auto L = level::INFO;
6276 using FOO_DATA = _Foo::FOO_DATA;
Patrick Venture0b02be92018-08-31 11:55:55 -07006277 using ERRNUM =
6278 example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM;
6279 using FILE_PATH =
6280 example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH;
6281 using FILE_NAME =
6282 example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME;
6283 using DEV_ADDR =
6284 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
6285 using DEV_ID =
6286 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
6287 using DEV_NAME =
6288 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
6289 using metadata_types = std::tuple<FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME,
6290 DEV_ADDR, DEV_ID, DEV_NAME>;
Tom Joseph448e74e2017-07-24 23:08:56 +05306291
Patrick Williamsdf329092021-09-08 16:05:08 -05006292 const char* name() const noexcept override
Tom Joseph448e74e2017-07-24 23:08:56 +05306293 {
6294 return errName;
6295 }
6296
Patrick Williamsdf329092021-09-08 16:05:08 -05006297 const char* description() const noexcept override
Tom Joseph448e74e2017-07-24 23:08:56 +05306298 {
6299 return errDesc;
6300 }
6301
Patrick Williamsdf329092021-09-08 16:05:08 -05006302 const char* what() const noexcept override
Tom Joseph448e74e2017-07-24 23:08:56 +05306303 {
6304 return errName;
6305 }
Patrick Williamsdf329092021-09-08 16:05:08 -05006306
6307 int get_errno() const noexcept override
6308 {
6309 return EIO;
6310 }
Tom Joseph448e74e2017-07-24 23:08:56 +05306311};
6312
6313} // namespace Foo
6314} // namespace Example
6315} // namespace openbmc_project
6316} // namespace xyz
6317} // namespace example
6318
Tom Joseph448e74e2017-07-24 23:08:56 +05306319namespace example
6320{
6321namespace xyz
6322{
6323namespace openbmc_project
6324{
6325namespace Example
6326{
6327namespace Bar
6328{
6329namespace _Bar
6330{
6331
6332struct BAR_DATA
6333{
Patrick Williamsdf329092021-09-08 16:05:08 -05006334 /*
6335 * We can't use -fsanitize=undefined if we declare a
6336 * 'static constexpr auto str' member, so don't. Instead, open-code the
6337 * mako template lookups.
6338 */
Tom Joseph448e74e2017-07-24 23:08:56 +05306339 static constexpr auto str_short = "BAR_DATA";
Patrick Williamsdf329092021-09-08 16:05:08 -05006340 using type = std::tuple<std::decay_t<decltype("BAR_DATA=%s")>, const char*>;
6341 explicit constexpr BAR_DATA(const char* a) :
6342 _entry(entry("BAR_DATA=%s", a)){};
Tom Joseph448e74e2017-07-24 23:08:56 +05306343 type _entry;
6344};
6345
Patrick Venture0b02be92018-08-31 11:55:55 -07006346} // namespace _Bar
Tom Joseph448e74e2017-07-24 23:08:56 +05306347
6348struct Bar : public sdbusplus::exception_t
6349{
Patrick Venture0b02be92018-08-31 11:55:55 -07006350 static constexpr auto errName =
6351 "example.xyz.openbmc_project.Example.Bar.Bar";
Tom Joseph448e74e2017-07-24 23:08:56 +05306352 static constexpr auto errDesc = "this is test error Bar";
6353 static constexpr auto L = level::INFO;
6354 using BAR_DATA = _Bar::BAR_DATA;
6355 using FOO_DATA = example::xyz::openbmc_project::Example::Foo::Foo::FOO_DATA;
Patrick Venture0b02be92018-08-31 11:55:55 -07006356 using ERRNUM =
6357 example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM;
6358 using FILE_PATH =
6359 example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH;
6360 using FILE_NAME =
6361 example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME;
6362 using DEV_ADDR =
6363 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR;
6364 using DEV_ID =
6365 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID;
6366 using DEV_NAME =
6367 example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME;
6368 using metadata_types = std::tuple<BAR_DATA, FOO_DATA, ERRNUM, FILE_PATH,
6369 FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>;
Tom Joseph448e74e2017-07-24 23:08:56 +05306370
Patrick Williamsdf329092021-09-08 16:05:08 -05006371 const char* name() const noexcept override
Tom Joseph448e74e2017-07-24 23:08:56 +05306372 {
6373 return errName;
6374 }
6375
Patrick Williamsdf329092021-09-08 16:05:08 -05006376 const char* description() const noexcept override
Tom Joseph448e74e2017-07-24 23:08:56 +05306377 {
6378 return errDesc;
6379 }
6380
Patrick Williamsdf329092021-09-08 16:05:08 -05006381 const char* what() const noexcept override
Tom Joseph448e74e2017-07-24 23:08:56 +05306382 {
6383 return errName;
6384 }
Patrick Williamsdf329092021-09-08 16:05:08 -05006385
6386 int get_errno() const noexcept override
6387 {
6388 return EIO;
6389 }
Tom Joseph448e74e2017-07-24 23:08:56 +05306390};
6391
6392} // namespace Bar
6393} // namespace Example
6394} // namespace openbmc_project
6395} // namespace xyz
6396} // namespace example
6397
Tom Joseph448e74e2017-07-24 23:08:56 +05306398} // namespace logging
6399
6400} // namespace phosphor