blob: 5461ef6ebdb5ad5be4b06a693392c1f5ad1dcc54 [file] [log] [blame]
Gunnar Mills93c12d32017-05-10 13:11:53 -05001// 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
12namespace sdbusplus
13{
14namespace xyz
15{
16namespace openbmc_project
17{
18namespace Software
19{
20namespace Version
21{
22namespace 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
32namespace sdbusplus
33{
34namespace xyz
35{
36namespace openbmc_project
37{
38namespace Software
39{
40namespace Version
41{
42namespace 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
52namespace sdbusplus
53{
54namespace xyz
55{
56namespace openbmc_project
57{
58namespace Software
59{
60namespace Version
61{
62namespace 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
73namespace phosphor
74{
75
76namespace logging
77{
78
79namespace xyz
80{
81namespace openbmc_project
82{
83namespace Software
84{
85namespace Version
86{
87namespace _UnTarFailure
88{
89
90struct 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
101struct 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
131namespace details
132{
133
134template <>
135struct 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
142namespace xyz
143{
144namespace openbmc_project
145{
146namespace Software
147{
148namespace Version
149{
150namespace _ManifestFileFailure
151{
152
153struct 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
164struct 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
194namespace details
195{
196
197template <>
198struct 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
205namespace xyz
206{
207namespace openbmc_project
208{
209namespace Software
210{
211namespace Version
212{
213namespace _InternalFailure
214{
215
216struct 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
227struct 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
257namespace details
258{
259
260template <>
261struct 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