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