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 | |
Gunnar Mills | b0ce996 | 2018-09-07 13:39:10 -0500 | [diff] [blame] | 5 | #include <phosphor-logging/elog.hpp> |
| 6 | #include <phosphor-logging/log.hpp> |
| 7 | #include <sdbusplus/exception.hpp> |
Adriana Kobylak | 58aa750 | 2020-06-08 11:12:11 -0500 | [diff] [blame] | 8 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 9 | #include <string> |
| 10 | #include <tuple> |
| 11 | #include <type_traits> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 12 | |
| 13 | namespace sdbusplus |
| 14 | { |
| 15 | namespace xyz |
| 16 | { |
| 17 | namespace openbmc_project |
| 18 | { |
| 19 | namespace Software |
| 20 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 21 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 22 | { |
| 23 | namespace Error |
| 24 | { |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 25 | struct ManifestFileFailure; |
| 26 | } // namespace Error |
| 27 | } // namespace Image |
| 28 | } // namespace Software |
| 29 | } // namespace openbmc_project |
| 30 | } // namespace xyz |
| 31 | } // namespace sdbusplus |
| 32 | |
| 33 | namespace sdbusplus |
| 34 | { |
| 35 | namespace xyz |
| 36 | { |
| 37 | namespace openbmc_project |
| 38 | { |
| 39 | namespace Software |
| 40 | { |
| 41 | namespace Image |
| 42 | { |
| 43 | namespace Error |
| 44 | { |
| 45 | struct ImageFailure; |
| 46 | } // namespace Error |
| 47 | } // namespace Image |
| 48 | } // namespace Software |
| 49 | } // namespace openbmc_project |
| 50 | } // namespace xyz |
| 51 | } // namespace sdbusplus |
| 52 | |
| 53 | namespace sdbusplus |
| 54 | { |
| 55 | namespace xyz |
| 56 | { |
| 57 | namespace openbmc_project |
| 58 | { |
| 59 | namespace Software |
| 60 | { |
| 61 | namespace Image |
| 62 | { |
| 63 | namespace Error |
| 64 | { |
| 65 | struct BusyFailure; |
| 66 | } // namespace Error |
| 67 | } // namespace Image |
| 68 | } // namespace Software |
| 69 | } // namespace openbmc_project |
| 70 | } // namespace xyz |
| 71 | } // namespace sdbusplus |
| 72 | |
| 73 | namespace sdbusplus |
| 74 | { |
| 75 | namespace xyz |
| 76 | { |
| 77 | namespace openbmc_project |
| 78 | { |
| 79 | namespace Software |
| 80 | { |
| 81 | namespace Image |
| 82 | { |
| 83 | namespace Error |
| 84 | { |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 85 | struct UnTarFailure; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 86 | } // namespace Error |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 87 | } // namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 88 | } // namespace Software |
| 89 | } // namespace openbmc_project |
| 90 | } // namespace xyz |
| 91 | } // namespace sdbusplus |
| 92 | |
| 93 | namespace sdbusplus |
| 94 | { |
| 95 | namespace xyz |
| 96 | { |
| 97 | namespace openbmc_project |
| 98 | { |
| 99 | namespace Software |
| 100 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 101 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 102 | { |
| 103 | namespace Error |
| 104 | { |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 105 | struct InternalFailure; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 106 | } // namespace Error |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 107 | } // namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 108 | } // namespace Software |
| 109 | } // namespace openbmc_project |
| 110 | } // namespace xyz |
| 111 | } // namespace sdbusplus |
| 112 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 113 | namespace phosphor |
| 114 | { |
| 115 | |
| 116 | namespace logging |
| 117 | { |
| 118 | |
| 119 | namespace xyz |
| 120 | { |
| 121 | namespace openbmc_project |
| 122 | { |
| 123 | namespace Software |
| 124 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 125 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 126 | { |
| 127 | namespace _UnTarFailure |
| 128 | { |
| 129 | |
| 130 | struct PATH |
| 131 | { |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 132 | /* |
| 133 | * We can't use -fsanitize=undefined if we declare a |
| 134 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 135 | * mako template lookups. |
| 136 | */ |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 137 | static constexpr auto str_short = "PATH"; |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 138 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 139 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 140 | type _entry; |
| 141 | }; |
| 142 | |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 143 | } // namespace _UnTarFailure |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 144 | |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 145 | struct UnTarFailure |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 146 | { |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 147 | static constexpr auto L = level::ERR; |
| 148 | using PATH = _UnTarFailure::PATH; |
| 149 | using metadata_types = std::tuple<PATH>; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 150 | }; |
| 151 | |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 152 | } // namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 153 | } // namespace Software |
| 154 | } // namespace openbmc_project |
| 155 | } // namespace xyz |
| 156 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 157 | namespace details |
| 158 | { |
| 159 | |
| 160 | template <> |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 161 | struct map_exception_type< |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 162 | sdbusplus::xyz::openbmc_project::Software::Image::Error::UnTarFailure> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 163 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 164 | using type = xyz::openbmc_project::Software::Image::UnTarFailure; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 165 | }; |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 166 | |
Gunnar Mills | fa34e02 | 2018-09-04 10:05:45 -0500 | [diff] [blame] | 167 | } // namespace details |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 168 | |
| 169 | namespace xyz |
| 170 | { |
| 171 | namespace openbmc_project |
| 172 | { |
| 173 | namespace Software |
| 174 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 175 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 176 | { |
| 177 | namespace _ManifestFileFailure |
| 178 | { |
| 179 | |
| 180 | struct PATH |
| 181 | { |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 182 | /* |
| 183 | * We can't use -fsanitize=undefined if we declare a |
| 184 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 185 | * mako template lookups. |
| 186 | */ |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 187 | static constexpr auto str_short = "PATH"; |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 188 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 189 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 190 | type _entry; |
| 191 | }; |
| 192 | |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 193 | } // namespace _ManifestFileFailure |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 194 | |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 195 | struct ManifestFileFailure |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 196 | { |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 197 | static constexpr auto L = level::ERR; |
| 198 | using PATH = _ManifestFileFailure::PATH; |
| 199 | using metadata_types = std::tuple<PATH>; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 200 | }; |
| 201 | |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 202 | } // namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 203 | } // namespace Software |
| 204 | } // namespace openbmc_project |
| 205 | } // namespace xyz |
| 206 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 207 | namespace details |
| 208 | { |
| 209 | |
| 210 | template <> |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 211 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Software::Image:: |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 212 | Error::ManifestFileFailure> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 213 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 214 | using type = xyz::openbmc_project::Software::Image::ManifestFileFailure; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 215 | }; |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 216 | |
Gunnar Mills | fa34e02 | 2018-09-04 10:05:45 -0500 | [diff] [blame] | 217 | } // namespace details |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 218 | |
| 219 | namespace xyz |
| 220 | { |
| 221 | namespace openbmc_project |
| 222 | { |
| 223 | namespace Software |
| 224 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 225 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 226 | { |
| 227 | namespace _InternalFailure |
| 228 | { |
| 229 | |
| 230 | struct FAIL |
| 231 | { |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 232 | /* |
| 233 | * We can't use -fsanitize=undefined if we declare a |
| 234 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 235 | * mako template lookups. |
| 236 | */ |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 237 | static constexpr auto str_short = "FAIL"; |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 238 | using type = std::tuple<std::decay_t<decltype("FAIL=%s")>, const char*>; |
| 239 | explicit constexpr FAIL(const char* a) : _entry(entry("FAIL=%s", a)){}; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 240 | type _entry; |
| 241 | }; |
| 242 | |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 243 | } // namespace _InternalFailure |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 244 | |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 245 | struct InternalFailure |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 246 | { |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 247 | static constexpr auto L = level::ERR; |
| 248 | using FAIL = _InternalFailure::FAIL; |
| 249 | using metadata_types = std::tuple<FAIL>; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 250 | }; |
| 251 | |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 252 | } // namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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< |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 262 | sdbusplus::xyz::openbmc_project::Software::Image::Error::InternalFailure> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 263 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 264 | using type = xyz::openbmc_project::Software::Image::InternalFailure; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 265 | }; |
James Feist | ebcc194 | 2020-06-22 13:42:02 -0700 | [diff] [blame] | 266 | |
| 267 | } // namespace details |
| 268 | |
| 269 | namespace xyz |
| 270 | { |
| 271 | namespace openbmc_project |
| 272 | { |
| 273 | namespace Software |
| 274 | { |
| 275 | namespace Image |
| 276 | { |
| 277 | namespace _ImageFailure |
| 278 | { |
| 279 | |
| 280 | struct FAIL |
| 281 | { |
| 282 | /* |
| 283 | * We can't use -fsanitize=undefined if we declare a |
| 284 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 285 | * mako template lookups. |
| 286 | */ |
| 287 | static constexpr auto str_short = "FAIL"; |
| 288 | using type = std::tuple<std::decay_t<decltype("FAIL=%s")>, const char*>; |
| 289 | explicit constexpr FAIL(const char* a) : _entry(entry("FAIL=%s", a)){}; |
| 290 | type _entry; |
| 291 | }; |
| 292 | struct PATH |
| 293 | { |
| 294 | /* |
| 295 | * We can't use -fsanitize=undefined if we declare a |
| 296 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 297 | * mako template lookups. |
| 298 | */ |
| 299 | static constexpr auto str_short = "PATH"; |
| 300 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 301 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
| 302 | type _entry; |
| 303 | }; |
| 304 | |
| 305 | } // namespace _ImageFailure |
| 306 | |
| 307 | struct ImageFailure |
| 308 | { |
| 309 | static constexpr auto L = level::ERR; |
| 310 | using FAIL = _ImageFailure::FAIL; |
| 311 | using PATH = _ImageFailure::PATH; |
| 312 | using metadata_types = std::tuple<FAIL, PATH>; |
| 313 | }; |
| 314 | |
| 315 | } // namespace Image |
| 316 | } // namespace Software |
| 317 | } // namespace openbmc_project |
| 318 | } // namespace xyz |
| 319 | |
| 320 | namespace details |
| 321 | { |
| 322 | |
| 323 | template <> |
| 324 | struct map_exception_type< |
| 325 | sdbusplus::xyz::openbmc_project::Software::Image::Error::ImageFailure> |
| 326 | { |
| 327 | using type = xyz::openbmc_project::Software::Image::ImageFailure; |
| 328 | }; |
| 329 | |
| 330 | } // namespace details |
| 331 | |
| 332 | namespace xyz |
| 333 | { |
| 334 | namespace openbmc_project |
| 335 | { |
| 336 | namespace Software |
| 337 | { |
| 338 | namespace Image |
| 339 | { |
| 340 | namespace _BusyFailure |
| 341 | { |
| 342 | |
| 343 | struct PATH |
| 344 | { |
| 345 | /* |
| 346 | * We can't use -fsanitize=undefined if we declare a |
| 347 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 348 | * mako template lookups. |
| 349 | */ |
| 350 | static constexpr auto str_short = "PATH"; |
| 351 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 352 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
| 353 | type _entry; |
| 354 | }; |
| 355 | |
| 356 | } // namespace _BusyFailure |
| 357 | |
| 358 | struct BusyFailure |
| 359 | { |
| 360 | static constexpr auto L = level::ERR; |
| 361 | using PATH = _BusyFailure::PATH; |
| 362 | using metadata_types = std::tuple<PATH>; |
| 363 | }; |
| 364 | |
| 365 | } // namespace Image |
| 366 | } // namespace Software |
| 367 | } // namespace openbmc_project |
| 368 | } // namespace xyz |
| 369 | |
| 370 | namespace details |
| 371 | { |
| 372 | |
| 373 | template <> |
| 374 | struct map_exception_type< |
| 375 | sdbusplus::xyz::openbmc_project::Software::Image::Error::BusyFailure> |
| 376 | { |
| 377 | using type = xyz::openbmc_project::Software::Image::BusyFailure; |
| 378 | }; |
| 379 | |
Gunnar Mills | fa34e02 | 2018-09-04 10:05:45 -0500 | [diff] [blame] | 380 | } // namespace details |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 381 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 382 | } // namespace logging |
| 383 | |
| 384 | } // namespace phosphor |