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 has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
|
12 + | /// /* ServiceErrorGenerator.kt:259 */This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
|
13 + | /* ServiceErrorGenerator.kt:262 */
|
9 14 | FooError(crate::types::error::FooError),
|
10 - | /// This error is thrown when an invalid greeting value is provided.
|
15 + | /// /* ServiceErrorGenerator.kt:259 */This error is thrown when an invalid greeting value is provided.
|
16 + | /* ServiceErrorGenerator.kt:262 */
|
11 17 | InvalidGreeting(crate::types::error::InvalidGreeting),
|
12 - | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
18 + | /// /* ServiceErrorGenerator.kt:264 */An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
19 + | /* ServiceErrorGenerator.kt:320 */
|
13 20 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
14 21 | variable wildcard pattern and check `.code()`:
|
15 22 | \
|
16 23 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
17 24 | \
|
18 25 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
|
19 - | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
26 + | /* ServiceErrorGenerator.kt:266 */
|
27 + | Unhandled(crate::error::sealed_unhandled::Unhandled), /* ServiceErrorGenerator.kt:257 */
|
20 28 | }
|
29 + | /* ServiceErrorGenerator.kt:131 */
|
21 30 | impl ::std::fmt::Display for Error {
|
31 + | /* ServiceErrorGenerator.kt:132 */
|
22 32 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
33 + | /* ServiceErrorGenerator.kt:133 */
|
23 34 | match self {
|
24 - | Error::ComplexError(inner) => inner.fmt(f),
|
25 - | Error::FooError(inner) => inner.fmt(f),
|
26 - | Error::InvalidGreeting(inner) => inner.fmt(f),
|
35 + | /* ServiceErrorGenerator.kt:135 */ Error::ComplexError(inner) => inner.fmt(f),
|
36 + | /* ServiceErrorGenerator.kt:135 */ Error::FooError(inner) => inner.fmt(f),
|
37 + | /* ServiceErrorGenerator.kt:135 */ Error::InvalidGreeting(inner) => inner.fmt(f),
|
38 + | /* ServiceErrorGenerator.kt:137 */
|
27 39 | Error::Unhandled(_) => {
|
28 40 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
29 41 | write!(f, "unhandled error ({code})")
|
30 42 | } else {
|
31 43 | f.write_str("unhandled error")
|
32 44 | }
|
33 - | }
|
45 + | } /* ServiceErrorGenerator.kt:133 */
|
34 46 | }
|
47 + | /* ServiceErrorGenerator.kt:132 */
|
35 48 | }
|
49 + | /* ServiceErrorGenerator.kt:131 */
|
36 50 | }
|
51 + | /* ServiceErrorGenerator.kt:154 */
|
37 52 | impl From<::aws_smithy_types::error::operation::BuildError> for Error {
|
38 53 | fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
|
39 54 | Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
40 55 | source: value.into(),
|
41 56 | meta: ::std::default::Default::default(),
|
42 57 | })
|
43 58 | }
|
44 59 | }
|
60 + | /* ServiceErrorGenerator.kt:223 */
|
45 61 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
|
46 62 | fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
|
47 63 | match self {
|
48 64 | Self::ComplexError(inner) => inner.meta(),
|
49 65 | Self::FooError(inner) => inner.meta(),
|
50 66 | Self::InvalidGreeting(inner) => inner.meta(),
|
51 67 | Self::Unhandled(inner) => &inner.meta,
|
52 68 | }
|
53 69 | }
|
54 70 | }
|
71 + | /* ServiceErrorGenerator.kt:174 */
|
55 72 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::content_type_parameters::ContentTypeParametersError, R>> for Error
|
56 73 | where
|
57 74 | R: Send + Sync + std::fmt::Debug + 'static,
|
58 75 | {
|
76 + | /* ServiceErrorGenerator.kt:179 */
|
59 77 | fn from(
|
60 78 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::content_type_parameters::ContentTypeParametersError, R>,
|
61 79 | ) -> Self {
|
80 + | /* ServiceErrorGenerator.kt:184 */
|
62 81 | match err {
|
82 + | /* ServiceErrorGenerator.kt:185 */
|
63 83 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
84 + | /* ServiceErrorGenerator.kt:186 */
|
64 85 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
65 86 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
66 87 | source: err.into(),
|
67 88 | }),
|
89 + | /* ServiceErrorGenerator.kt:184 */
|
68 90 | }
|
91 + | /* ServiceErrorGenerator.kt:179 */
|
69 92 | }
|
93 + | /* ServiceErrorGenerator.kt:174 */
|
70 94 | }
|
95 + | /* ServiceErrorGenerator.kt:202 */
|
71 96 | impl From<crate::operation::content_type_parameters::ContentTypeParametersError> for Error {
|
97 + | /* ServiceErrorGenerator.kt:203 */
|
72 98 | fn from(err: crate::operation::content_type_parameters::ContentTypeParametersError) -> Self {
|
99 + | /* ServiceErrorGenerator.kt:204 */
|
73 100 | match err {
|
101 + | /* ServiceErrorGenerator.kt:212 */
|
74 102 | crate::operation::content_type_parameters::ContentTypeParametersError::Unhandled(inner) => Error::Unhandled(inner),
|
103 + | /* ServiceErrorGenerator.kt:204 */
|
75 104 | }
|
105 + | /* ServiceErrorGenerator.kt:203 */
|
76 106 | }
|
107 + | /* ServiceErrorGenerator.kt:202 */
|
77 108 | }
|
109 + | /* ServiceErrorGenerator.kt:174 */
|
78 110 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError, R>>
|
79 111 | for Error
|
80 112 | where
|
81 113 | R: Send + Sync + std::fmt::Debug + 'static,
|
82 114 | {
|
115 + | /* ServiceErrorGenerator.kt:179 */
|
83 116 | fn from(
|
84 117 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError, R>,
|
85 118 | ) -> Self {
|
119 + | /* ServiceErrorGenerator.kt:184 */
|
86 120 | match err {
|
121 + | /* ServiceErrorGenerator.kt:185 */
|
87 122 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
123 + | /* ServiceErrorGenerator.kt:186 */
|
88 124 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
89 125 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
90 126 | source: err.into(),
|
91 127 | }),
|
128 + | /* ServiceErrorGenerator.kt:184 */
|
92 129 | }
|
130 + | /* ServiceErrorGenerator.kt:179 */
|
93 131 | }
|
132 + | /* ServiceErrorGenerator.kt:174 */
|
94 133 | }
|
134 + | /* ServiceErrorGenerator.kt:202 */
|
95 135 | impl From<crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError> for Error {
|
136 + | /* ServiceErrorGenerator.kt:203 */
|
96 137 | fn from(err: crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError) -> Self {
|
138 + | /* ServiceErrorGenerator.kt:204 */
|
97 139 | match err {
|
140 + | /* ServiceErrorGenerator.kt:212 */
|
98 141 | crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError::Unhandled(inner) => Error::Unhandled(inner),
|
142 + | /* ServiceErrorGenerator.kt:204 */
|
99 143 | }
|
144 + | /* ServiceErrorGenerator.kt:203 */
|
100 145 | }
|
146 + | /* ServiceErrorGenerator.kt:202 */
|
101 147 | }
|
148 + | /* ServiceErrorGenerator.kt:174 */
|
102 149 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::endpoint_operation::EndpointOperationError, R>> for Error
|
103 150 | where
|
104 151 | R: Send + Sync + std::fmt::Debug + 'static,
|
105 152 | {
|
153 + | /* ServiceErrorGenerator.kt:179 */
|
106 154 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::endpoint_operation::EndpointOperationError, R>) -> Self {
|
155 + | /* ServiceErrorGenerator.kt:184 */
|
107 156 | match err {
|
157 + | /* ServiceErrorGenerator.kt:185 */
|
108 158 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
159 + | /* ServiceErrorGenerator.kt:186 */
|
109 160 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
110 161 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
111 162 | source: err.into(),
|
112 163 | }),
|
164 + | /* ServiceErrorGenerator.kt:184 */
|
113 165 | }
|
166 + | /* ServiceErrorGenerator.kt:179 */
|
114 167 | }
|
168 + | /* ServiceErrorGenerator.kt:174 */
|
115 169 | }
|
170 + | /* ServiceErrorGenerator.kt:202 */
|
116 171 | impl From<crate::operation::endpoint_operation::EndpointOperationError> for Error {
|
172 + | /* ServiceErrorGenerator.kt:203 */
|
117 173 | fn from(err: crate::operation::endpoint_operation::EndpointOperationError) -> Self {
|
174 + | /* ServiceErrorGenerator.kt:204 */
|
118 175 | match err {
|
176 + | /* ServiceErrorGenerator.kt:212 */
|
119 177 | crate::operation::endpoint_operation::EndpointOperationError::Unhandled(inner) => Error::Unhandled(inner),
|
178 + | /* ServiceErrorGenerator.kt:204 */
|
120 179 | }
|
180 + | /* ServiceErrorGenerator.kt:203 */
|
121 181 | }
|
182 + | /* ServiceErrorGenerator.kt:202 */
|
122 183 | }
|
184 + | /* ServiceErrorGenerator.kt:174 */
|
123 185 | impl<R>
|
124 186 | From<
|
125 187 | ::aws_smithy_runtime_api::client::result::SdkError<
|
126 188 | crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError,
|
127 189 | R,
|
128 190 | >,
|
129 191 | > for Error
|
130 192 | where
|
131 193 | R: Send + Sync + std::fmt::Debug + 'static,
|
132 194 | {
|
195 + | /* ServiceErrorGenerator.kt:179 */
|
133 196 | fn from(
|
134 197 | err: ::aws_smithy_runtime_api::client::result::SdkError<
|
135 198 | crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError,
|
136 199 | R,
|
137 200 | >,
|
138 201 | ) -> Self {
|
202 + | /* ServiceErrorGenerator.kt:184 */
|
139 203 | match err {
|
204 + | /* ServiceErrorGenerator.kt:185 */
|
140 205 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
206 + | /* ServiceErrorGenerator.kt:186 */
|
141 207 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
142 208 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
143 209 | source: err.into(),
|
144 210 | }),
|
211 + | /* ServiceErrorGenerator.kt:184 */
|
145 212 | }
|
213 + | /* ServiceErrorGenerator.kt:179 */
|
146 214 | }
|
215 + | /* ServiceErrorGenerator.kt:174 */
|
147 216 | }
|
217 + | /* ServiceErrorGenerator.kt:202 */
|
148 218 | impl From<crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError> for Error {
|
219 + | /* ServiceErrorGenerator.kt:203 */
|
149 220 | fn from(err: crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError) -> Self {
|
221 + | /* ServiceErrorGenerator.kt:204 */
|
150 222 | match err {
|
223 + | /* ServiceErrorGenerator.kt:212 */
|
151 224 | crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError::Unhandled(inner) => Error::Unhandled(inner),
|
225 + | /* ServiceErrorGenerator.kt:204 */
|
152 226 | }
|
227 + | /* ServiceErrorGenerator.kt:203 */
|
153 228 | }
|
229 + | /* ServiceErrorGenerator.kt:202 */
|
154 230 | }
|
231 + | /* ServiceErrorGenerator.kt:174 */
|
155 232 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::greeting_with_errors::GreetingWithErrorsError, R>> for Error
|
156 233 | where
|
157 234 | R: Send + Sync + std::fmt::Debug + 'static,
|
158 235 | {
|
236 + | /* ServiceErrorGenerator.kt:179 */
|
159 237 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::greeting_with_errors::GreetingWithErrorsError, R>) -> Self {
|
238 + | /* ServiceErrorGenerator.kt:184 */
|
160 239 | match err {
|
240 + | /* ServiceErrorGenerator.kt:185 */
|
161 241 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
242 + | /* ServiceErrorGenerator.kt:186 */
|
162 243 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
163 244 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
164 245 | source: err.into(),
|
165 246 | }),
|
247 + | /* ServiceErrorGenerator.kt:184 */
|
166 248 | }
|
249 + | /* ServiceErrorGenerator.kt:179 */
|
167 250 | }
|
251 + | /* ServiceErrorGenerator.kt:174 */
|
168 252 | }
|
253 + | /* ServiceErrorGenerator.kt:202 */
|
169 254 | impl From<crate::operation::greeting_with_errors::GreetingWithErrorsError> for Error {
|
255 + | /* ServiceErrorGenerator.kt:203 */
|
170 256 | fn from(err: crate::operation::greeting_with_errors::GreetingWithErrorsError) -> Self {
|
257 + | /* ServiceErrorGenerator.kt:204 */
|
171 258 | match err {
|
259 + | /* ServiceErrorGenerator.kt:207 */
|
172 260 | crate::operation::greeting_with_errors::GreetingWithErrorsError::InvalidGreeting(inner) => Error::InvalidGreeting(inner),
|
261 + | /* ServiceErrorGenerator.kt:207 */
|
173 262 | crate::operation::greeting_with_errors::GreetingWithErrorsError::ComplexError(inner) => Error::ComplexError(inner),
|
263 + | /* ServiceErrorGenerator.kt:207 */
|
174 264 | crate::operation::greeting_with_errors::GreetingWithErrorsError::FooError(inner) => Error::FooError(inner),
|
265 + | /* ServiceErrorGenerator.kt:212 */
|
175 266 | crate::operation::greeting_with_errors::GreetingWithErrorsError::Unhandled(inner) => Error::Unhandled(inner),
|
267 + | /* ServiceErrorGenerator.kt:204 */
|
176 268 | }
|
269 + | /* ServiceErrorGenerator.kt:203 */
|
177 270 | }
|
271 + | /* ServiceErrorGenerator.kt:202 */
|
178 272 | }
|
273 + | /* ServiceErrorGenerator.kt:174 */
|
179 274 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::host_with_path_operation::HostWithPathOperationError, R>> for Error
|
180 275 | where
|
181 276 | R: Send + Sync + std::fmt::Debug + 'static,
|
182 277 | {
|
278 + | /* ServiceErrorGenerator.kt:179 */
|
183 279 | fn from(
|
184 280 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::host_with_path_operation::HostWithPathOperationError, R>,
|
185 281 | ) -> Self {
|
282 + | /* ServiceErrorGenerator.kt:184 */
|
186 283 | match err {
|
284 + | /* ServiceErrorGenerator.kt:185 */
|
187 285 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
286 + | /* ServiceErrorGenerator.kt:186 */
|
188 287 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
189 288 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
190 289 | source: err.into(),
|
191 290 | }),
|
291 + | /* ServiceErrorGenerator.kt:184 */
|
192 292 | }
|
293 + | /* ServiceErrorGenerator.kt:179 */
|
193 294 | }
|
295 + | /* ServiceErrorGenerator.kt:174 */
|
194 296 | }
|
297 + | /* ServiceErrorGenerator.kt:202 */
|
195 298 | impl From<crate::operation::host_with_path_operation::HostWithPathOperationError> for Error {
|
299 + | /* ServiceErrorGenerator.kt:203 */
|
196 300 | fn from(err: crate::operation::host_with_path_operation::HostWithPathOperationError) -> Self {
|
301 + | /* ServiceErrorGenerator.kt:204 */
|
197 302 | match err {
|
303 + | /* ServiceErrorGenerator.kt:212 */
|
198 304 | crate::operation::host_with_path_operation::HostWithPathOperationError::Unhandled(inner) => Error::Unhandled(inner),
|
305 + | /* ServiceErrorGenerator.kt:204 */
|
199 306 | }
|
307 + | /* ServiceErrorGenerator.kt:203 */
|
200 308 | }
|
309 + | /* ServiceErrorGenerator.kt:202 */
|
201 310 | }
|
311 + | /* ServiceErrorGenerator.kt:174 */
|
202 312 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::json_unions::JsonUnionsError, R>> for Error
|
203 313 | where
|
204 314 | R: Send + Sync + std::fmt::Debug + 'static,
|
205 315 | {
|
316 + | /* ServiceErrorGenerator.kt:179 */
|
206 317 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::json_unions::JsonUnionsError, R>) -> Self {
|
318 + | /* ServiceErrorGenerator.kt:184 */
|
207 319 | match err {
|
320 + | /* ServiceErrorGenerator.kt:185 */
|
208 321 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
322 + | /* ServiceErrorGenerator.kt:186 */
|
209 323 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
210 324 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
211 325 | source: err.into(),
|
212 326 | }),
|
327 + | /* ServiceErrorGenerator.kt:184 */
|
213 328 | }
|
329 + | /* ServiceErrorGenerator.kt:179 */
|
214 330 | }
|
331 + | /* ServiceErrorGenerator.kt:174 */
|
215 332 | }
|
333 + | /* ServiceErrorGenerator.kt:202 */
|
216 334 | impl From<crate::operation::json_unions::JsonUnionsError> for Error {
|
335 + | /* ServiceErrorGenerator.kt:203 */
|
217 336 | fn from(err: crate::operation::json_unions::JsonUnionsError) -> Self {
|
337 + | /* ServiceErrorGenerator.kt:204 */
|
218 338 | match err {
|
339 + | /* ServiceErrorGenerator.kt:212 */
|
219 340 | crate::operation::json_unions::JsonUnionsError::Unhandled(inner) => Error::Unhandled(inner),
|
341 + | /* ServiceErrorGenerator.kt:204 */
|
220 342 | }
|
343 + | /* ServiceErrorGenerator.kt:203 */
|
221 344 | }
|
345 + | /* ServiceErrorGenerator.kt:202 */
|
222 346 | }
|
347 + | /* ServiceErrorGenerator.kt:174 */
|
223 348 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_and_no_output::NoInputAndNoOutputError, R>> for Error
|
224 349 | where
|
225 350 | R: Send + Sync + std::fmt::Debug + 'static,
|
226 351 | {
|
352 + | /* ServiceErrorGenerator.kt:179 */
|
227 353 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_and_no_output::NoInputAndNoOutputError, R>) -> Self {
|
354 + | /* ServiceErrorGenerator.kt:184 */
|
228 355 | match err {
|
356 + | /* ServiceErrorGenerator.kt:185 */
|
229 357 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
358 + | /* ServiceErrorGenerator.kt:186 */
|
230 359 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
231 360 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
232 361 | source: err.into(),
|
233 362 | }),
|
363 + | /* ServiceErrorGenerator.kt:184 */
|
234 364 | }
|
365 + | /* ServiceErrorGenerator.kt:179 */
|
235 366 | }
|
367 + | /* ServiceErrorGenerator.kt:174 */
|
236 368 | }
|
369 + | /* ServiceErrorGenerator.kt:202 */
|
237 370 | impl From<crate::operation::no_input_and_no_output::NoInputAndNoOutputError> for Error {
|
371 + | /* ServiceErrorGenerator.kt:203 */
|
238 372 | fn from(err: crate::operation::no_input_and_no_output::NoInputAndNoOutputError) -> Self {
|
373 + | /* ServiceErrorGenerator.kt:204 */
|
239 374 | match err {
|
375 + | /* ServiceErrorGenerator.kt:212 */
|
240 376 | crate::operation::no_input_and_no_output::NoInputAndNoOutputError::Unhandled(inner) => Error::Unhandled(inner),
|
377 + | /* ServiceErrorGenerator.kt:204 */
|
241 378 | }
|
379 + | /* ServiceErrorGenerator.kt:203 */
|
242 380 | }
|
381 + | /* ServiceErrorGenerator.kt:202 */
|
243 382 | }
|
383 + | /* ServiceErrorGenerator.kt:174 */
|
244 384 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_and_output::NoInputAndOutputError, R>> for Error
|
245 385 | where
|
246 386 | R: Send + Sync + std::fmt::Debug + 'static,
|
247 387 | {
|
388 + | /* ServiceErrorGenerator.kt:179 */
|
248 389 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_and_output::NoInputAndOutputError, R>) -> Self {
|
390 + | /* ServiceErrorGenerator.kt:184 */
|
249 391 | match err {
|
392 + | /* ServiceErrorGenerator.kt:185 */
|
250 393 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
394 + | /* ServiceErrorGenerator.kt:186 */
|
251 395 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
252 396 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
253 397 | source: err.into(),
|
254 398 | }),
|
399 + | /* ServiceErrorGenerator.kt:184 */
|
255 400 | }
|
401 + | /* ServiceErrorGenerator.kt:179 */
|
256 402 | }
|
403 + | /* ServiceErrorGenerator.kt:174 */
|
257 404 | }
|
405 + | /* ServiceErrorGenerator.kt:202 */
|
258 406 | impl From<crate::operation::no_input_and_output::NoInputAndOutputError> for Error {
|
407 + | /* ServiceErrorGenerator.kt:203 */
|
259 408 | fn from(err: crate::operation::no_input_and_output::NoInputAndOutputError) -> Self {
|
409 + | /* ServiceErrorGenerator.kt:204 */
|
260 410 | match err {
|
411 + | /* ServiceErrorGenerator.kt:212 */
|
261 412 | crate::operation::no_input_and_output::NoInputAndOutputError::Unhandled(inner) => Error::Unhandled(inner),
|
413 + | /* ServiceErrorGenerator.kt:204 */
|
262 414 | }
|
415 + | /* ServiceErrorGenerator.kt:203 */
|
263 416 | }
|
417 + | /* ServiceErrorGenerator.kt:202 */
|
264 418 | }
|
419 + | /* ServiceErrorGenerator.kt:174 */
|
265 420 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::operation_with_defaults::OperationWithDefaultsError, R>> for Error
|
266 421 | where
|
267 422 | R: Send + Sync + std::fmt::Debug + 'static,
|
268 423 | {
|
424 + | /* ServiceErrorGenerator.kt:179 */
|
269 425 | fn from(
|
270 426 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::operation_with_defaults::OperationWithDefaultsError, R>,
|
271 427 | ) -> Self {
|
428 + | /* ServiceErrorGenerator.kt:184 */
|
272 429 | match err {
|
430 + | /* ServiceErrorGenerator.kt:185 */
|
273 431 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
432 + | /* ServiceErrorGenerator.kt:186 */
|
274 433 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
275 434 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
276 435 | source: err.into(),
|
277 436 | }),
|
437 + | /* ServiceErrorGenerator.kt:184 */
|
278 438 | }
|
439 + | /* ServiceErrorGenerator.kt:179 */
|
279 440 | }
|
441 + | /* ServiceErrorGenerator.kt:174 */
|
280 442 | }
|
443 + | /* ServiceErrorGenerator.kt:202 */
|
281 444 | impl From<crate::operation::operation_with_defaults::OperationWithDefaultsError> for Error {
|
445 + | /* ServiceErrorGenerator.kt:203 */
|
282 446 | fn from(err: crate::operation::operation_with_defaults::OperationWithDefaultsError) -> Self {
|
447 + | /* ServiceErrorGenerator.kt:204 */
|
283 448 | match err {
|
449 + | /* ServiceErrorGenerator.kt:212 */
|
284 450 | crate::operation::operation_with_defaults::OperationWithDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
|
451 + | /* ServiceErrorGenerator.kt:204 */
|
285 452 | }
|
453 + | /* ServiceErrorGenerator.kt:203 */
|
286 454 | }
|
455 + | /* ServiceErrorGenerator.kt:202 */
|
287 456 | }
|
457 + | /* ServiceErrorGenerator.kt:174 */
|
288 458 | impl<R>
|
289 459 | From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::operation_with_nested_structure::OperationWithNestedStructureError, R>>
|
290 460 | for Error
|
291 461 | where
|
292 462 | R: Send + Sync + std::fmt::Debug + 'static,
|
293 463 | {
|
464 + | /* ServiceErrorGenerator.kt:179 */
|
294 465 | fn from(
|
295 466 | err: ::aws_smithy_runtime_api::client::result::SdkError<
|
296 467 | crate::operation::operation_with_nested_structure::OperationWithNestedStructureError,
|
297 468 | R,
|
298 469 | >,
|
299 470 | ) -> Self {
|
471 + | /* ServiceErrorGenerator.kt:184 */
|
300 472 | match err {
|
473 + | /* ServiceErrorGenerator.kt:185 */
|
301 474 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
475 + | /* ServiceErrorGenerator.kt:186 */
|
302 476 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
303 477 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
304 478 | source: err.into(),
|
305 479 | }),
|
480 + | /* ServiceErrorGenerator.kt:184 */
|
306 481 | }
|
482 + | /* ServiceErrorGenerator.kt:179 */
|
307 483 | }
|
484 + | /* ServiceErrorGenerator.kt:174 */
|
308 485 | }
|
486 + | /* ServiceErrorGenerator.kt:202 */
|
309 487 | impl From<crate::operation::operation_with_nested_structure::OperationWithNestedStructureError> for Error {
|
488 + | /* ServiceErrorGenerator.kt:203 */
|
310 489 | fn from(err: crate::operation::operation_with_nested_structure::OperationWithNestedStructureError) -> Self {
|
490 + | /* ServiceErrorGenerator.kt:204 */
|
311 491 | match err {
|
492 + | /* ServiceErrorGenerator.kt:212 */
|
312 493 | crate::operation::operation_with_nested_structure::OperationWithNestedStructureError::Unhandled(inner) => Error::Unhandled(inner),
|
494 + | /* ServiceErrorGenerator.kt:204 */
|
313 495 | }
|
496 + | /* ServiceErrorGenerator.kt:203 */
|
314 497 | }
|
498 + | /* ServiceErrorGenerator.kt:202 */
|
315 499 | }
|
500 + | /* ServiceErrorGenerator.kt:174 */
|
316 501 | impl<R>
|
317 502 | From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::operation_with_required_members::OperationWithRequiredMembersError, R>>
|
318 503 | for Error
|
319 504 | where
|
320 505 | R: Send + Sync + std::fmt::Debug + 'static,
|
321 506 | {
|
507 + | /* ServiceErrorGenerator.kt:179 */
|
322 508 | fn from(
|
323 509 | err: ::aws_smithy_runtime_api::client::result::SdkError<
|
324 510 | crate::operation::operation_with_required_members::OperationWithRequiredMembersError,
|
325 511 | R,
|
326 512 | >,
|
327 513 | ) -> Self {
|
514 + | /* ServiceErrorGenerator.kt:184 */
|
328 515 | match err {
|
516 + | /* ServiceErrorGenerator.kt:185 */
|
329 517 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
518 + | /* ServiceErrorGenerator.kt:186 */
|
330 519 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
331 520 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
332 521 | source: err.into(),
|
333 522 | }),
|
523 + | /* ServiceErrorGenerator.kt:184 */
|
334 524 | }
|
525 + | /* ServiceErrorGenerator.kt:179 */
|
335 526 | }
|
527 + | /* ServiceErrorGenerator.kt:174 */
|
336 528 | }
|
529 + | /* ServiceErrorGenerator.kt:202 */
|
337 530 | impl From<crate::operation::operation_with_required_members::OperationWithRequiredMembersError> for Error {
|
531 + | /* ServiceErrorGenerator.kt:203 */
|
338 532 | fn from(err: crate::operation::operation_with_required_members::OperationWithRequiredMembersError) -> Self {
|
533 + | /* ServiceErrorGenerator.kt:204 */
|
339 534 | match err {
|
535 + | /* ServiceErrorGenerator.kt:212 */
|
340 536 | crate::operation::operation_with_required_members::OperationWithRequiredMembersError::Unhandled(inner) => Error::Unhandled(inner),
|
537 + | /* ServiceErrorGenerator.kt:204 */
|
341 538 | }
|
539 + | /* ServiceErrorGenerator.kt:203 */
|
342 540 | }
|
541 + | /* ServiceErrorGenerator.kt:202 */
|
343 542 | }
|
543 + | /* ServiceErrorGenerator.kt:174 */
|
344 544 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_with_content_encoding::PutWithContentEncodingError, R>>
|
345 545 | for Error
|
346 546 | where
|
347 547 | R: Send + Sync + std::fmt::Debug + 'static,
|
348 548 | {
|
549 + | /* ServiceErrorGenerator.kt:179 */
|
349 550 | fn from(
|
350 551 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_with_content_encoding::PutWithContentEncodingError, R>,
|
351 552 | ) -> Self {
|
553 + | /* ServiceErrorGenerator.kt:184 */
|
352 554 | match err {
|
555 + | /* ServiceErrorGenerator.kt:185 */
|
353 556 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
557 + | /* ServiceErrorGenerator.kt:186 */
|
354 558 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
355 559 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
356 560 | source: err.into(),
|
357 561 | }),
|
562 + | /* ServiceErrorGenerator.kt:184 */
|
358 563 | }
|
564 + | /* ServiceErrorGenerator.kt:179 */
|
359 565 | }
|
566 + | /* ServiceErrorGenerator.kt:174 */
|
360 567 | }
|
568 + | /* ServiceErrorGenerator.kt:202 */
|
361 569 | impl From<crate::operation::put_with_content_encoding::PutWithContentEncodingError> for Error {
|
570 + | /* ServiceErrorGenerator.kt:203 */
|
362 571 | fn from(err: crate::operation::put_with_content_encoding::PutWithContentEncodingError) -> Self {
|
572 + | /* ServiceErrorGenerator.kt:204 */
|
363 573 | match err {
|
574 + | /* ServiceErrorGenerator.kt:212 */
|
364 575 | crate::operation::put_with_content_encoding::PutWithContentEncodingError::Unhandled(inner) => Error::Unhandled(inner),
|
576 + | /* ServiceErrorGenerator.kt:204 */
|
365 577 | }
|
578 + | /* ServiceErrorGenerator.kt:203 */
|
366 579 | }
|
580 + | /* ServiceErrorGenerator.kt:202 */
|
367 581 | }
|
582 + | /* ServiceErrorGenerator.kt:174 */
|
368 583 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_scalar_properties::SimpleScalarPropertiesError, R>> for Error
|
369 584 | where
|
370 585 | R: Send + Sync + std::fmt::Debug + 'static,
|
371 586 | {
|
587 + | /* ServiceErrorGenerator.kt:179 */
|
372 588 | fn from(
|
373 589 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_scalar_properties::SimpleScalarPropertiesError, R>,
|
374 590 | ) -> Self {
|
591 + | /* ServiceErrorGenerator.kt:184 */
|
375 592 | match err {
|
593 + | /* ServiceErrorGenerator.kt:185 */
|
376 594 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
595 + | /* ServiceErrorGenerator.kt:186 */
|
377 596 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
378 597 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
379 598 | source: err.into(),
|
380 599 | }),
|
600 + | /* ServiceErrorGenerator.kt:184 */
|
381 601 | }
|
602 + | /* ServiceErrorGenerator.kt:179 */
|
382 603 | }
|
604 + | /* ServiceErrorGenerator.kt:174 */
|
383 605 | }
|
606 + | /* ServiceErrorGenerator.kt:202 */
|
384 607 | impl From<crate::operation::simple_scalar_properties::SimpleScalarPropertiesError> for Error {
|
608 + | /* ServiceErrorGenerator.kt:203 */
|
385 609 | fn from(err: crate::operation::simple_scalar_properties::SimpleScalarPropertiesError) -> Self {
|
610 + | /* ServiceErrorGenerator.kt:204 */
|
386 611 | match err {
|
612 + | /* ServiceErrorGenerator.kt:212 */
|
387 613 | crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::Unhandled(inner) => Error::Unhandled(inner),
|
614 + | /* ServiceErrorGenerator.kt:204 */
|
388 615 | }
|
616 + | /* ServiceErrorGenerator.kt:203 */
|
389 617 | }
|
618 + | /* ServiceErrorGenerator.kt:202 */
|
390 619 | }
|
620 + | /* ServiceErrorGenerator.kt:115 */
|
391 621 | impl ::std::error::Error for Error {
|
622 + | /* ServiceErrorGenerator.kt:116 */
|
392 623 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
624 + | /* ServiceErrorGenerator.kt:117 */
|
393 625 | match self {
|
394 - | Error::ComplexError(inner) => inner.source(),
|
395 - | Error::FooError(inner) => inner.source(),
|
396 - | Error::InvalidGreeting(inner) => inner.source(),
|
397 - | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
|
626 + | /* ServiceErrorGenerator.kt:119 */ Error::ComplexError(inner) => inner.source(),
|
627 + | /* ServiceErrorGenerator.kt:119 */ Error::FooError(inner) => inner.source(),
|
628 + | /* ServiceErrorGenerator.kt:119 */ Error::InvalidGreeting(inner) => inner.source(),
|
629 + | /* ServiceErrorGenerator.kt:121 */
|
630 + | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source), /* ServiceErrorGenerator.kt:117 */
|
398 631 | }
|
632 + | /* ServiceErrorGenerator.kt:116 */
|
399 633 | }
|
634 + | /* ServiceErrorGenerator.kt:115 */
|
400 635 | }
|