1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* ServiceErrorGenerator.kt:252 */
|
2 3 | /// All possible error types for this service.
|
4 + | /* RustType.kt:516 */
|
3 5 | #[non_exhaustive]
|
6 + | /* RustType.kt:516 */
|
4 7 | #[derive(::std::fmt::Debug)]
|
5 - | pub enum Error {
|
6 - | /// This error is thrown when a request is invalid.
|
8 + | pub /* ServiceErrorGenerator.kt:257 */ enum Error {
|
9 + | /// /* ServiceErrorGenerator.kt:259 */This error is thrown when a request is invalid.
|
10 + | /* ServiceErrorGenerator.kt:262 */
|
7 11 | ComplexError(crate::types::error::ComplexError),
|
8 - | /// This error is thrown when an invalid greeting value is provided.
|
12 + | /// /* ServiceErrorGenerator.kt:259 */This error is thrown when an invalid greeting value is provided.
|
13 + | /* ServiceErrorGenerator.kt:262 */
|
9 14 | InvalidGreeting(crate::types::error::InvalidGreeting),
|
10 - | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
15 + | /// /* ServiceErrorGenerator.kt:264 */An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
16 + | /* ServiceErrorGenerator.kt:320 */
|
11 17 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
12 18 | variable wildcard pattern and check `.code()`:
|
13 19 | \
|
14 20 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
15 21 | \
|
16 22 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
|
17 - | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
23 + | /* ServiceErrorGenerator.kt:266 */
|
24 + | Unhandled(crate::error::sealed_unhandled::Unhandled), /* ServiceErrorGenerator.kt:257 */
|
18 25 | }
|
26 + | /* ServiceErrorGenerator.kt:131 */
|
19 27 | impl ::std::fmt::Display for Error {
|
28 + | /* ServiceErrorGenerator.kt:132 */
|
20 29 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
30 + | /* ServiceErrorGenerator.kt:133 */
|
21 31 | match self {
|
22 - | Error::ComplexError(inner) => inner.fmt(f),
|
23 - | Error::InvalidGreeting(inner) => inner.fmt(f),
|
32 + | /* ServiceErrorGenerator.kt:135 */ Error::ComplexError(inner) => inner.fmt(f),
|
33 + | /* ServiceErrorGenerator.kt:135 */ Error::InvalidGreeting(inner) => inner.fmt(f),
|
34 + | /* ServiceErrorGenerator.kt:137 */
|
24 35 | Error::Unhandled(_) => {
|
25 36 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
26 37 | write!(f, "unhandled error ({code})")
|
27 38 | } else {
|
28 39 | f.write_str("unhandled error")
|
29 40 | }
|
30 - | }
|
41 + | } /* ServiceErrorGenerator.kt:133 */
|
31 42 | }
|
43 + | /* ServiceErrorGenerator.kt:132 */
|
32 44 | }
|
45 + | /* ServiceErrorGenerator.kt:131 */
|
33 46 | }
|
47 + | /* ServiceErrorGenerator.kt:154 */
|
34 48 | impl From<::aws_smithy_types::error::operation::BuildError> for Error {
|
35 49 | fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
|
36 50 | Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
37 51 | source: value.into(),
|
38 52 | meta: ::std::default::Default::default(),
|
39 53 | })
|
40 54 | }
|
41 55 | }
|
56 + | /* ServiceErrorGenerator.kt:223 */
|
42 57 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
|
43 58 | fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
|
44 59 | match self {
|
45 60 | Self::ComplexError(inner) => inner.meta(),
|
46 61 | Self::InvalidGreeting(inner) => inner.meta(),
|
47 62 | Self::Unhandled(inner) => &inner.meta,
|
48 63 | }
|
49 64 | }
|
50 65 | }
|
66 + | /* ServiceErrorGenerator.kt:174 */
|
51 67 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::datetime_offsets::DatetimeOffsetsError, R>> for Error
|
52 68 | where
|
53 69 | R: Send + Sync + std::fmt::Debug + 'static,
|
54 70 | {
|
71 + | /* ServiceErrorGenerator.kt:179 */
|
55 72 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::datetime_offsets::DatetimeOffsetsError, R>) -> Self {
|
73 + | /* ServiceErrorGenerator.kt:184 */
|
56 74 | match err {
|
75 + | /* ServiceErrorGenerator.kt:185 */
|
57 76 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
77 + | /* ServiceErrorGenerator.kt:186 */
|
58 78 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
59 79 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
60 80 | source: err.into(),
|
61 81 | }),
|
82 + | /* ServiceErrorGenerator.kt:184 */
|
62 83 | }
|
84 + | /* ServiceErrorGenerator.kt:179 */
|
63 85 | }
|
86 + | /* ServiceErrorGenerator.kt:174 */
|
64 87 | }
|
88 + | /* ServiceErrorGenerator.kt:202 */
|
65 89 | impl From<crate::operation::datetime_offsets::DatetimeOffsetsError> for Error {
|
90 + | /* ServiceErrorGenerator.kt:203 */
|
66 91 | fn from(err: crate::operation::datetime_offsets::DatetimeOffsetsError) -> Self {
|
92 + | /* ServiceErrorGenerator.kt:204 */
|
67 93 | match err {
|
94 + | /* ServiceErrorGenerator.kt:212 */
|
68 95 | crate::operation::datetime_offsets::DatetimeOffsetsError::Unhandled(inner) => Error::Unhandled(inner),
|
96 + | /* ServiceErrorGenerator.kt:204 */
|
69 97 | }
|
98 + | /* ServiceErrorGenerator.kt:203 */
|
70 99 | }
|
100 + | /* ServiceErrorGenerator.kt:202 */
|
71 101 | }
|
102 + | /* ServiceErrorGenerator.kt:174 */
|
72 103 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError, R>>
|
73 104 | for Error
|
74 105 | where
|
75 106 | R: Send + Sync + std::fmt::Debug + 'static,
|
76 107 | {
|
108 + | /* ServiceErrorGenerator.kt:179 */
|
77 109 | fn from(
|
78 110 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError, R>,
|
79 111 | ) -> Self {
|
112 + | /* ServiceErrorGenerator.kt:184 */
|
80 113 | match err {
|
114 + | /* ServiceErrorGenerator.kt:185 */
|
81 115 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
116 + | /* ServiceErrorGenerator.kt:186 */
|
82 117 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
83 118 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
84 119 | source: err.into(),
|
85 120 | }),
|
121 + | /* ServiceErrorGenerator.kt:184 */
|
86 122 | }
|
123 + | /* ServiceErrorGenerator.kt:179 */
|
87 124 | }
|
125 + | /* ServiceErrorGenerator.kt:174 */
|
88 126 | }
|
127 + | /* ServiceErrorGenerator.kt:202 */
|
89 128 | impl From<crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError> for Error {
|
129 + | /* ServiceErrorGenerator.kt:203 */
|
90 130 | fn from(err: crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError) -> Self {
|
131 + | /* ServiceErrorGenerator.kt:204 */
|
91 132 | match err {
|
133 + | /* ServiceErrorGenerator.kt:212 */
|
92 134 | crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError::Unhandled(inner) => Error::Unhandled(inner),
|
135 + | /* ServiceErrorGenerator.kt:204 */
|
93 136 | }
|
137 + | /* ServiceErrorGenerator.kt:203 */
|
94 138 | }
|
139 + | /* ServiceErrorGenerator.kt:202 */
|
95 140 | }
|
141 + | /* ServiceErrorGenerator.kt:174 */
|
96 142 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::endpoint_operation::EndpointOperationError, R>> for Error
|
97 143 | where
|
98 144 | R: Send + Sync + std::fmt::Debug + 'static,
|
99 145 | {
|
146 + | /* ServiceErrorGenerator.kt:179 */
|
100 147 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::endpoint_operation::EndpointOperationError, R>) -> Self {
|
148 + | /* ServiceErrorGenerator.kt:184 */
|
101 149 | match err {
|
150 + | /* ServiceErrorGenerator.kt:185 */
|
102 151 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
152 + | /* ServiceErrorGenerator.kt:186 */
|
103 153 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
104 154 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
105 155 | source: err.into(),
|
106 156 | }),
|
157 + | /* ServiceErrorGenerator.kt:184 */
|
107 158 | }
|
159 + | /* ServiceErrorGenerator.kt:179 */
|
108 160 | }
|
161 + | /* ServiceErrorGenerator.kt:174 */
|
109 162 | }
|
163 + | /* ServiceErrorGenerator.kt:202 */
|
110 164 | impl From<crate::operation::endpoint_operation::EndpointOperationError> for Error {
|
165 + | /* ServiceErrorGenerator.kt:203 */
|
111 166 | fn from(err: crate::operation::endpoint_operation::EndpointOperationError) -> Self {
|
167 + | /* ServiceErrorGenerator.kt:204 */
|
112 168 | match err {
|
169 + | /* ServiceErrorGenerator.kt:212 */
|
113 170 | crate::operation::endpoint_operation::EndpointOperationError::Unhandled(inner) => Error::Unhandled(inner),
|
171 + | /* ServiceErrorGenerator.kt:204 */
|
114 172 | }
|
173 + | /* ServiceErrorGenerator.kt:203 */
|
115 174 | }
|
175 + | /* ServiceErrorGenerator.kt:202 */
|
116 176 | }
|
177 + | /* ServiceErrorGenerator.kt:174 */
|
117 178 | impl<R>
|
118 179 | From<
|
119 180 | ::aws_smithy_runtime_api::client::result::SdkError<
|
120 181 | crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError,
|
121 182 | R,
|
122 183 | >,
|
123 184 | > for Error
|
124 185 | where
|
125 186 | R: Send + Sync + std::fmt::Debug + 'static,
|
126 187 | {
|
188 + | /* ServiceErrorGenerator.kt:179 */
|
127 189 | fn from(
|
128 190 | err: ::aws_smithy_runtime_api::client::result::SdkError<
|
129 191 | crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError,
|
130 192 | R,
|
131 193 | >,
|
132 194 | ) -> Self {
|
195 + | /* ServiceErrorGenerator.kt:184 */
|
133 196 | match err {
|
197 + | /* ServiceErrorGenerator.kt:185 */
|
134 198 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
199 + | /* ServiceErrorGenerator.kt:186 */
|
135 200 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
136 201 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
137 202 | source: err.into(),
|
138 203 | }),
|
204 + | /* ServiceErrorGenerator.kt:184 */
|
139 205 | }
|
206 + | /* ServiceErrorGenerator.kt:179 */
|
140 207 | }
|
208 + | /* ServiceErrorGenerator.kt:174 */
|
141 209 | }
|
210 + | /* ServiceErrorGenerator.kt:202 */
|
142 211 | impl From<crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError> for Error {
|
212 + | /* ServiceErrorGenerator.kt:203 */
|
143 213 | fn from(err: crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError) -> Self {
|
214 + | /* ServiceErrorGenerator.kt:204 */
|
144 215 | match err {
|
216 + | /* ServiceErrorGenerator.kt:212 */
|
145 217 | crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError::Unhandled(inner) => Error::Unhandled(inner),
|
218 + | /* ServiceErrorGenerator.kt:204 */
|
146 219 | }
|
220 + | /* ServiceErrorGenerator.kt:203 */
|
147 221 | }
|
222 + | /* ServiceErrorGenerator.kt:202 */
|
148 223 | }
|
224 + | /* ServiceErrorGenerator.kt:174 */
|
149 225 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::fractional_seconds::FractionalSecondsError, R>> for Error
|
150 226 | where
|
151 227 | R: Send + Sync + std::fmt::Debug + 'static,
|
152 228 | {
|
229 + | /* ServiceErrorGenerator.kt:179 */
|
153 230 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::fractional_seconds::FractionalSecondsError, R>) -> Self {
|
231 + | /* ServiceErrorGenerator.kt:184 */
|
154 232 | match err {
|
233 + | /* ServiceErrorGenerator.kt:185 */
|
155 234 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
235 + | /* ServiceErrorGenerator.kt:186 */
|
156 236 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
157 237 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
158 238 | source: err.into(),
|
159 239 | }),
|
240 + | /* ServiceErrorGenerator.kt:184 */
|
160 241 | }
|
242 + | /* ServiceErrorGenerator.kt:179 */
|
161 243 | }
|
244 + | /* ServiceErrorGenerator.kt:174 */
|
162 245 | }
|
246 + | /* ServiceErrorGenerator.kt:202 */
|
163 247 | impl From<crate::operation::fractional_seconds::FractionalSecondsError> for Error {
|
248 + | /* ServiceErrorGenerator.kt:203 */
|
164 249 | fn from(err: crate::operation::fractional_seconds::FractionalSecondsError) -> Self {
|
250 + | /* ServiceErrorGenerator.kt:204 */
|
165 251 | match err {
|
252 + | /* ServiceErrorGenerator.kt:212 */
|
166 253 | crate::operation::fractional_seconds::FractionalSecondsError::Unhandled(inner) => Error::Unhandled(inner),
|
254 + | /* ServiceErrorGenerator.kt:204 */
|
167 255 | }
|
256 + | /* ServiceErrorGenerator.kt:203 */
|
168 257 | }
|
258 + | /* ServiceErrorGenerator.kt:202 */
|
169 259 | }
|
260 + | /* ServiceErrorGenerator.kt:174 */
|
170 261 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::greeting_with_errors::GreetingWithErrorsError, R>> for Error
|
171 262 | where
|
172 263 | R: Send + Sync + std::fmt::Debug + 'static,
|
173 264 | {
|
265 + | /* ServiceErrorGenerator.kt:179 */
|
174 266 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::greeting_with_errors::GreetingWithErrorsError, R>) -> Self {
|
267 + | /* ServiceErrorGenerator.kt:184 */
|
175 268 | match err {
|
269 + | /* ServiceErrorGenerator.kt:185 */
|
176 270 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
271 + | /* ServiceErrorGenerator.kt:186 */
|
177 272 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
178 273 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
179 274 | source: err.into(),
|
180 275 | }),
|
276 + | /* ServiceErrorGenerator.kt:184 */
|
181 277 | }
|
278 + | /* ServiceErrorGenerator.kt:179 */
|
182 279 | }
|
280 + | /* ServiceErrorGenerator.kt:174 */
|
183 281 | }
|
282 + | /* ServiceErrorGenerator.kt:202 */
|
184 283 | impl From<crate::operation::greeting_with_errors::GreetingWithErrorsError> for Error {
|
284 + | /* ServiceErrorGenerator.kt:203 */
|
185 285 | fn from(err: crate::operation::greeting_with_errors::GreetingWithErrorsError) -> Self {
|
286 + | /* ServiceErrorGenerator.kt:204 */
|
186 287 | match err {
|
288 + | /* ServiceErrorGenerator.kt:207 */
|
187 289 | crate::operation::greeting_with_errors::GreetingWithErrorsError::InvalidGreeting(inner) => Error::InvalidGreeting(inner),
|
290 + | /* ServiceErrorGenerator.kt:207 */
|
188 291 | crate::operation::greeting_with_errors::GreetingWithErrorsError::ComplexError(inner) => Error::ComplexError(inner),
|
292 + | /* ServiceErrorGenerator.kt:212 */
|
189 293 | crate::operation::greeting_with_errors::GreetingWithErrorsError::Unhandled(inner) => Error::Unhandled(inner),
|
294 + | /* ServiceErrorGenerator.kt:204 */
|
190 295 | }
|
296 + | /* ServiceErrorGenerator.kt:203 */
|
191 297 | }
|
298 + | /* ServiceErrorGenerator.kt:202 */
|
192 299 | }
|
300 + | /* ServiceErrorGenerator.kt:174 */
|
193 301 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::host_with_path_operation::HostWithPathOperationError, R>> for Error
|
194 302 | where
|
195 303 | R: Send + Sync + std::fmt::Debug + 'static,
|
196 304 | {
|
305 + | /* ServiceErrorGenerator.kt:179 */
|
197 306 | fn from(
|
198 307 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::host_with_path_operation::HostWithPathOperationError, R>,
|
199 308 | ) -> Self {
|
309 + | /* ServiceErrorGenerator.kt:184 */
|
200 310 | match err {
|
311 + | /* ServiceErrorGenerator.kt:185 */
|
201 312 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
313 + | /* ServiceErrorGenerator.kt:186 */
|
202 314 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
203 315 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
204 316 | source: err.into(),
|
205 317 | }),
|
318 + | /* ServiceErrorGenerator.kt:184 */
|
206 319 | }
|
320 + | /* ServiceErrorGenerator.kt:179 */
|
207 321 | }
|
322 + | /* ServiceErrorGenerator.kt:174 */
|
208 323 | }
|
324 + | /* ServiceErrorGenerator.kt:202 */
|
209 325 | impl From<crate::operation::host_with_path_operation::HostWithPathOperationError> for Error {
|
326 + | /* ServiceErrorGenerator.kt:203 */
|
210 327 | fn from(err: crate::operation::host_with_path_operation::HostWithPathOperationError) -> Self {
|
328 + | /* ServiceErrorGenerator.kt:204 */
|
211 329 | match err {
|
330 + | /* ServiceErrorGenerator.kt:212 */
|
212 331 | crate::operation::host_with_path_operation::HostWithPathOperationError::Unhandled(inner) => Error::Unhandled(inner),
|
332 + | /* ServiceErrorGenerator.kt:204 */
|
213 333 | }
|
334 + | /* ServiceErrorGenerator.kt:203 */
|
214 335 | }
|
336 + | /* ServiceErrorGenerator.kt:202 */
|
215 337 | }
|
338 + | /* ServiceErrorGenerator.kt:174 */
|
216 339 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError, R>>
|
217 340 | for Error
|
218 341 | where
|
219 342 | R: Send + Sync + std::fmt::Debug + 'static,
|
220 343 | {
|
344 + | /* ServiceErrorGenerator.kt:179 */
|
221 345 | fn from(
|
222 346 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError, R>,
|
223 347 | ) -> Self {
|
348 + | /* ServiceErrorGenerator.kt:184 */
|
224 349 | match err {
|
350 + | /* ServiceErrorGenerator.kt:185 */
|
225 351 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
352 + | /* ServiceErrorGenerator.kt:186 */
|
226 353 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
227 354 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
228 355 | source: err.into(),
|
229 356 | }),
|
357 + | /* ServiceErrorGenerator.kt:184 */
|
230 358 | }
|
359 + | /* ServiceErrorGenerator.kt:179 */
|
231 360 | }
|
361 + | /* ServiceErrorGenerator.kt:174 */
|
232 362 | }
|
363 + | /* ServiceErrorGenerator.kt:202 */
|
233 364 | impl From<crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError> for Error {
|
365 + | /* ServiceErrorGenerator.kt:203 */
|
234 366 | fn from(err: crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError) -> Self {
|
367 + | /* ServiceErrorGenerator.kt:204 */
|
235 368 | match err {
|
369 + | /* ServiceErrorGenerator.kt:212 */
|
236 370 | crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError::Unhandled(inner) => Error::Unhandled(inner),
|
371 + | /* ServiceErrorGenerator.kt:204 */
|
237 372 | }
|
373 + | /* ServiceErrorGenerator.kt:203 */
|
238 374 | }
|
375 + | /* ServiceErrorGenerator.kt:202 */
|
239 376 | }
|
377 + | /* ServiceErrorGenerator.kt:174 */
|
240 378 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::nested_structures::NestedStructuresError, R>> for Error
|
241 379 | where
|
242 380 | R: Send + Sync + std::fmt::Debug + 'static,
|
243 381 | {
|
382 + | /* ServiceErrorGenerator.kt:179 */
|
244 383 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::nested_structures::NestedStructuresError, R>) -> Self {
|
384 + | /* ServiceErrorGenerator.kt:184 */
|
245 385 | match err {
|
386 + | /* ServiceErrorGenerator.kt:185 */
|
246 387 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
388 + | /* ServiceErrorGenerator.kt:186 */
|
247 389 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
248 390 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
249 391 | source: err.into(),
|
250 392 | }),
|
393 + | /* ServiceErrorGenerator.kt:184 */
|
251 394 | }
|
395 + | /* ServiceErrorGenerator.kt:179 */
|
252 396 | }
|
397 + | /* ServiceErrorGenerator.kt:174 */
|
253 398 | }
|
399 + | /* ServiceErrorGenerator.kt:202 */
|
254 400 | impl From<crate::operation::nested_structures::NestedStructuresError> for Error {
|
401 + | /* ServiceErrorGenerator.kt:203 */
|
255 402 | fn from(err: crate::operation::nested_structures::NestedStructuresError) -> Self {
|
403 + | /* ServiceErrorGenerator.kt:204 */
|
256 404 | match err {
|
405 + | /* ServiceErrorGenerator.kt:212 */
|
257 406 | crate::operation::nested_structures::NestedStructuresError::Unhandled(inner) => Error::Unhandled(inner),
|
407 + | /* ServiceErrorGenerator.kt:204 */
|
258 408 | }
|
409 + | /* ServiceErrorGenerator.kt:203 */
|
259 410 | }
|
411 + | /* ServiceErrorGenerator.kt:202 */
|
260 412 | }
|
413 + | /* ServiceErrorGenerator.kt:174 */
|
261 414 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_and_output::NoInputAndOutputError, R>> for Error
|
262 415 | where
|
263 416 | R: Send + Sync + std::fmt::Debug + 'static,
|
264 417 | {
|
418 + | /* ServiceErrorGenerator.kt:179 */
|
265 419 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_and_output::NoInputAndOutputError, R>) -> Self {
|
420 + | /* ServiceErrorGenerator.kt:184 */
|
266 421 | match err {
|
422 + | /* ServiceErrorGenerator.kt:185 */
|
267 423 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
424 + | /* ServiceErrorGenerator.kt:186 */
|
268 425 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
269 426 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
270 427 | source: err.into(),
|
271 428 | }),
|
429 + | /* ServiceErrorGenerator.kt:184 */
|
272 430 | }
|
431 + | /* ServiceErrorGenerator.kt:179 */
|
273 432 | }
|
433 + | /* ServiceErrorGenerator.kt:174 */
|
274 434 | }
|
435 + | /* ServiceErrorGenerator.kt:202 */
|
275 436 | impl From<crate::operation::no_input_and_output::NoInputAndOutputError> for Error {
|
437 + | /* ServiceErrorGenerator.kt:203 */
|
276 438 | fn from(err: crate::operation::no_input_and_output::NoInputAndOutputError) -> Self {
|
439 + | /* ServiceErrorGenerator.kt:204 */
|
277 440 | match err {
|
441 + | /* ServiceErrorGenerator.kt:212 */
|
278 442 | crate::operation::no_input_and_output::NoInputAndOutputError::Unhandled(inner) => Error::Unhandled(inner),
|
443 + | /* ServiceErrorGenerator.kt:204 */
|
279 444 | }
|
445 + | /* ServiceErrorGenerator.kt:203 */
|
280 446 | }
|
447 + | /* ServiceErrorGenerator.kt:202 */
|
281 448 | }
|
449 + | /* ServiceErrorGenerator.kt:174 */
|
282 450 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_with_content_encoding::PutWithContentEncodingError, R>>
|
283 451 | for Error
|
284 452 | where
|
285 453 | R: Send + Sync + std::fmt::Debug + 'static,
|
286 454 | {
|
455 + | /* ServiceErrorGenerator.kt:179 */
|
287 456 | fn from(
|
288 457 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_with_content_encoding::PutWithContentEncodingError, R>,
|
289 458 | ) -> Self {
|
459 + | /* ServiceErrorGenerator.kt:184 */
|
290 460 | match err {
|
461 + | /* ServiceErrorGenerator.kt:185 */
|
291 462 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
463 + | /* ServiceErrorGenerator.kt:186 */
|
292 464 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
293 465 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
294 466 | source: err.into(),
|
295 467 | }),
|
468 + | /* ServiceErrorGenerator.kt:184 */
|
296 469 | }
|
470 + | /* ServiceErrorGenerator.kt:179 */
|
297 471 | }
|
472 + | /* ServiceErrorGenerator.kt:174 */
|
298 473 | }
|
474 + | /* ServiceErrorGenerator.kt:202 */
|
299 475 | impl From<crate::operation::put_with_content_encoding::PutWithContentEncodingError> for Error {
|
476 + | /* ServiceErrorGenerator.kt:203 */
|
300 477 | fn from(err: crate::operation::put_with_content_encoding::PutWithContentEncodingError) -> Self {
|
478 + | /* ServiceErrorGenerator.kt:204 */
|
301 479 | match err {
|
480 + | /* ServiceErrorGenerator.kt:212 */
|
302 481 | crate::operation::put_with_content_encoding::PutWithContentEncodingError::Unhandled(inner) => Error::Unhandled(inner),
|
482 + | /* ServiceErrorGenerator.kt:204 */
|
303 483 | }
|
484 + | /* ServiceErrorGenerator.kt:203 */
|
304 485 | }
|
486 + | /* ServiceErrorGenerator.kt:202 */
|
305 487 | }
|
488 + | /* ServiceErrorGenerator.kt:174 */
|
306 489 | impl<R>
|
307 490 | From<
|
308 491 | ::aws_smithy_runtime_api::client::result::SdkError<
|
309 492 | crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
|
310 493 | R,
|
311 494 | >,
|
312 495 | > for Error
|
313 496 | where
|
314 497 | R: Send + Sync + std::fmt::Debug + 'static,
|
315 498 | {
|
499 + | /* ServiceErrorGenerator.kt:179 */
|
316 500 | fn from(
|
317 501 | err: ::aws_smithy_runtime_api::client::result::SdkError<
|
318 502 | crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
|
319 503 | R,
|
320 504 | >,
|
321 505 | ) -> Self {
|
506 + | /* ServiceErrorGenerator.kt:184 */
|
322 507 | match err {
|
508 + | /* ServiceErrorGenerator.kt:185 */
|
323 509 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
510 + | /* ServiceErrorGenerator.kt:186 */
|
324 511 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
325 512 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
326 513 | source: err.into(),
|
327 514 | }),
|
515 + | /* ServiceErrorGenerator.kt:184 */
|
328 516 | }
|
517 + | /* ServiceErrorGenerator.kt:179 */
|
329 518 | }
|
519 + | /* ServiceErrorGenerator.kt:174 */
|
330 520 | }
|
521 + | /* ServiceErrorGenerator.kt:202 */
|
331 522 | impl From<crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError> for Error {
|
523 + | /* ServiceErrorGenerator.kt:203 */
|
332 524 | fn from(err: crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError) -> Self {
|
525 + | /* ServiceErrorGenerator.kt:204 */
|
333 526 | match err {
|
527 + | /* ServiceErrorGenerator.kt:212 */
|
334 528 | crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError::Unhandled(inner) => Error::Unhandled(inner),
|
529 + | /* ServiceErrorGenerator.kt:204 */
|
335 530 | }
|
531 + | /* ServiceErrorGenerator.kt:203 */
|
336 532 | }
|
533 + | /* ServiceErrorGenerator.kt:202 */
|
337 534 | }
|
535 + | /* ServiceErrorGenerator.kt:174 */
|
338 536 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lists::QueryListsError, R>> for Error
|
339 537 | where
|
340 538 | R: Send + Sync + std::fmt::Debug + 'static,
|
341 539 | {
|
540 + | /* ServiceErrorGenerator.kt:179 */
|
342 541 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lists::QueryListsError, R>) -> Self {
|
542 + | /* ServiceErrorGenerator.kt:184 */
|
343 543 | match err {
|
544 + | /* ServiceErrorGenerator.kt:185 */
|
344 545 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
546 + | /* ServiceErrorGenerator.kt:186 */
|
345 547 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
346 548 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
347 549 | source: err.into(),
|
348 550 | }),
|
551 + | /* ServiceErrorGenerator.kt:184 */
|
349 552 | }
|
553 + | /* ServiceErrorGenerator.kt:179 */
|
350 554 | }
|
555 + | /* ServiceErrorGenerator.kt:174 */
|
351 556 | }
|
557 + | /* ServiceErrorGenerator.kt:202 */
|
352 558 | impl From<crate::operation::query_lists::QueryListsError> for Error {
|
559 + | /* ServiceErrorGenerator.kt:203 */
|
353 560 | fn from(err: crate::operation::query_lists::QueryListsError) -> Self {
|
561 + | /* ServiceErrorGenerator.kt:204 */
|
354 562 | match err {
|
563 + | /* ServiceErrorGenerator.kt:212 */
|
355 564 | crate::operation::query_lists::QueryListsError::Unhandled(inner) => Error::Unhandled(inner),
|
565 + | /* ServiceErrorGenerator.kt:204 */
|
356 566 | }
|
567 + | /* ServiceErrorGenerator.kt:203 */
|
357 568 | }
|
569 + | /* ServiceErrorGenerator.kt:202 */
|
358 570 | }
|
571 + | /* ServiceErrorGenerator.kt:174 */
|
359 572 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_timestamps::QueryTimestampsError, R>> for Error
|
360 573 | where
|
361 574 | R: Send + Sync + std::fmt::Debug + 'static,
|
362 575 | {
|
576 + | /* ServiceErrorGenerator.kt:179 */
|
363 577 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_timestamps::QueryTimestampsError, R>) -> Self {
|
578 + | /* ServiceErrorGenerator.kt:184 */
|
364 579 | match err {
|
580 + | /* ServiceErrorGenerator.kt:185 */
|
365 581 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
582 + | /* ServiceErrorGenerator.kt:186 */
|
366 583 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
367 584 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
368 585 | source: err.into(),
|
369 586 | }),
|
587 + | /* ServiceErrorGenerator.kt:184 */
|
370 588 | }
|
589 + | /* ServiceErrorGenerator.kt:179 */
|
371 590 | }
|
591 + | /* ServiceErrorGenerator.kt:174 */
|
372 592 | }
|
593 + | /* ServiceErrorGenerator.kt:202 */
|
373 594 | impl From<crate::operation::query_timestamps::QueryTimestampsError> for Error {
|
595 + | /* ServiceErrorGenerator.kt:203 */
|
374 596 | fn from(err: crate::operation::query_timestamps::QueryTimestampsError) -> Self {
|
597 + | /* ServiceErrorGenerator.kt:204 */
|
375 598 | match err {
|
599 + | /* ServiceErrorGenerator.kt:212 */
|
376 600 | crate::operation::query_timestamps::QueryTimestampsError::Unhandled(inner) => Error::Unhandled(inner),
|
601 + | /* ServiceErrorGenerator.kt:204 */
|
377 602 | }
|
603 + | /* ServiceErrorGenerator.kt:203 */
|
378 604 | }
|
605 + | /* ServiceErrorGenerator.kt:202 */
|
379 606 | }
|
607 + | /* ServiceErrorGenerator.kt:174 */
|
380 608 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::recursive_xml_shapes::RecursiveXmlShapesError, R>> for Error
|
381 609 | where
|
382 610 | R: Send + Sync + std::fmt::Debug + 'static,
|
383 611 | {
|
612 + | /* ServiceErrorGenerator.kt:179 */
|
384 613 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::recursive_xml_shapes::RecursiveXmlShapesError, R>) -> Self {
|
614 + | /* ServiceErrorGenerator.kt:184 */
|
385 615 | match err {
|
616 + | /* ServiceErrorGenerator.kt:185 */
|
386 617 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
618 + | /* ServiceErrorGenerator.kt:186 */
|
387 619 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
388 620 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
389 621 | source: err.into(),
|
390 622 | }),
|
623 + | /* ServiceErrorGenerator.kt:184 */
|
391 624 | }
|
625 + | /* ServiceErrorGenerator.kt:179 */
|
392 626 | }
|
627 + | /* ServiceErrorGenerator.kt:174 */
|
393 628 | }
|
629 + | /* ServiceErrorGenerator.kt:202 */
|
394 630 | impl From<crate::operation::recursive_xml_shapes::RecursiveXmlShapesError> for Error {
|
631 + | /* ServiceErrorGenerator.kt:203 */
|
395 632 | fn from(err: crate::operation::recursive_xml_shapes::RecursiveXmlShapesError) -> Self {
|
633 + | /* ServiceErrorGenerator.kt:204 */
|
396 634 | match err {
|
635 + | /* ServiceErrorGenerator.kt:212 */
|
397 636 | crate::operation::recursive_xml_shapes::RecursiveXmlShapesError::Unhandled(inner) => Error::Unhandled(inner),
|
637 + | /* ServiceErrorGenerator.kt:204 */
|
398 638 | }
|
639 + | /* ServiceErrorGenerator.kt:203 */
|
399 640 | }
|
641 + | /* ServiceErrorGenerator.kt:202 */
|
400 642 | }
|
643 + | /* ServiceErrorGenerator.kt:174 */
|
401 644 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_input_params::SimpleInputParamsError, R>> for Error
|
402 645 | where
|
403 646 | R: Send + Sync + std::fmt::Debug + 'static,
|
404 647 | {
|
648 + | /* ServiceErrorGenerator.kt:179 */
|
405 649 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_input_params::SimpleInputParamsError, R>) -> Self {
|
650 + | /* ServiceErrorGenerator.kt:184 */
|
406 651 | match err {
|
652 + | /* ServiceErrorGenerator.kt:185 */
|
407 653 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
654 + | /* ServiceErrorGenerator.kt:186 */
|
408 655 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
409 656 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
410 657 | source: err.into(),
|
411 658 | }),
|
659 + | /* ServiceErrorGenerator.kt:184 */
|
412 660 | }
|
661 + | /* ServiceErrorGenerator.kt:179 */
|
413 662 | }
|
663 + | /* ServiceErrorGenerator.kt:174 */
|
414 664 | }
|
665 + | /* ServiceErrorGenerator.kt:202 */
|
415 666 | impl From<crate::operation::simple_input_params::SimpleInputParamsError> for Error {
|
667 + | /* ServiceErrorGenerator.kt:203 */
|
416 668 | fn from(err: crate::operation::simple_input_params::SimpleInputParamsError) -> Self {
|
669 + | /* ServiceErrorGenerator.kt:204 */
|
417 670 | match err {
|
671 + | /* ServiceErrorGenerator.kt:212 */
|
418 672 | crate::operation::simple_input_params::SimpleInputParamsError::Unhandled(inner) => Error::Unhandled(inner),
|
673 + | /* ServiceErrorGenerator.kt:204 */
|
419 674 | }
|
675 + | /* ServiceErrorGenerator.kt:203 */
|
420 676 | }
|
677 + | /* ServiceErrorGenerator.kt:202 */
|
421 678 | }
|
679 + | /* ServiceErrorGenerator.kt:174 */
|
422 680 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError, R>>
|
423 681 | for Error
|
424 682 | where
|
425 683 | R: Send + Sync + std::fmt::Debug + 'static,
|
426 684 | {
|
685 + | /* ServiceErrorGenerator.kt:179 */
|
427 686 | fn from(
|
428 687 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError, R>,
|
429 688 | ) -> Self {
|
689 + | /* ServiceErrorGenerator.kt:184 */
|
430 690 | match err {
|
691 + | /* ServiceErrorGenerator.kt:185 */
|
431 692 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
693 + | /* ServiceErrorGenerator.kt:186 */
|
432 694 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
433 695 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
434 696 | source: err.into(),
|
435 697 | }),
|
698 + | /* ServiceErrorGenerator.kt:184 */
|
436 699 | }
|
700 + | /* ServiceErrorGenerator.kt:179 */
|
437 701 | }
|
702 + | /* ServiceErrorGenerator.kt:174 */
|
438 703 | }
|
704 + | /* ServiceErrorGenerator.kt:202 */
|
439 705 | impl From<crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError> for Error {
|
706 + | /* ServiceErrorGenerator.kt:203 */
|
440 707 | fn from(err: crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError) -> Self {
|
708 + | /* ServiceErrorGenerator.kt:204 */
|
441 709 | match err {
|
710 + | /* ServiceErrorGenerator.kt:212 */
|
442 711 | crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError::Unhandled(inner) => Error::Unhandled(inner),
|
712 + | /* ServiceErrorGenerator.kt:204 */
|
443 713 | }
|
714 + | /* ServiceErrorGenerator.kt:203 */
|
444 715 | }
|
716 + | /* ServiceErrorGenerator.kt:202 */
|
445 717 | }
|
718 + | /* ServiceErrorGenerator.kt:174 */
|
446 719 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_blobs::XmlBlobsError, R>> for Error
|
447 720 | where
|
448 721 | R: Send + Sync + std::fmt::Debug + 'static,
|
449 722 | {
|
723 + | /* ServiceErrorGenerator.kt:179 */
|
450 724 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_blobs::XmlBlobsError, R>) -> Self {
|
725 + | /* ServiceErrorGenerator.kt:184 */
|
451 726 | match err {
|
727 + | /* ServiceErrorGenerator.kt:185 */
|
452 728 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
729 + | /* ServiceErrorGenerator.kt:186 */
|
453 730 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
454 731 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
455 732 | source: err.into(),
|
456 733 | }),
|
734 + | /* ServiceErrorGenerator.kt:184 */
|
457 735 | }
|
736 + | /* ServiceErrorGenerator.kt:179 */
|
458 737 | }
|
738 + | /* ServiceErrorGenerator.kt:174 */
|
459 739 | }
|
740 + | /* ServiceErrorGenerator.kt:202 */
|
460 741 | impl From<crate::operation::xml_blobs::XmlBlobsError> for Error {
|
742 + | /* ServiceErrorGenerator.kt:203 */
|
461 743 | fn from(err: crate::operation::xml_blobs::XmlBlobsError) -> Self {
|
744 + | /* ServiceErrorGenerator.kt:204 */
|
462 745 | match err {
|
746 + | /* ServiceErrorGenerator.kt:212 */
|
463 747 | crate::operation::xml_blobs::XmlBlobsError::Unhandled(inner) => Error::Unhandled(inner),
|
748 + | /* ServiceErrorGenerator.kt:204 */
|
464 749 | }
|
750 + | /* ServiceErrorGenerator.kt:203 */
|
465 751 | }
|
752 + | /* ServiceErrorGenerator.kt:202 */
|
466 753 | }
|
754 + | /* ServiceErrorGenerator.kt:174 */
|
467 755 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_empty_blobs::XmlEmptyBlobsError, R>> for Error
|
468 756 | where
|
469 757 | R: Send + Sync + std::fmt::Debug + 'static,
|
470 758 | {
|
759 + | /* ServiceErrorGenerator.kt:179 */
|
471 760 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_empty_blobs::XmlEmptyBlobsError, R>) -> Self {
|
761 + | /* ServiceErrorGenerator.kt:184 */
|
472 762 | match err {
|
763 + | /* ServiceErrorGenerator.kt:185 */
|
473 764 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
765 + | /* ServiceErrorGenerator.kt:186 */
|
474 766 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
475 767 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
476 768 | source: err.into(),
|
477 769 | }),
|
770 + | /* ServiceErrorGenerator.kt:184 */
|
478 771 | }
|
772 + | /* ServiceErrorGenerator.kt:179 */
|
479 773 | }
|
774 + | /* ServiceErrorGenerator.kt:174 */
|
480 775 | }
|
776 + | /* ServiceErrorGenerator.kt:202 */
|
481 777 | impl From<crate::operation::xml_empty_blobs::XmlEmptyBlobsError> for Error {
|
778 + | /* ServiceErrorGenerator.kt:203 */
|
482 779 | fn from(err: crate::operation::xml_empty_blobs::XmlEmptyBlobsError) -> Self {
|
780 + | /* ServiceErrorGenerator.kt:204 */
|
483 781 | match err {
|
782 + | /* ServiceErrorGenerator.kt:212 */
|
484 783 | crate::operation::xml_empty_blobs::XmlEmptyBlobsError::Unhandled(inner) => Error::Unhandled(inner),
|
784 + | /* ServiceErrorGenerator.kt:204 */
|
485 785 | }
|
786 + | /* ServiceErrorGenerator.kt:203 */
|
486 787 | }
|
788 + | /* ServiceErrorGenerator.kt:202 */
|
487 789 | }
|
790 + | /* ServiceErrorGenerator.kt:174 */
|
488 791 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_empty_lists::XmlEmptyListsError, R>> for Error
|
489 792 | where
|
490 793 | R: Send + Sync + std::fmt::Debug + 'static,
|
491 794 | {
|
795 + | /* ServiceErrorGenerator.kt:179 */
|
492 796 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_empty_lists::XmlEmptyListsError, R>) -> Self {
|
797 + | /* ServiceErrorGenerator.kt:184 */
|
493 798 | match err {
|
799 + | /* ServiceErrorGenerator.kt:185 */
|
494 800 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
801 + | /* ServiceErrorGenerator.kt:186 */
|
495 802 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
496 803 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
497 804 | source: err.into(),
|
498 805 | }),
|
806 + | /* ServiceErrorGenerator.kt:184 */
|
499 807 | }
|
808 + | /* ServiceErrorGenerator.kt:179 */
|
500 809 | }
|
810 + | /* ServiceErrorGenerator.kt:174 */
|
501 811 | }
|
812 + | /* ServiceErrorGenerator.kt:202 */
|
502 813 | impl From<crate::operation::xml_empty_lists::XmlEmptyListsError> for Error {
|
814 + | /* ServiceErrorGenerator.kt:203 */
|
503 815 | fn from(err: crate::operation::xml_empty_lists::XmlEmptyListsError) -> Self {
|
816 + | /* ServiceErrorGenerator.kt:204 */
|
504 817 | match err {
|
818 + | /* ServiceErrorGenerator.kt:212 */
|
505 819 | crate::operation::xml_empty_lists::XmlEmptyListsError::Unhandled(inner) => Error::Unhandled(inner),
|
820 + | /* ServiceErrorGenerator.kt:204 */
|
506 821 | }
|
822 + | /* ServiceErrorGenerator.kt:203 */
|
507 823 | }
|
824 + | /* ServiceErrorGenerator.kt:202 */
|
508 825 | }
|
826 + | /* ServiceErrorGenerator.kt:174 */
|
509 827 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_enums::XmlEnumsError, R>> for Error
|
510 828 | where
|
511 829 | R: Send + Sync + std::fmt::Debug + 'static,
|
512 830 | {
|
831 + | /* ServiceErrorGenerator.kt:179 */
|
513 832 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_enums::XmlEnumsError, R>) -> Self {
|
833 + | /* ServiceErrorGenerator.kt:184 */
|
514 834 | match err {
|
835 + | /* ServiceErrorGenerator.kt:185 */
|
515 836 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
837 + | /* ServiceErrorGenerator.kt:186 */
|
516 838 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
517 839 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
518 840 | source: err.into(),
|
519 841 | }),
|
842 + | /* ServiceErrorGenerator.kt:184 */
|
520 843 | }
|
844 + | /* ServiceErrorGenerator.kt:179 */
|
521 845 | }
|
846 + | /* ServiceErrorGenerator.kt:174 */
|
522 847 | }
|
848 + | /* ServiceErrorGenerator.kt:202 */
|
523 849 | impl From<crate::operation::xml_enums::XmlEnumsError> for Error {
|
850 + | /* ServiceErrorGenerator.kt:203 */
|
524 851 | fn from(err: crate::operation::xml_enums::XmlEnumsError) -> Self {
|
852 + | /* ServiceErrorGenerator.kt:204 */
|
525 853 | match err {
|
854 + | /* ServiceErrorGenerator.kt:212 */
|
526 855 | crate::operation::xml_enums::XmlEnumsError::Unhandled(inner) => Error::Unhandled(inner),
|
856 + | /* ServiceErrorGenerator.kt:204 */
|
527 857 | }
|
858 + | /* ServiceErrorGenerator.kt:203 */
|
528 859 | }
|
860 + | /* ServiceErrorGenerator.kt:202 */
|
529 861 | }
|
862 + | /* ServiceErrorGenerator.kt:174 */
|
530 863 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_int_enums::XmlIntEnumsError, R>> for Error
|
531 864 | where
|
532 865 | R: Send + Sync + std::fmt::Debug + 'static,
|
533 866 | {
|
867 + | /* ServiceErrorGenerator.kt:179 */
|
534 868 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_int_enums::XmlIntEnumsError, R>) -> Self {
|
869 + | /* ServiceErrorGenerator.kt:184 */
|
535 870 | match err {
|
871 + | /* ServiceErrorGenerator.kt:185 */
|
536 872 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
873 + | /* ServiceErrorGenerator.kt:186 */
|
537 874 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
538 875 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
539 876 | source: err.into(),
|
540 877 | }),
|
878 + | /* ServiceErrorGenerator.kt:184 */
|
541 879 | }
|
880 + | /* ServiceErrorGenerator.kt:179 */
|
542 881 | }
|
882 + | /* ServiceErrorGenerator.kt:174 */
|
543 883 | }
|
884 + | /* ServiceErrorGenerator.kt:202 */
|
544 885 | impl From<crate::operation::xml_int_enums::XmlIntEnumsError> for Error {
|
886 + | /* ServiceErrorGenerator.kt:203 */
|
545 887 | fn from(err: crate::operation::xml_int_enums::XmlIntEnumsError) -> Self {
|
888 + | /* ServiceErrorGenerator.kt:204 */
|
546 889 | match err {
|
890 + | /* ServiceErrorGenerator.kt:212 */
|
547 891 | crate::operation::xml_int_enums::XmlIntEnumsError::Unhandled(inner) => Error::Unhandled(inner),
|
892 + | /* ServiceErrorGenerator.kt:204 */
|
548 893 | }
|
894 + | /* ServiceErrorGenerator.kt:203 */
|
549 895 | }
|
896 + | /* ServiceErrorGenerator.kt:202 */
|
550 897 | }
|
898 + | /* ServiceErrorGenerator.kt:174 */
|
551 899 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_lists::XmlListsError, R>> for Error
|
552 900 | where
|
553 901 | R: Send + Sync + std::fmt::Debug + 'static,
|
554 902 | {
|
903 + | /* ServiceErrorGenerator.kt:179 */
|
555 904 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_lists::XmlListsError, R>) -> Self {
|
905 + | /* ServiceErrorGenerator.kt:184 */
|
556 906 | match err {
|
907 + | /* ServiceErrorGenerator.kt:185 */
|
557 908 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
909 + | /* ServiceErrorGenerator.kt:186 */
|
558 910 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
559 911 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
560 912 | source: err.into(),
|
561 913 | }),
|
914 + | /* ServiceErrorGenerator.kt:184 */
|
562 915 | }
|
916 + | /* ServiceErrorGenerator.kt:179 */
|
563 917 | }
|
918 + | /* ServiceErrorGenerator.kt:174 */
|
564 919 | }
|
920 + | /* ServiceErrorGenerator.kt:202 */
|
565 921 | impl From<crate::operation::xml_lists::XmlListsError> for Error {
|
922 + | /* ServiceErrorGenerator.kt:203 */
|
566 923 | fn from(err: crate::operation::xml_lists::XmlListsError) -> Self {
|
924 + | /* ServiceErrorGenerator.kt:204 */
|
567 925 | match err {
|
926 + | /* ServiceErrorGenerator.kt:212 */
|
568 927 | crate::operation::xml_lists::XmlListsError::Unhandled(inner) => Error::Unhandled(inner),
|
928 + | /* ServiceErrorGenerator.kt:204 */
|
569 929 | }
|
930 + | /* ServiceErrorGenerator.kt:203 */
|
570 931 | }
|
932 + | /* ServiceErrorGenerator.kt:202 */
|
571 933 | }
|
934 + | /* ServiceErrorGenerator.kt:174 */
|
572 935 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_namespaces::XmlNamespacesError, R>> for Error
|
573 936 | where
|
574 937 | R: Send + Sync + std::fmt::Debug + 'static,
|
575 938 | {
|
939 + | /* ServiceErrorGenerator.kt:179 */
|
576 940 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_namespaces::XmlNamespacesError, R>) -> Self {
|
941 + | /* ServiceErrorGenerator.kt:184 */
|
577 942 | match err {
|
943 + | /* ServiceErrorGenerator.kt:185 */
|
578 944 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
945 + | /* ServiceErrorGenerator.kt:186 */
|
579 946 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
580 947 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
581 948 | source: err.into(),
|
582 949 | }),
|
950 + | /* ServiceErrorGenerator.kt:184 */
|
583 951 | }
|
952 + | /* ServiceErrorGenerator.kt:179 */
|
584 953 | }
|
954 + | /* ServiceErrorGenerator.kt:174 */
|
585 955 | }
|
956 + | /* ServiceErrorGenerator.kt:202 */
|
586 957 | impl From<crate::operation::xml_namespaces::XmlNamespacesError> for Error {
|
958 + | /* ServiceErrorGenerator.kt:203 */
|
587 959 | fn from(err: crate::operation::xml_namespaces::XmlNamespacesError) -> Self {
|
960 + | /* ServiceErrorGenerator.kt:204 */
|
588 961 | match err {
|
962 + | /* ServiceErrorGenerator.kt:212 */
|
589 963 | crate::operation::xml_namespaces::XmlNamespacesError::Unhandled(inner) => Error::Unhandled(inner),
|
964 + | /* ServiceErrorGenerator.kt:204 */
|
590 965 | }
|
966 + | /* ServiceErrorGenerator.kt:203 */
|
591 967 | }
|
968 + | /* ServiceErrorGenerator.kt:202 */
|
592 969 | }
|
970 + | /* ServiceErrorGenerator.kt:174 */
|
593 971 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_timestamps::XmlTimestampsError, R>> for Error
|
594 972 | where
|
595 973 | R: Send + Sync + std::fmt::Debug + 'static,
|
596 974 | {
|
975 + | /* ServiceErrorGenerator.kt:179 */
|
597 976 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_timestamps::XmlTimestampsError, R>) -> Self {
|
977 + | /* ServiceErrorGenerator.kt:184 */
|
598 978 | match err {
|
979 + | /* ServiceErrorGenerator.kt:185 */
|
599 980 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
981 + | /* ServiceErrorGenerator.kt:186 */
|
600 982 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
601 983 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
602 984 | source: err.into(),
|
603 985 | }),
|
986 + | /* ServiceErrorGenerator.kt:184 */
|
604 987 | }
|
988 + | /* ServiceErrorGenerator.kt:179 */
|
605 989 | }
|
990 + | /* ServiceErrorGenerator.kt:174 */
|
606 991 | }
|
992 + | /* ServiceErrorGenerator.kt:202 */
|
607 993 | impl From<crate::operation::xml_timestamps::XmlTimestampsError> for Error {
|
994 + | /* ServiceErrorGenerator.kt:203 */
|
608 995 | fn from(err: crate::operation::xml_timestamps::XmlTimestampsError) -> Self {
|
996 + | /* ServiceErrorGenerator.kt:204 */
|
609 997 | match err {
|
998 + | /* ServiceErrorGenerator.kt:212 */
|
610 999 | crate::operation::xml_timestamps::XmlTimestampsError::Unhandled(inner) => Error::Unhandled(inner),
|
1000 + | /* ServiceErrorGenerator.kt:204 */
|
611 1001 | }
|
1002 + | /* ServiceErrorGenerator.kt:203 */
|
612 1003 | }
|
1004 + | /* ServiceErrorGenerator.kt:202 */
|
613 1005 | }
|
1006 + | /* ServiceErrorGenerator.kt:115 */
|
614 1007 | impl ::std::error::Error for Error {
|
1008 + | /* ServiceErrorGenerator.kt:116 */
|
615 1009 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1010 + | /* ServiceErrorGenerator.kt:117 */
|
616 1011 | match self {
|
617 - | Error::ComplexError(inner) => inner.source(),
|
618 - | Error::InvalidGreeting(inner) => inner.source(),
|
619 - | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
|
1012 + | /* ServiceErrorGenerator.kt:119 */ Error::ComplexError(inner) => inner.source(),
|
1013 + | /* ServiceErrorGenerator.kt:119 */ Error::InvalidGreeting(inner) => inner.source(),
|
1014 + | /* ServiceErrorGenerator.kt:121 */
|
1015 + | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source), /* ServiceErrorGenerator.kt:117 */
|
620 1016 | }
|
1017 + | /* ServiceErrorGenerator.kt:116 */
|
621 1018 | }
|
1019 + | /* ServiceErrorGenerator.kt:115 */
|
622 1020 | }
|