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