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> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 8 | #include <string> |
| 9 | #include <tuple> |
| 10 | #include <type_traits> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 11 | |
| 12 | namespace sdbusplus |
| 13 | { |
| 14 | namespace xyz |
| 15 | { |
| 16 | namespace openbmc_project |
| 17 | { |
| 18 | namespace Software |
| 19 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 20 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 26 | } // namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 40 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 46 | } // namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 60 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 66 | } // namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 84 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 = |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 103 | "xyz.openbmc_project.Software.Image.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 | |
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 | } // 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< |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 135 | sdbusplus::xyz::openbmc_project::Software::Image::Error::UnTarFailure> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 136 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 137 | using type = xyz::openbmc_project::Software::Image::UnTarFailure; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 147 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 = |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 166 | "xyz.openbmc_project.Software.Image.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 | |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 188 | } // namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 197 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Software::Image:: |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 198 | Error::ManifestFileFailure> |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 199 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 200 | using type = xyz::openbmc_project::Software::Image::ManifestFileFailure; |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 | { |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 210 | namespace Image |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 = |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 229 | "xyz.openbmc_project.Software.Image.InternalFailure"; |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 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 | |
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 | }; |
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 |