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