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