blob: e26c13daf0b2b34615689d7f36a0e233092e8427 [file] [log] [blame]
Vernon Mauerya3702c12019-05-22 13:20:59 -07001#pragma once
2
3#include <sdbusplus/exception.hpp>
4
5namespace sdbusplus
6{
7namespace xyz
8{
9namespace openbmc_project
10{
11namespace Smbios
12{
13namespace MDR_V2
14{
15namespace Error
16{
17
18struct 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
32struct 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
45struct 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