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