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 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
15 + | /// /* ServiceErrorGenerator.kt:259 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
16 + | /* ServiceErrorGenerator.kt:262 */
|
11 17 | ValidationError(crate::types::error::ValidationError),
|
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::InvalidGreeting(inner) => inner.fmt(f),
|
26 - | Error::ValidationError(inner) => inner.fmt(f),
|
35 + | /* ServiceErrorGenerator.kt:135 */ Error::ComplexError(inner) => inner.fmt(f),
|
36 + | /* ServiceErrorGenerator.kt:135 */ Error::InvalidGreeting(inner) => inner.fmt(f),
|
37 + | /* ServiceErrorGenerator.kt:135 */ Error::ValidationError(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 | }
|
45 + | } /* ServiceErrorGenerator.kt:133 */
|
33 46 | }
|
47 + | /* ServiceErrorGenerator.kt:132 */
|
34 48 | }
|
35 - | }
|
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::InvalidGreeting(inner) => inner.meta(),
|
50 66 | Self::ValidationError(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::empty_input_output::EmptyInputOutputError, 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(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::empty_input_output::EmptyInputOutputError, R>) -> Self {
|
78 + | /* ServiceErrorGenerator.kt:184 */
|
60 79 | match err {
|
80 + | /* ServiceErrorGenerator.kt:185 */
|
61 81 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
82 + | /* ServiceErrorGenerator.kt:186 */
|
62 83 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
63 84 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
64 85 | source: err.into(),
|
65 86 | }),
|
87 + | /* ServiceErrorGenerator.kt:184 */
|
66 88 | }
|
89 + | /* ServiceErrorGenerator.kt:179 */
|
67 90 | }
|
91 + | /* ServiceErrorGenerator.kt:174 */
|
68 92 | }
|
93 + | /* ServiceErrorGenerator.kt:202 */
|
69 94 | impl From<crate::operation::empty_input_output::EmptyInputOutputError> for Error {
|
95 + | /* ServiceErrorGenerator.kt:203 */
|
70 96 | fn from(err: crate::operation::empty_input_output::EmptyInputOutputError) -> Self {
|
97 + | /* ServiceErrorGenerator.kt:204 */
|
71 98 | match err {
|
99 + | /* ServiceErrorGenerator.kt:212 */
|
72 100 | crate::operation::empty_input_output::EmptyInputOutputError::Unhandled(inner) => Error::Unhandled(inner),
|
101 + | /* ServiceErrorGenerator.kt:204 */
|
73 102 | }
|
103 + | /* ServiceErrorGenerator.kt:203 */
|
74 104 | }
|
105 + | /* ServiceErrorGenerator.kt:202 */
|
75 106 | }
|
107 + | /* ServiceErrorGenerator.kt:174 */
|
76 108 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::float16::Float16Error, R>> for Error
|
77 109 | where
|
78 110 | R: Send + Sync + std::fmt::Debug + 'static,
|
79 111 | {
|
112 + | /* ServiceErrorGenerator.kt:179 */
|
80 113 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::float16::Float16Error, R>) -> Self {
|
114 + | /* ServiceErrorGenerator.kt:184 */
|
81 115 | match err {
|
116 + | /* ServiceErrorGenerator.kt:185 */
|
82 117 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
118 + | /* ServiceErrorGenerator.kt:186 */
|
83 119 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
84 120 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
85 121 | source: err.into(),
|
86 122 | }),
|
123 + | /* ServiceErrorGenerator.kt:184 */
|
87 124 | }
|
125 + | /* ServiceErrorGenerator.kt:179 */
|
88 126 | }
|
127 + | /* ServiceErrorGenerator.kt:174 */
|
89 128 | }
|
129 + | /* ServiceErrorGenerator.kt:202 */
|
90 130 | impl From<crate::operation::float16::Float16Error> for Error {
|
131 + | /* ServiceErrorGenerator.kt:203 */
|
91 132 | fn from(err: crate::operation::float16::Float16Error) -> Self {
|
133 + | /* ServiceErrorGenerator.kt:204 */
|
92 134 | match err {
|
135 + | /* ServiceErrorGenerator.kt:212 */
|
93 136 | crate::operation::float16::Float16Error::Unhandled(inner) => Error::Unhandled(inner),
|
137 + | /* ServiceErrorGenerator.kt:204 */
|
94 138 | }
|
139 + | /* ServiceErrorGenerator.kt:203 */
|
95 140 | }
|
141 + | /* ServiceErrorGenerator.kt:202 */
|
96 142 | }
|
143 + | /* ServiceErrorGenerator.kt:174 */
|
97 144 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::fractional_seconds::FractionalSecondsError, R>> for Error
|
98 145 | where
|
99 146 | R: Send + Sync + std::fmt::Debug + 'static,
|
100 147 | {
|
148 + | /* ServiceErrorGenerator.kt:179 */
|
101 149 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::fractional_seconds::FractionalSecondsError, R>) -> Self {
|
150 + | /* ServiceErrorGenerator.kt:184 */
|
102 151 | match err {
|
152 + | /* ServiceErrorGenerator.kt:185 */
|
103 153 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
154 + | /* ServiceErrorGenerator.kt:186 */
|
104 155 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
105 156 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
106 157 | source: err.into(),
|
107 158 | }),
|
159 + | /* ServiceErrorGenerator.kt:184 */
|
108 160 | }
|
161 + | /* ServiceErrorGenerator.kt:179 */
|
109 162 | }
|
163 + | /* ServiceErrorGenerator.kt:174 */
|
110 164 | }
|
165 + | /* ServiceErrorGenerator.kt:202 */
|
111 166 | impl From<crate::operation::fractional_seconds::FractionalSecondsError> for Error {
|
167 + | /* ServiceErrorGenerator.kt:203 */
|
112 168 | fn from(err: crate::operation::fractional_seconds::FractionalSecondsError) -> Self {
|
169 + | /* ServiceErrorGenerator.kt:204 */
|
113 170 | match err {
|
171 + | /* ServiceErrorGenerator.kt:212 */
|
114 172 | crate::operation::fractional_seconds::FractionalSecondsError::Unhandled(inner) => Error::Unhandled(inner),
|
173 + | /* ServiceErrorGenerator.kt:204 */
|
115 174 | }
|
175 + | /* ServiceErrorGenerator.kt:203 */
|
116 176 | }
|
177 + | /* ServiceErrorGenerator.kt:202 */
|
117 178 | }
|
179 + | /* ServiceErrorGenerator.kt:174 */
|
118 180 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::greeting_with_errors::GreetingWithErrorsError, R>> for Error
|
119 181 | where
|
120 182 | R: Send + Sync + std::fmt::Debug + 'static,
|
121 183 | {
|
184 + | /* ServiceErrorGenerator.kt:179 */
|
122 185 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::greeting_with_errors::GreetingWithErrorsError, R>) -> Self {
|
186 + | /* ServiceErrorGenerator.kt:184 */
|
123 187 | match err {
|
188 + | /* ServiceErrorGenerator.kt:185 */
|
124 189 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
190 + | /* ServiceErrorGenerator.kt:186 */
|
125 191 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
126 192 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
127 193 | source: err.into(),
|
128 194 | }),
|
195 + | /* ServiceErrorGenerator.kt:184 */
|
129 196 | }
|
197 + | /* ServiceErrorGenerator.kt:179 */
|
130 198 | }
|
199 + | /* ServiceErrorGenerator.kt:174 */
|
131 200 | }
|
201 + | /* ServiceErrorGenerator.kt:202 */
|
132 202 | impl From<crate::operation::greeting_with_errors::GreetingWithErrorsError> for Error {
|
203 + | /* ServiceErrorGenerator.kt:203 */
|
133 204 | fn from(err: crate::operation::greeting_with_errors::GreetingWithErrorsError) -> Self {
|
205 + | /* ServiceErrorGenerator.kt:204 */
|
134 206 | match err {
|
207 + | /* ServiceErrorGenerator.kt:207 */
|
135 208 | crate::operation::greeting_with_errors::GreetingWithErrorsError::InvalidGreeting(inner) => Error::InvalidGreeting(inner),
|
209 + | /* ServiceErrorGenerator.kt:207 */
|
136 210 | crate::operation::greeting_with_errors::GreetingWithErrorsError::ComplexError(inner) => Error::ComplexError(inner),
|
211 + | /* ServiceErrorGenerator.kt:212 */
|
137 212 | crate::operation::greeting_with_errors::GreetingWithErrorsError::Unhandled(inner) => Error::Unhandled(inner),
|
213 + | /* ServiceErrorGenerator.kt:204 */
|
138 214 | }
|
215 + | /* ServiceErrorGenerator.kt:203 */
|
139 216 | }
|
217 + | /* ServiceErrorGenerator.kt:202 */
|
140 218 | }
|
219 + | /* ServiceErrorGenerator.kt:174 */
|
141 220 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_output::NoInputOutputError, R>> for Error
|
142 221 | where
|
143 222 | R: Send + Sync + std::fmt::Debug + 'static,
|
144 223 | {
|
224 + | /* ServiceErrorGenerator.kt:179 */
|
145 225 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_output::NoInputOutputError, R>) -> Self {
|
226 + | /* ServiceErrorGenerator.kt:184 */
|
146 227 | match err {
|
228 + | /* ServiceErrorGenerator.kt:185 */
|
147 229 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
230 + | /* ServiceErrorGenerator.kt:186 */
|
148 231 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
149 232 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
150 233 | source: err.into(),
|
151 234 | }),
|
235 + | /* ServiceErrorGenerator.kt:184 */
|
152 236 | }
|
237 + | /* ServiceErrorGenerator.kt:179 */
|
153 238 | }
|
239 + | /* ServiceErrorGenerator.kt:174 */
|
154 240 | }
|
241 + | /* ServiceErrorGenerator.kt:202 */
|
155 242 | impl From<crate::operation::no_input_output::NoInputOutputError> for Error {
|
243 + | /* ServiceErrorGenerator.kt:203 */
|
156 244 | fn from(err: crate::operation::no_input_output::NoInputOutputError) -> Self {
|
245 + | /* ServiceErrorGenerator.kt:204 */
|
157 246 | match err {
|
247 + | /* ServiceErrorGenerator.kt:212 */
|
158 248 | crate::operation::no_input_output::NoInputOutputError::Unhandled(inner) => Error::Unhandled(inner),
|
249 + | /* ServiceErrorGenerator.kt:204 */
|
159 250 | }
|
251 + | /* ServiceErrorGenerator.kt:203 */
|
160 252 | }
|
253 + | /* ServiceErrorGenerator.kt:202 */
|
161 254 | }
|
255 + | /* ServiceErrorGenerator.kt:174 */
|
162 256 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::operation_with_defaults::OperationWithDefaultsError, R>> for Error
|
163 257 | where
|
164 258 | R: Send + Sync + std::fmt::Debug + 'static,
|
165 259 | {
|
260 + | /* ServiceErrorGenerator.kt:179 */
|
166 261 | fn from(
|
167 262 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::operation_with_defaults::OperationWithDefaultsError, R>,
|
168 263 | ) -> Self {
|
264 + | /* ServiceErrorGenerator.kt:184 */
|
169 265 | match err {
|
266 + | /* ServiceErrorGenerator.kt:185 */
|
170 267 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
268 + | /* ServiceErrorGenerator.kt:186 */
|
171 269 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
172 270 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
173 271 | source: err.into(),
|
174 272 | }),
|
273 + | /* ServiceErrorGenerator.kt:184 */
|
175 274 | }
|
275 + | /* ServiceErrorGenerator.kt:179 */
|
176 276 | }
|
277 + | /* ServiceErrorGenerator.kt:174 */
|
177 278 | }
|
279 + | /* ServiceErrorGenerator.kt:202 */
|
178 280 | impl From<crate::operation::operation_with_defaults::OperationWithDefaultsError> for Error {
|
281 + | /* ServiceErrorGenerator.kt:203 */
|
179 282 | fn from(err: crate::operation::operation_with_defaults::OperationWithDefaultsError) -> Self {
|
283 + | /* ServiceErrorGenerator.kt:204 */
|
180 284 | match err {
|
285 + | /* ServiceErrorGenerator.kt:207 */
|
181 286 | crate::operation::operation_with_defaults::OperationWithDefaultsError::ValidationError(inner) => Error::ValidationError(inner),
|
287 + | /* ServiceErrorGenerator.kt:212 */
|
182 288 | crate::operation::operation_with_defaults::OperationWithDefaultsError::Unhandled(inner) => Error::Unhandled(inner),
|
289 + | /* ServiceErrorGenerator.kt:204 */
|
183 290 | }
|
291 + | /* ServiceErrorGenerator.kt:203 */
|
184 292 | }
|
293 + | /* ServiceErrorGenerator.kt:202 */
|
185 294 | }
|
295 + | /* ServiceErrorGenerator.kt:174 */
|
186 296 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::optional_input_output::OptionalInputOutputError, R>> for Error
|
187 297 | where
|
188 298 | R: Send + Sync + std::fmt::Debug + 'static,
|
189 299 | {
|
300 + | /* ServiceErrorGenerator.kt:179 */
|
190 301 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::optional_input_output::OptionalInputOutputError, R>) -> Self {
|
302 + | /* ServiceErrorGenerator.kt:184 */
|
191 303 | match err {
|
304 + | /* ServiceErrorGenerator.kt:185 */
|
192 305 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
306 + | /* ServiceErrorGenerator.kt:186 */
|
193 307 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
194 308 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
195 309 | source: err.into(),
|
196 310 | }),
|
311 + | /* ServiceErrorGenerator.kt:184 */
|
197 312 | }
|
313 + | /* ServiceErrorGenerator.kt:179 */
|
198 314 | }
|
315 + | /* ServiceErrorGenerator.kt:174 */
|
199 316 | }
|
317 + | /* ServiceErrorGenerator.kt:202 */
|
200 318 | impl From<crate::operation::optional_input_output::OptionalInputOutputError> for Error {
|
319 + | /* ServiceErrorGenerator.kt:203 */
|
201 320 | fn from(err: crate::operation::optional_input_output::OptionalInputOutputError) -> Self {
|
321 + | /* ServiceErrorGenerator.kt:204 */
|
202 322 | match err {
|
323 + | /* ServiceErrorGenerator.kt:212 */
|
203 324 | crate::operation::optional_input_output::OptionalInputOutputError::Unhandled(inner) => Error::Unhandled(inner),
|
325 + | /* ServiceErrorGenerator.kt:204 */
|
204 326 | }
|
327 + | /* ServiceErrorGenerator.kt:203 */
|
205 328 | }
|
329 + | /* ServiceErrorGenerator.kt:202 */
|
206 330 | }
|
331 + | /* ServiceErrorGenerator.kt:174 */
|
207 332 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::recursive_shapes::RecursiveShapesError, R>> for Error
|
208 333 | where
|
209 334 | R: Send + Sync + std::fmt::Debug + 'static,
|
210 335 | {
|
336 + | /* ServiceErrorGenerator.kt:179 */
|
211 337 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::recursive_shapes::RecursiveShapesError, R>) -> Self {
|
338 + | /* ServiceErrorGenerator.kt:184 */
|
212 339 | match err {
|
340 + | /* ServiceErrorGenerator.kt:185 */
|
213 341 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
342 + | /* ServiceErrorGenerator.kt:186 */
|
214 343 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
215 344 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
216 345 | source: err.into(),
|
217 346 | }),
|
347 + | /* ServiceErrorGenerator.kt:184 */
|
218 348 | }
|
349 + | /* ServiceErrorGenerator.kt:179 */
|
219 350 | }
|
351 + | /* ServiceErrorGenerator.kt:174 */
|
220 352 | }
|
353 + | /* ServiceErrorGenerator.kt:202 */
|
221 354 | impl From<crate::operation::recursive_shapes::RecursiveShapesError> for Error {
|
355 + | /* ServiceErrorGenerator.kt:203 */
|
222 356 | fn from(err: crate::operation::recursive_shapes::RecursiveShapesError) -> Self {
|
357 + | /* ServiceErrorGenerator.kt:204 */
|
223 358 | match err {
|
359 + | /* ServiceErrorGenerator.kt:212 */
|
224 360 | crate::operation::recursive_shapes::RecursiveShapesError::Unhandled(inner) => Error::Unhandled(inner),
|
361 + | /* ServiceErrorGenerator.kt:204 */
|
225 362 | }
|
363 + | /* ServiceErrorGenerator.kt:203 */
|
226 364 | }
|
365 + | /* ServiceErrorGenerator.kt:202 */
|
227 366 | }
|
367 + | /* ServiceErrorGenerator.kt:174 */
|
228 368 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rpc_v2_cbor_dense_maps::RpcV2CborDenseMapsError, R>> for Error
|
229 369 | where
|
230 370 | R: Send + Sync + std::fmt::Debug + 'static,
|
231 371 | {
|
372 + | /* ServiceErrorGenerator.kt:179 */
|
232 373 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rpc_v2_cbor_dense_maps::RpcV2CborDenseMapsError, R>) -> Self {
|
374 + | /* ServiceErrorGenerator.kt:184 */
|
233 375 | match err {
|
376 + | /* ServiceErrorGenerator.kt:185 */
|
234 377 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
378 + | /* ServiceErrorGenerator.kt:186 */
|
235 379 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
236 380 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
237 381 | source: err.into(),
|
238 382 | }),
|
383 + | /* ServiceErrorGenerator.kt:184 */
|
239 384 | }
|
385 + | /* ServiceErrorGenerator.kt:179 */
|
240 386 | }
|
387 + | /* ServiceErrorGenerator.kt:174 */
|
241 388 | }
|
389 + | /* ServiceErrorGenerator.kt:202 */
|
242 390 | impl From<crate::operation::rpc_v2_cbor_dense_maps::RpcV2CborDenseMapsError> for Error {
|
391 + | /* ServiceErrorGenerator.kt:203 */
|
243 392 | fn from(err: crate::operation::rpc_v2_cbor_dense_maps::RpcV2CborDenseMapsError) -> Self {
|
393 + | /* ServiceErrorGenerator.kt:204 */
|
244 394 | match err {
|
395 + | /* ServiceErrorGenerator.kt:207 */
|
245 396 | crate::operation::rpc_v2_cbor_dense_maps::RpcV2CborDenseMapsError::ValidationError(inner) => Error::ValidationError(inner),
|
397 + | /* ServiceErrorGenerator.kt:212 */
|
246 398 | crate::operation::rpc_v2_cbor_dense_maps::RpcV2CborDenseMapsError::Unhandled(inner) => Error::Unhandled(inner),
|
399 + | /* ServiceErrorGenerator.kt:204 */
|
247 400 | }
|
401 + | /* ServiceErrorGenerator.kt:203 */
|
248 402 | }
|
403 + | /* ServiceErrorGenerator.kt:202 */
|
249 404 | }
|
405 + | /* ServiceErrorGenerator.kt:174 */
|
250 406 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError, R>> for Error
|
251 407 | where
|
252 408 | R: Send + Sync + std::fmt::Debug + 'static,
|
253 409 | {
|
410 + | /* ServiceErrorGenerator.kt:179 */
|
254 411 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError, R>) -> Self {
|
412 + | /* ServiceErrorGenerator.kt:184 */
|
255 413 | match err {
|
414 + | /* ServiceErrorGenerator.kt:185 */
|
256 415 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
416 + | /* ServiceErrorGenerator.kt:186 */
|
257 417 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
258 418 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
259 419 | source: err.into(),
|
260 420 | }),
|
421 + | /* ServiceErrorGenerator.kt:184 */
|
261 422 | }
|
423 + | /* ServiceErrorGenerator.kt:179 */
|
262 424 | }
|
425 + | /* ServiceErrorGenerator.kt:174 */
|
263 426 | }
|
427 + | /* ServiceErrorGenerator.kt:202 */
|
264 428 | impl From<crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError> for Error {
|
429 + | /* ServiceErrorGenerator.kt:203 */
|
265 430 | fn from(err: crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError) -> Self {
|
431 + | /* ServiceErrorGenerator.kt:204 */
|
266 432 | match err {
|
433 + | /* ServiceErrorGenerator.kt:207 */
|
267 434 | crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError::ValidationError(inner) => Error::ValidationError(inner),
|
435 + | /* ServiceErrorGenerator.kt:212 */
|
268 436 | crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError::Unhandled(inner) => Error::Unhandled(inner),
|
437 + | /* ServiceErrorGenerator.kt:204 */
|
269 438 | }
|
439 + | /* ServiceErrorGenerator.kt:203 */
|
270 440 | }
|
441 + | /* ServiceErrorGenerator.kt:202 */
|
271 442 | }
|
443 + | /* ServiceErrorGenerator.kt:174 */
|
272 444 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError, R>> for Error
|
273 445 | where
|
274 446 | R: Send + Sync + std::fmt::Debug + 'static,
|
275 447 | {
|
448 + | /* ServiceErrorGenerator.kt:179 */
|
276 449 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError, R>) -> Self {
|
450 + | /* ServiceErrorGenerator.kt:184 */
|
277 451 | match err {
|
452 + | /* ServiceErrorGenerator.kt:185 */
|
278 453 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
454 + | /* ServiceErrorGenerator.kt:186 */
|
279 455 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
280 456 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
281 457 | source: err.into(),
|
282 458 | }),
|
459 + | /* ServiceErrorGenerator.kt:184 */
|
283 460 | }
|
461 + | /* ServiceErrorGenerator.kt:179 */
|
284 462 | }
|
463 + | /* ServiceErrorGenerator.kt:174 */
|
285 464 | }
|
465 + | /* ServiceErrorGenerator.kt:202 */
|
286 466 | impl From<crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError> for Error {
|
467 + | /* ServiceErrorGenerator.kt:203 */
|
287 468 | fn from(err: crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError) -> Self {
|
469 + | /* ServiceErrorGenerator.kt:204 */
|
288 470 | match err {
|
471 + | /* ServiceErrorGenerator.kt:207 */
|
289 472 | crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError::ValidationError(inner) => Error::ValidationError(inner),
|
473 + | /* ServiceErrorGenerator.kt:212 */
|
290 474 | crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError::Unhandled(inner) => Error::Unhandled(inner),
|
475 + | /* ServiceErrorGenerator.kt:204 */
|
291 476 | }
|
477 + | /* ServiceErrorGenerator.kt:203 */
|
292 478 | }
|
479 + | /* ServiceErrorGenerator.kt:202 */
|
293 480 | }
|
481 + | /* ServiceErrorGenerator.kt:174 */
|
294 482 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_scalar_properties::SimpleScalarPropertiesError, R>> for Error
|
295 483 | where
|
296 484 | R: Send + Sync + std::fmt::Debug + 'static,
|
297 485 | {
|
486 + | /* ServiceErrorGenerator.kt:179 */
|
298 487 | fn from(
|
299 488 | err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_scalar_properties::SimpleScalarPropertiesError, R>,
|
300 489 | ) -> Self {
|
490 + | /* ServiceErrorGenerator.kt:184 */
|
301 491 | match err {
|
492 + | /* ServiceErrorGenerator.kt:185 */
|
302 493 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
494 + | /* ServiceErrorGenerator.kt:186 */
|
303 495 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
304 496 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
305 497 | source: err.into(),
|
306 498 | }),
|
499 + | /* ServiceErrorGenerator.kt:184 */
|
307 500 | }
|
501 + | /* ServiceErrorGenerator.kt:179 */
|
308 502 | }
|
503 + | /* ServiceErrorGenerator.kt:174 */
|
309 504 | }
|
505 + | /* ServiceErrorGenerator.kt:202 */
|
310 506 | impl From<crate::operation::simple_scalar_properties::SimpleScalarPropertiesError> for Error {
|
507 + | /* ServiceErrorGenerator.kt:203 */
|
311 508 | fn from(err: crate::operation::simple_scalar_properties::SimpleScalarPropertiesError) -> Self {
|
509 + | /* ServiceErrorGenerator.kt:204 */
|
312 510 | match err {
|
511 + | /* ServiceErrorGenerator.kt:212 */
|
313 512 | crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::Unhandled(inner) => Error::Unhandled(inner),
|
513 + | /* ServiceErrorGenerator.kt:204 */
|
314 514 | }
|
515 + | /* ServiceErrorGenerator.kt:203 */
|
315 516 | }
|
517 + | /* ServiceErrorGenerator.kt:202 */
|
316 518 | }
|
519 + | /* ServiceErrorGenerator.kt:174 */
|
317 520 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::sparse_nulls_operation::SparseNullsOperationError, R>> for Error
|
318 521 | where
|
319 522 | R: Send + Sync + std::fmt::Debug + 'static,
|
320 523 | {
|
524 + | /* ServiceErrorGenerator.kt:179 */
|
321 525 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::sparse_nulls_operation::SparseNullsOperationError, R>) -> Self {
|
526 + | /* ServiceErrorGenerator.kt:184 */
|
322 527 | match err {
|
528 + | /* ServiceErrorGenerator.kt:185 */
|
323 529 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
530 + | /* ServiceErrorGenerator.kt:186 */
|
324 531 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
325 532 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
326 533 | source: err.into(),
|
327 534 | }),
|
535 + | /* ServiceErrorGenerator.kt:184 */
|
328 536 | }
|
537 + | /* ServiceErrorGenerator.kt:179 */
|
329 538 | }
|
539 + | /* ServiceErrorGenerator.kt:174 */
|
330 540 | }
|
541 + | /* ServiceErrorGenerator.kt:202 */
|
331 542 | impl From<crate::operation::sparse_nulls_operation::SparseNullsOperationError> for Error {
|
543 + | /* ServiceErrorGenerator.kt:203 */
|
332 544 | fn from(err: crate::operation::sparse_nulls_operation::SparseNullsOperationError) -> Self {
|
545 + | /* ServiceErrorGenerator.kt:204 */
|
333 546 | match err {
|
547 + | /* ServiceErrorGenerator.kt:212 */
|
334 548 | crate::operation::sparse_nulls_operation::SparseNullsOperationError::Unhandled(inner) => Error::Unhandled(inner),
|
549 + | /* ServiceErrorGenerator.kt:204 */
|
335 550 | }
|
551 + | /* ServiceErrorGenerator.kt:203 */
|
336 552 | }
|
553 + | /* ServiceErrorGenerator.kt:202 */
|
337 554 | }
|
555 + | /* ServiceErrorGenerator.kt:115 */
|
338 556 | impl ::std::error::Error for Error {
|
557 + | /* ServiceErrorGenerator.kt:116 */
|
339 558 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
559 + | /* ServiceErrorGenerator.kt:117 */
|
340 560 | match self {
|
341 - | Error::ComplexError(inner) => inner.source(),
|
342 - | Error::InvalidGreeting(inner) => inner.source(),
|
343 - | Error::ValidationError(inner) => inner.source(),
|
344 - | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
|
561 + | /* ServiceErrorGenerator.kt:119 */ Error::ComplexError(inner) => inner.source(),
|
562 + | /* ServiceErrorGenerator.kt:119 */ Error::InvalidGreeting(inner) => inner.source(),
|
563 + | /* ServiceErrorGenerator.kt:119 */ Error::ValidationError(inner) => inner.source(),
|
564 + | /* ServiceErrorGenerator.kt:121 */
|
565 + | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source), /* ServiceErrorGenerator.kt:117 */
|
345 566 | }
|
567 + | /* ServiceErrorGenerator.kt:116 */
|
346 568 | }
|
569 + | /* ServiceErrorGenerator.kt:115 */
|
347 570 | }
|