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