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 | { |
| 24 | struct UnTarFailure; |
| 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 | { |
| 44 | struct InternalFailure; |
| 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 | { |
| 64 | struct ManifestFileFailure; |
| 65 | } // namespace Error |
| 66 | } // namespace Version |
| 67 | } // namespace Software |
| 68 | } // namespace openbmc_project |
| 69 | } // namespace xyz |
| 70 | } // namespace sdbusplus |
| 71 | |
| 72 | |
| 73 | namespace phosphor |
| 74 | { |
| 75 | |
| 76 | namespace logging |
| 77 | { |
| 78 | |
| 79 | namespace xyz |
| 80 | { |
| 81 | namespace openbmc_project |
| 82 | { |
| 83 | namespace Software |
| 84 | { |
| 85 | namespace Version |
| 86 | { |
| 87 | namespace _UnTarFailure |
| 88 | { |
| 89 | |
| 90 | struct PATH |
| 91 | { |
| 92 | static constexpr auto str = "PATH=%s"; |
| 93 | static constexpr auto str_short = "PATH"; |
| 94 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 95 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {}; |
| 96 | type _entry; |
| 97 | }; |
| 98 | |
| 99 | } // namespace _UnTarFailure |
| 100 | |
| 101 | struct UnTarFailure : public sdbusplus::exception_t |
| 102 | { |
| 103 | static constexpr auto errName = "xyz.openbmc_project.Software.Version.UnTarFailure"; |
| 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 | |
| 130 | |
| 131 | namespace details |
| 132 | { |
| 133 | |
| 134 | template <> |
| 135 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Software::Version::Error::UnTarFailure> |
| 136 | { |
| 137 | using type = xyz::openbmc_project::Software::Version::UnTarFailure; |
| 138 | }; |
| 139 | |
| 140 | } |
| 141 | |
| 142 | namespace xyz |
| 143 | { |
| 144 | namespace openbmc_project |
| 145 | { |
| 146 | namespace Software |
| 147 | { |
| 148 | namespace Version |
| 149 | { |
| 150 | namespace _ManifestFileFailure |
| 151 | { |
| 152 | |
| 153 | struct PATH |
| 154 | { |
| 155 | static constexpr auto str = "PATH=%s"; |
| 156 | static constexpr auto str_short = "PATH"; |
| 157 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 158 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {}; |
| 159 | type _entry; |
| 160 | }; |
| 161 | |
| 162 | } // namespace _ManifestFileFailure |
| 163 | |
| 164 | struct ManifestFileFailure : public sdbusplus::exception_t |
| 165 | { |
| 166 | static constexpr auto errName = "xyz.openbmc_project.Software.Version.ManifestFileFailure"; |
| 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 | |
| 193 | |
| 194 | namespace details |
| 195 | { |
| 196 | |
| 197 | template <> |
| 198 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Software::Version::Error::ManifestFileFailure> |
| 199 | { |
| 200 | using type = xyz::openbmc_project::Software::Version::ManifestFileFailure; |
| 201 | }; |
| 202 | |
| 203 | } |
| 204 | |
| 205 | namespace xyz |
| 206 | { |
| 207 | namespace openbmc_project |
| 208 | { |
| 209 | namespace Software |
| 210 | { |
| 211 | namespace Version |
| 212 | { |
| 213 | namespace _InternalFailure |
| 214 | { |
| 215 | |
| 216 | struct FAIL |
| 217 | { |
| 218 | static constexpr auto str = "FAIL=%s"; |
| 219 | static constexpr auto str_short = "FAIL"; |
| 220 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 221 | explicit constexpr FAIL(const char* a) : _entry(entry(str, a)) {}; |
| 222 | type _entry; |
| 223 | }; |
| 224 | |
| 225 | } // namespace _InternalFailure |
| 226 | |
| 227 | struct InternalFailure : public sdbusplus::exception_t |
| 228 | { |
| 229 | static constexpr auto errName = "xyz.openbmc_project.Software.Version.InternalFailure"; |
| 230 | static constexpr auto errDesc = "The operation failed internally during processing the image."; |
| 231 | static constexpr auto L = level::ERR; |
| 232 | using FAIL = _InternalFailure::FAIL; |
| 233 | using metadata_types = std::tuple<FAIL>; |
| 234 | |
| 235 | const char* name() const noexcept |
| 236 | { |
| 237 | return errName; |
| 238 | } |
| 239 | |
| 240 | const char* description() const noexcept |
| 241 | { |
| 242 | return errDesc; |
| 243 | } |
| 244 | |
| 245 | const char* what() const noexcept |
| 246 | { |
| 247 | return errName; |
| 248 | } |
| 249 | }; |
| 250 | |
| 251 | } // namespace Version |
| 252 | } // namespace Software |
| 253 | } // namespace openbmc_project |
| 254 | } // namespace xyz |
| 255 | |
| 256 | |
| 257 | namespace details |
| 258 | { |
| 259 | |
| 260 | template <> |
| 261 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Software::Version::Error::InternalFailure> |
| 262 | { |
| 263 | using type = xyz::openbmc_project::Software::Version::InternalFailure; |
| 264 | }; |
| 265 | |
| 266 | } |
| 267 | |
| 268 | |
| 269 | } // namespace logging |
| 270 | |
| 271 | } // namespace phosphor |