Vernon Mauery | a3702c1 | 2019-05-22 13:20:59 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/exception.hpp> |
| 4 | |
| 5 | namespace sdbusplus |
| 6 | { |
| 7 | namespace xyz |
| 8 | { |
| 9 | namespace openbmc_project |
| 10 | { |
| 11 | namespace Smbios |
| 12 | { |
| 13 | namespace MDR_V2 |
| 14 | { |
| 15 | namespace Error |
| 16 | { |
| 17 | |
| 18 | struct InvalidParameter final : public sdbusplus::exception_t |
| 19 | { |
| 20 | static constexpr auto errName = |
| 21 | "xyz.openbmc_project.Smbios.MDR_V2.Error.InvalidParameter"; |
| 22 | static constexpr auto errDesc = "An invalid parameter is attempted."; |
| 23 | static constexpr auto errWhat = |
| 24 | "xyz.openbmc_project.Smbios.MDR_V2.Error.InvalidParameter: An invalid " |
| 25 | "parameter is attempted."; |
| 26 | |
| 27 | const char* name() const noexcept override; |
| 28 | const char* description() const noexcept override; |
| 29 | const char* what() const noexcept override; |
| 30 | }; |
| 31 | |
| 32 | struct UpdateInProgress final : public sdbusplus::exception_t |
| 33 | { |
| 34 | static constexpr auto errName = |
| 35 | "xyz.openbmc_project.Smbios.MDR_V2.Error.UpdateInProgress"; |
| 36 | static constexpr auto errDesc = "Update is in progress."; |
| 37 | static constexpr auto errWhat = "xyz.openbmc_project.Smbios.MDR_V2.Error." |
| 38 | "UpdateInProgress: Update is in progress."; |
| 39 | |
| 40 | const char* name() const noexcept override; |
| 41 | const char* description() const noexcept override; |
| 42 | const char* what() const noexcept override; |
| 43 | }; |
| 44 | |
| 45 | struct InvalidId final : public sdbusplus::exception_t |
| 46 | { |
| 47 | static constexpr auto errName = |
| 48 | "xyz.openbmc_project.Smbios.MDR_V2.Error.InvalidId"; |
| 49 | static constexpr auto errDesc = "An invalid Id is attempted."; |
| 50 | static constexpr auto errWhat = "xyz.openbmc_project.Smbios.MDR_V2.Error." |
| 51 | "InvalidId: An invalid Id is attempted."; |
| 52 | |
| 53 | const char* name() const noexcept override; |
| 54 | const char* description() const noexcept override; |
| 55 | const char* what() const noexcept override; |
| 56 | }; |
| 57 | |
| 58 | } // namespace Error |
| 59 | } // namespace MDR_V2 |
| 60 | } // namespace Smbios |
| 61 | } // namespace openbmc_project |
| 62 | } // namespace xyz |
| 63 | } // namespace sdbusplus |