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