Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [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 Software |
| 19 | { |
| 20 | namespace Version |
| 21 | { |
| 22 | namespace Error |
| 23 | { |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 24 | struct UnTarFailure; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 25 | } // namespace Error |
| 26 | } // namespace Version |
| 27 | } // namespace Software |
| 28 | } // namespace openbmc_project |
| 29 | } // namespace xyz |
| 30 | } // namespace sdbusplus |
| 31 | |
| 32 | namespace sdbusplus |
| 33 | { |
| 34 | namespace xyz |
| 35 | { |
| 36 | namespace openbmc_project |
| 37 | { |
| 38 | namespace Software |
| 39 | { |
| 40 | namespace Version |
| 41 | { |
| 42 | namespace Error |
| 43 | { |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 44 | struct InternalFailure; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 45 | } // namespace Error |
| 46 | } // namespace Version |
| 47 | } // namespace Software |
| 48 | } // namespace openbmc_project |
| 49 | } // namespace xyz |
| 50 | } // namespace sdbusplus |
| 51 | |
| 52 | namespace sdbusplus |
| 53 | { |
| 54 | namespace xyz |
| 55 | { |
| 56 | namespace openbmc_project |
| 57 | { |
| 58 | namespace Software |
| 59 | { |
| 60 | namespace Version |
| 61 | { |
| 62 | namespace Error |
| 63 | { |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 64 | struct ManifestFileFailure; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 65 | } // namespace Error |
| 66 | } // namespace Version |
| 67 | } // namespace Software |
| 68 | } // namespace openbmc_project |
| 69 | } // namespace xyz |
| 70 | } // namespace sdbusplus |
| 71 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 72 | namespace phosphor |
| 73 | { |
| 74 | |
| 75 | namespace logging |
| 76 | { |
| 77 | |
| 78 | namespace xyz |
| 79 | { |
| 80 | namespace openbmc_project |
| 81 | { |
| 82 | namespace Software |
| 83 | { |
| 84 | namespace Version |
| 85 | { |
| 86 | namespace _UnTarFailure |
| 87 | { |
| 88 | |
| 89 | struct PATH |
| 90 | { |
| 91 | static constexpr auto str = "PATH=%s"; |
| 92 | static constexpr auto str_short = "PATH"; |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 93 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 94 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)){}; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 95 | type _entry; |
| 96 | }; |
| 97 | |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 98 | } // namespace _UnTarFailure |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 99 | |
| 100 | struct UnTarFailure : public sdbusplus::exception_t |
| 101 | { |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 102 | static constexpr auto errName = |
| 103 | "xyz.openbmc_project.Software.Version.UnTarFailure"; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 104 | static constexpr auto errDesc = "An error occurred during untar."; |
| 105 | static constexpr auto L = level::ERR; |
| 106 | using PATH = _UnTarFailure::PATH; |
| 107 | using metadata_types = std::tuple<PATH>; |
| 108 | |
| 109 | const char* name() const noexcept |
| 110 | { |
| 111 | return errName; |
| 112 | } |
| 113 | |
| 114 | const char* description() const noexcept |
| 115 | { |
| 116 | return errDesc; |
| 117 | } |
| 118 | |
| 119 | const char* what() const noexcept |
| 120 | { |
| 121 | return errName; |
| 122 | } |
| 123 | }; |
| 124 | |
| 125 | } // namespace Version |
| 126 | } // namespace Software |
| 127 | } // namespace openbmc_project |
| 128 | } // namespace xyz |
| 129 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 130 | namespace details |
| 131 | { |
| 132 | |
| 133 | template <> |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 134 | struct map_exception_type< |
| 135 | sdbusplus::xyz::openbmc_project::Software::Version::Error::UnTarFailure> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 136 | { |
| 137 | using type = xyz::openbmc_project::Software::Version::UnTarFailure; |
| 138 | }; |
Gunnar Mills | fa34e02 | 2018-09-04 10:05:45 -0500 | [diff] [blame] | 139 | } // namespace details |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 140 | |
| 141 | namespace xyz |
| 142 | { |
| 143 | namespace openbmc_project |
| 144 | { |
| 145 | namespace Software |
| 146 | { |
| 147 | namespace Version |
| 148 | { |
| 149 | namespace _ManifestFileFailure |
| 150 | { |
| 151 | |
| 152 | struct PATH |
| 153 | { |
| 154 | static constexpr auto str = "PATH=%s"; |
| 155 | static constexpr auto str_short = "PATH"; |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 156 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 157 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)){}; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 158 | type _entry; |
| 159 | }; |
| 160 | |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 161 | } // namespace _ManifestFileFailure |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 162 | |
| 163 | struct ManifestFileFailure : public sdbusplus::exception_t |
| 164 | { |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 165 | static constexpr auto errName = |
| 166 | "xyz.openbmc_project.Software.Version.ManifestFileFailure"; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 167 | static constexpr auto errDesc = "An error when reading the Manifest file."; |
| 168 | static constexpr auto L = level::ERR; |
| 169 | using PATH = _ManifestFileFailure::PATH; |
| 170 | using metadata_types = std::tuple<PATH>; |
| 171 | |
| 172 | const char* name() const noexcept |
| 173 | { |
| 174 | return errName; |
| 175 | } |
| 176 | |
| 177 | const char* description() const noexcept |
| 178 | { |
| 179 | return errDesc; |
| 180 | } |
| 181 | |
| 182 | const char* what() const noexcept |
| 183 | { |
| 184 | return errName; |
| 185 | } |
| 186 | }; |
| 187 | |
| 188 | } // namespace Version |
| 189 | } // namespace Software |
| 190 | } // namespace openbmc_project |
| 191 | } // namespace xyz |
| 192 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 193 | namespace details |
| 194 | { |
| 195 | |
| 196 | template <> |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 197 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Software::Version:: |
| 198 | Error::ManifestFileFailure> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 199 | { |
| 200 | using type = xyz::openbmc_project::Software::Version::ManifestFileFailure; |
| 201 | }; |
Gunnar Mills | fa34e02 | 2018-09-04 10:05:45 -0500 | [diff] [blame] | 202 | } // namespace details |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 203 | |
| 204 | namespace xyz |
| 205 | { |
| 206 | namespace openbmc_project |
| 207 | { |
| 208 | namespace Software |
| 209 | { |
| 210 | namespace Version |
| 211 | { |
| 212 | namespace _InternalFailure |
| 213 | { |
| 214 | |
| 215 | struct FAIL |
| 216 | { |
| 217 | static constexpr auto str = "FAIL=%s"; |
| 218 | static constexpr auto str_short = "FAIL"; |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 219 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 220 | explicit constexpr FAIL(const char* a) : _entry(entry(str, a)){}; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 221 | type _entry; |
| 222 | }; |
| 223 | |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 224 | } // namespace _InternalFailure |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 225 | |
| 226 | struct InternalFailure : public sdbusplus::exception_t |
| 227 | { |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 228 | static constexpr auto errName = |
| 229 | "xyz.openbmc_project.Software.Version.InternalFailure"; |
| 230 | static constexpr auto errDesc = |
| 231 | "The operation failed internally during processing the image."; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 232 | static constexpr auto L = level::ERR; |
| 233 | using FAIL = _InternalFailure::FAIL; |
| 234 | using metadata_types = std::tuple<FAIL>; |
| 235 | |
| 236 | const char* name() const noexcept |
| 237 | { |
| 238 | return errName; |
| 239 | } |
| 240 | |
| 241 | const char* description() const noexcept |
| 242 | { |
| 243 | return errDesc; |
| 244 | } |
| 245 | |
| 246 | const char* what() const noexcept |
| 247 | { |
| 248 | return errName; |
| 249 | } |
| 250 | }; |
| 251 | |
| 252 | } // namespace Version |
| 253 | } // namespace Software |
| 254 | } // namespace openbmc_project |
| 255 | } // namespace xyz |
| 256 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 257 | namespace details |
| 258 | { |
| 259 | |
| 260 | template <> |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 261 | struct map_exception_type< |
| 262 | sdbusplus::xyz::openbmc_project::Software::Version::Error::InternalFailure> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 263 | { |
| 264 | using type = xyz::openbmc_project::Software::Version::InternalFailure; |
| 265 | }; |
Gunnar Mills | fa34e02 | 2018-09-04 10:05:45 -0500 | [diff] [blame] | 266 | } // namespace details |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 267 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 268 | } // namespace logging |
| 269 | |
| 270 | } // namespace phosphor |