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 {
|
8 + | pub /* ServiceErrorGenerator.kt:257 */ enum Error {
|
9 + | /* ServiceErrorGenerator.kt:259 */
|
6 10 | #[allow(missing_docs)] // documentation missing in model
|
11 + | /* ServiceErrorGenerator.kt:262 */
|
7 12 | CaseInsensitiveError(crate::types::error::CaseInsensitiveError),
|
13 + | /* ServiceErrorGenerator.kt:259 */
|
8 14 | #[allow(missing_docs)] // documentation missing in model
|
15 + | /* ServiceErrorGenerator.kt:262 */
|
9 16 | ExtraError(crate::types::error::ExtraError),
|
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.
|
17 + | /// /* 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.
|
18 + | /* ServiceErrorGenerator.kt:262 */
|
11 19 | ValidationError(crate::types::error::ValidationError),
|
12 - | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
20 + | /// /* ServiceErrorGenerator.kt:264 */An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
21 + | /* ServiceErrorGenerator.kt:320 */
|
13 22 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
14 23 | variable wildcard pattern and check `.code()`:
|
15 24 | \
|
16 25 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
17 26 | \
|
18 27 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
|
19 - | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
28 + | /* ServiceErrorGenerator.kt:266 */
|
29 + | Unhandled(crate::error::sealed_unhandled::Unhandled), /* ServiceErrorGenerator.kt:257 */
|
20 30 | }
|
31 + | /* ServiceErrorGenerator.kt:131 */
|
21 32 | impl ::std::fmt::Display for Error {
|
33 + | /* ServiceErrorGenerator.kt:132 */
|
22 34 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
35 + | /* ServiceErrorGenerator.kt:133 */
|
23 36 | match self {
|
24 - | Error::CaseInsensitiveError(inner) => inner.fmt(f),
|
25 - | Error::ExtraError(inner) => inner.fmt(f),
|
26 - | Error::ValidationError(inner) => inner.fmt(f),
|
37 + | /* ServiceErrorGenerator.kt:135 */ Error::CaseInsensitiveError(inner) => inner.fmt(f),
|
38 + | /* ServiceErrorGenerator.kt:135 */ Error::ExtraError(inner) => inner.fmt(f),
|
39 + | /* ServiceErrorGenerator.kt:135 */ Error::ValidationError(inner) => inner.fmt(f),
|
40 + | /* ServiceErrorGenerator.kt:137 */
|
27 41 | Error::Unhandled(_) => {
|
28 42 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
29 43 | write!(f, "unhandled error ({code})")
|
30 44 | } else {
|
31 45 | f.write_str("unhandled error")
|
32 46 | }
|
33 - | }
|
47 + | } /* ServiceErrorGenerator.kt:133 */
|
34 48 | }
|
49 + | /* ServiceErrorGenerator.kt:132 */
|
35 50 | }
|
51 + | /* ServiceErrorGenerator.kt:131 */
|
36 52 | }
|
53 + | /* ServiceErrorGenerator.kt:154 */
|
37 54 | impl From<::aws_smithy_types::error::operation::BuildError> for Error {
|
38 55 | fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
|
39 56 | Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
40 57 | source: value.into(),
|
41 58 | meta: ::std::default::Default::default(),
|
42 59 | })
|
43 60 | }
|
44 61 | }
|
62 + | /* ServiceErrorGenerator.kt:223 */
|
45 63 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
|
46 64 | fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
|
47 65 | match self {
|
48 66 | Self::CaseInsensitiveError(inner) => inner.meta(),
|
49 67 | Self::ExtraError(inner) => inner.meta(),
|
50 68 | Self::ValidationError(inner) => inner.meta(),
|
51 69 | Self::Unhandled(inner) => &inner.meta,
|
52 70 | }
|
53 71 | }
|
54 72 | }
|
73 + | /* ServiceErrorGenerator.kt:174 */
|
55 74 | impl<R>
|
56 75 | From<
|
57 76 | ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError, R>,
|
58 77 | > for Error
|
59 78 | where
|
60 79 | R: Send + Sync + std::fmt::Debug + 'static,
|
61 80 | {
|
81 + | /* ServiceErrorGenerator.kt:179 */
|
62 82 | fn from(
|
63 83 | err: ::aws_smithy_runtime_api::client::result::SdkError<
|
64 84 | crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError,
|
65 85 | R,
|
66 86 | >,
|
67 87 | ) -> Self {
|
88 + | /* ServiceErrorGenerator.kt:184 */
|
68 89 | match err {
|
90 + | /* ServiceErrorGenerator.kt:185 */
|
69 91 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
92 + | /* ServiceErrorGenerator.kt:186 */
|
70 93 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
71 94 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
72 95 | source: err.into(),
|
73 96 | }),
|
97 + | /* ServiceErrorGenerator.kt:184 */
|
74 98 | }
|
99 + | /* ServiceErrorGenerator.kt:179 */
|
75 100 | }
|
101 + | /* ServiceErrorGenerator.kt:174 */
|
76 102 | }
|
103 + | /* ServiceErrorGenerator.kt:202 */
|
77 104 | impl From<crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError> for Error {
|
105 + | /* ServiceErrorGenerator.kt:203 */
|
78 106 | fn from(err: crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError) -> Self {
|
107 + | /* ServiceErrorGenerator.kt:204 */
|
79 108 | match err {
|
109 + | /* ServiceErrorGenerator.kt:207 */
|
80 110 | crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError::CaseInsensitiveError(inner) => {
|
81 111 | Error::CaseInsensitiveError(inner)
|
82 112 | }
|
113 + | /* ServiceErrorGenerator.kt:207 */
|
83 114 | crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError::ExtraError(inner) => Error::ExtraError(inner),
|
115 + | /* ServiceErrorGenerator.kt:212 */
|
84 116 | crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError::Unhandled(inner) => Error::Unhandled(inner),
|
117 + | /* ServiceErrorGenerator.kt:204 */
|
85 118 | }
|
119 + | /* ServiceErrorGenerator.kt:203 */
|
86 120 | }
|
121 + | /* ServiceErrorGenerator.kt:202 */
|
87 122 | }
|
123 + | /* ServiceErrorGenerator.kt:174 */
|
88 124 | impl<R>
|
89 125 | From<
|
90 126 | ::aws_smithy_runtime_api::client::result::SdkError<
|
91 127 | crate::operation::empty_struct_with_content_on_wire_op::EmptyStructWithContentOnWireOpError,
|
92 128 | R,
|
93 129 | >,
|
94 130 | > for Error
|
95 131 | where
|
96 132 | R: Send + Sync + std::fmt::Debug + 'static,
|
97 133 | {
|
134 + | /* ServiceErrorGenerator.kt:179 */
|
98 135 | fn from(
|
99 136 | err: ::aws_smithy_runtime_api::client::result::SdkError<
|
100 137 | crate::operation::empty_struct_with_content_on_wire_op::EmptyStructWithContentOnWireOpError,
|
101 138 | R,
|
102 139 | >,
|
103 140 | ) -> Self {
|
141 + | /* ServiceErrorGenerator.kt:184 */
|
104 142 | match err {
|
143 + | /* ServiceErrorGenerator.kt:185 */
|
105 144 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
145 + | /* ServiceErrorGenerator.kt:186 */
|
106 146 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
107 147 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
108 148 | source: err.into(),
|
109 149 | }),
|
150 + | /* ServiceErrorGenerator.kt:184 */
|
110 151 | }
|
152 + | /* ServiceErrorGenerator.kt:179 */
|
111 153 | }
|
154 + | /* ServiceErrorGenerator.kt:174 */
|
112 155 | }
|
156 + | /* ServiceErrorGenerator.kt:202 */
|
113 157 | impl From<crate::operation::empty_struct_with_content_on_wire_op::EmptyStructWithContentOnWireOpError> for Error {
|
158 + | /* ServiceErrorGenerator.kt:203 */
|
114 159 | fn from(err: crate::operation::empty_struct_with_content_on_wire_op::EmptyStructWithContentOnWireOpError) -> Self {
|
160 + | /* ServiceErrorGenerator.kt:204 */
|
115 161 | match err {
|
162 + | /* ServiceErrorGenerator.kt:207 */
|
116 163 | crate::operation::empty_struct_with_content_on_wire_op::EmptyStructWithContentOnWireOpError::ExtraError(inner) => {
|
117 164 | Error::ExtraError(inner)
|
118 165 | }
|
166 + | /* ServiceErrorGenerator.kt:212 */
|
119 167 | crate::operation::empty_struct_with_content_on_wire_op::EmptyStructWithContentOnWireOpError::Unhandled(inner) => Error::Unhandled(inner),
|
168 + | /* ServiceErrorGenerator.kt:204 */
|
120 169 | }
|
170 + | /* ServiceErrorGenerator.kt:203 */
|
121 171 | }
|
172 + | /* ServiceErrorGenerator.kt:202 */
|
122 173 | }
|
174 + | /* ServiceErrorGenerator.kt:174 */
|
123 175 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enum_query::EnumQueryError, R>> for Error
|
124 176 | where
|
125 177 | R: Send + Sync + std::fmt::Debug + 'static,
|
126 178 | {
|
179 + | /* ServiceErrorGenerator.kt:179 */
|
127 180 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enum_query::EnumQueryError, R>) -> Self {
|
181 + | /* ServiceErrorGenerator.kt:184 */
|
128 182 | match err {
|
183 + | /* ServiceErrorGenerator.kt:185 */
|
129 184 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
185 + | /* ServiceErrorGenerator.kt:186 */
|
130 186 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
131 187 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
132 188 | source: err.into(),
|
133 189 | }),
|
190 + | /* ServiceErrorGenerator.kt:184 */
|
134 191 | }
|
192 + | /* ServiceErrorGenerator.kt:179 */
|
135 193 | }
|
194 + | /* ServiceErrorGenerator.kt:174 */
|
136 195 | }
|
196 + | /* ServiceErrorGenerator.kt:202 */
|
137 197 | impl From<crate::operation::enum_query::EnumQueryError> for Error {
|
198 + | /* ServiceErrorGenerator.kt:203 */
|
138 199 | fn from(err: crate::operation::enum_query::EnumQueryError) -> Self {
|
200 + | /* ServiceErrorGenerator.kt:204 */
|
139 201 | match err {
|
202 + | /* ServiceErrorGenerator.kt:207 */
|
140 203 | crate::operation::enum_query::EnumQueryError::ValidationError(inner) => Error::ValidationError(inner),
|
141 - | crate::operation::enum_query::EnumQueryError::ExtraError(inner) => Error::ExtraError(inner),
|
204 + | /* ServiceErrorGenerator.kt:207 */ crate::operation::enum_query::EnumQueryError::ExtraError(inner) => Error::ExtraError(inner),
|
205 + | /* ServiceErrorGenerator.kt:212 */
|
142 206 | crate::operation::enum_query::EnumQueryError::Unhandled(inner) => Error::Unhandled(inner),
|
207 + | /* ServiceErrorGenerator.kt:204 */
|
143 208 | }
|
209 + | /* ServiceErrorGenerator.kt:203 */
|
144 210 | }
|
211 + | /* ServiceErrorGenerator.kt:202 */
|
145 212 | }
|
213 + | /* ServiceErrorGenerator.kt:174 */
|
146 214 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::escaped_string_values::EscapedStringValuesError, R>> for Error
|
147 215 | where
|
148 216 | R: Send + Sync + std::fmt::Debug + 'static,
|
149 217 | {
|
218 + | /* ServiceErrorGenerator.kt:179 */
|
150 219 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::escaped_string_values::EscapedStringValuesError, R>) -> Self {
|
220 + | /* ServiceErrorGenerator.kt:184 */
|
151 221 | match err {
|
222 + | /* ServiceErrorGenerator.kt:185 */
|
152 223 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
224 + | /* ServiceErrorGenerator.kt:186 */
|
153 225 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
154 226 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
155 227 | source: err.into(),
|
156 228 | }),
|
229 + | /* ServiceErrorGenerator.kt:184 */
|
157 230 | }
|
231 + | /* ServiceErrorGenerator.kt:179 */
|
158 232 | }
|
233 + | /* ServiceErrorGenerator.kt:174 */
|
159 234 | }
|
235 + | /* ServiceErrorGenerator.kt:202 */
|
160 236 | impl From<crate::operation::escaped_string_values::EscapedStringValuesError> for Error {
|
237 + | /* ServiceErrorGenerator.kt:203 */
|
161 238 | fn from(err: crate::operation::escaped_string_values::EscapedStringValuesError) -> Self {
|
239 + | /* ServiceErrorGenerator.kt:204 */
|
162 240 | match err {
|
241 + | /* ServiceErrorGenerator.kt:207 */
|
163 242 | crate::operation::escaped_string_values::EscapedStringValuesError::ValidationError(inner) => Error::ValidationError(inner),
|
243 + | /* ServiceErrorGenerator.kt:207 */
|
164 244 | crate::operation::escaped_string_values::EscapedStringValuesError::ExtraError(inner) => Error::ExtraError(inner),
|
245 + | /* ServiceErrorGenerator.kt:212 */
|
165 246 | crate::operation::escaped_string_values::EscapedStringValuesError::Unhandled(inner) => Error::Unhandled(inner),
|
247 + | /* ServiceErrorGenerator.kt:204 */
|
166 248 | }
|
249 + | /* ServiceErrorGenerator.kt:203 */
|
167 250 | }
|
251 + | /* ServiceErrorGenerator.kt:202 */
|
168 252 | }
|
253 + | /* ServiceErrorGenerator.kt:174 */
|
169 254 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::map_with_enum_key_op::MapWithEnumKeyOpError, R>> for Error
|
170 255 | where
|
171 256 | R: Send + Sync + std::fmt::Debug + 'static,
|
172 257 | {
|
258 + | /* ServiceErrorGenerator.kt:179 */
|
173 259 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::map_with_enum_key_op::MapWithEnumKeyOpError, R>) -> Self {
|
260 + | /* ServiceErrorGenerator.kt:184 */
|
174 261 | match err {
|
262 + | /* ServiceErrorGenerator.kt:185 */
|
175 263 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
264 + | /* ServiceErrorGenerator.kt:186 */
|
176 265 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
177 266 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
178 267 | source: err.into(),
|
179 268 | }),
|
269 + | /* ServiceErrorGenerator.kt:184 */
|
180 270 | }
|
271 + | /* ServiceErrorGenerator.kt:179 */
|
181 272 | }
|
273 + | /* ServiceErrorGenerator.kt:174 */
|
182 274 | }
|
275 + | /* ServiceErrorGenerator.kt:202 */
|
183 276 | impl From<crate::operation::map_with_enum_key_op::MapWithEnumKeyOpError> for Error {
|
277 + | /* ServiceErrorGenerator.kt:203 */
|
184 278 | fn from(err: crate::operation::map_with_enum_key_op::MapWithEnumKeyOpError) -> Self {
|
279 + | /* ServiceErrorGenerator.kt:204 */
|
185 280 | match err {
|
281 + | /* ServiceErrorGenerator.kt:207 */
|
186 282 | crate::operation::map_with_enum_key_op::MapWithEnumKeyOpError::ValidationError(inner) => Error::ValidationError(inner),
|
283 + | /* ServiceErrorGenerator.kt:207 */
|
187 284 | crate::operation::map_with_enum_key_op::MapWithEnumKeyOpError::ExtraError(inner) => Error::ExtraError(inner),
|
285 + | /* ServiceErrorGenerator.kt:212 */
|
188 286 | crate::operation::map_with_enum_key_op::MapWithEnumKeyOpError::Unhandled(inner) => Error::Unhandled(inner),
|
287 + | /* ServiceErrorGenerator.kt:204 */
|
189 288 | }
|
289 + | /* ServiceErrorGenerator.kt:203 */
|
190 290 | }
|
291 + | /* ServiceErrorGenerator.kt:202 */
|
191 292 | }
|
293 + | /* ServiceErrorGenerator.kt:174 */
|
192 294 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::null_in_non_sparse::NullInNonSparseError, R>> for Error
|
193 295 | where
|
194 296 | R: Send + Sync + std::fmt::Debug + 'static,
|
195 297 | {
|
298 + | /* ServiceErrorGenerator.kt:179 */
|
196 299 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::null_in_non_sparse::NullInNonSparseError, R>) -> Self {
|
300 + | /* ServiceErrorGenerator.kt:184 */
|
197 301 | match err {
|
302 + | /* ServiceErrorGenerator.kt:185 */
|
198 303 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
304 + | /* ServiceErrorGenerator.kt:186 */
|
199 305 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
200 306 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
201 307 | source: err.into(),
|
202 308 | }),
|
309 + | /* ServiceErrorGenerator.kt:184 */
|
203 310 | }
|
311 + | /* ServiceErrorGenerator.kt:179 */
|
204 312 | }
|
313 + | /* ServiceErrorGenerator.kt:174 */
|
205 314 | }
|
315 + | /* ServiceErrorGenerator.kt:202 */
|
206 316 | impl From<crate::operation::null_in_non_sparse::NullInNonSparseError> for Error {
|
317 + | /* ServiceErrorGenerator.kt:203 */
|
207 318 | fn from(err: crate::operation::null_in_non_sparse::NullInNonSparseError) -> Self {
|
319 + | /* ServiceErrorGenerator.kt:204 */
|
208 320 | match err {
|
321 + | /* ServiceErrorGenerator.kt:207 */
|
209 322 | crate::operation::null_in_non_sparse::NullInNonSparseError::ExtraError(inner) => Error::ExtraError(inner),
|
323 + | /* ServiceErrorGenerator.kt:212 */
|
210 324 | crate::operation::null_in_non_sparse::NullInNonSparseError::Unhandled(inner) => Error::Unhandled(inner),
|
325 + | /* ServiceErrorGenerator.kt:204 */
|
211 326 | }
|
327 + | /* ServiceErrorGenerator.kt:203 */
|
212 328 | }
|
329 + | /* ServiceErrorGenerator.kt:202 */
|
213 330 | }
|
331 + | /* ServiceErrorGenerator.kt:174 */
|
214 332 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::primitive_int_header::PrimitiveIntHeaderError, R>> for Error
|
215 333 | where
|
216 334 | R: Send + Sync + std::fmt::Debug + 'static,
|
217 335 | {
|
336 + | /* ServiceErrorGenerator.kt:179 */
|
218 337 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::primitive_int_header::PrimitiveIntHeaderError, R>) -> Self {
|
338 + | /* ServiceErrorGenerator.kt:184 */
|
219 339 | match err {
|
340 + | /* ServiceErrorGenerator.kt:185 */
|
220 341 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
342 + | /* ServiceErrorGenerator.kt:186 */
|
221 343 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
222 344 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
223 345 | source: err.into(),
|
224 346 | }),
|
347 + | /* ServiceErrorGenerator.kt:184 */
|
225 348 | }
|
349 + | /* ServiceErrorGenerator.kt:179 */
|
226 350 | }
|
351 + | /* ServiceErrorGenerator.kt:174 */
|
227 352 | }
|
353 + | /* ServiceErrorGenerator.kt:202 */
|
228 354 | impl From<crate::operation::primitive_int_header::PrimitiveIntHeaderError> for Error {
|
355 + | /* ServiceErrorGenerator.kt:203 */
|
229 356 | fn from(err: crate::operation::primitive_int_header::PrimitiveIntHeaderError) -> Self {
|
357 + | /* ServiceErrorGenerator.kt:204 */
|
230 358 | match err {
|
359 + | /* ServiceErrorGenerator.kt:207 */
|
231 360 | crate::operation::primitive_int_header::PrimitiveIntHeaderError::ValidationError(inner) => Error::ValidationError(inner),
|
361 + | /* ServiceErrorGenerator.kt:207 */
|
232 362 | crate::operation::primitive_int_header::PrimitiveIntHeaderError::ExtraError(inner) => Error::ExtraError(inner),
|
363 + | /* ServiceErrorGenerator.kt:212 */
|
233 364 | crate::operation::primitive_int_header::PrimitiveIntHeaderError::Unhandled(inner) => Error::Unhandled(inner),
|
365 + | /* ServiceErrorGenerator.kt:204 */
|
234 366 | }
|
367 + | /* ServiceErrorGenerator.kt:203 */
|
235 368 | }
|
369 + | /* ServiceErrorGenerator.kt:202 */
|
236 370 | }
|
371 + | /* ServiceErrorGenerator.kt:174 */
|
237 372 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::primitive_int_op::PrimitiveIntOpError, R>> for Error
|
238 373 | where
|
239 374 | R: Send + Sync + std::fmt::Debug + 'static,
|
240 375 | {
|
376 + | /* ServiceErrorGenerator.kt:179 */
|
241 377 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::primitive_int_op::PrimitiveIntOpError, R>) -> Self {
|
378 + | /* ServiceErrorGenerator.kt:184 */
|
242 379 | match err {
|
380 + | /* ServiceErrorGenerator.kt:185 */
|
243 381 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
382 + | /* ServiceErrorGenerator.kt:186 */
|
244 383 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
245 384 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
246 385 | source: err.into(),
|
247 386 | }),
|
387 + | /* ServiceErrorGenerator.kt:184 */
|
248 388 | }
|
389 + | /* ServiceErrorGenerator.kt:179 */
|
249 390 | }
|
391 + | /* ServiceErrorGenerator.kt:174 */
|
250 392 | }
|
393 + | /* ServiceErrorGenerator.kt:202 */
|
251 394 | impl From<crate::operation::primitive_int_op::PrimitiveIntOpError> for Error {
|
395 + | /* ServiceErrorGenerator.kt:203 */
|
252 396 | fn from(err: crate::operation::primitive_int_op::PrimitiveIntOpError) -> Self {
|
397 + | /* ServiceErrorGenerator.kt:204 */
|
253 398 | match err {
|
399 + | /* ServiceErrorGenerator.kt:207 */
|
254 400 | crate::operation::primitive_int_op::PrimitiveIntOpError::ExtraError(inner) => Error::ExtraError(inner),
|
401 + | /* ServiceErrorGenerator.kt:212 */
|
255 402 | crate::operation::primitive_int_op::PrimitiveIntOpError::Unhandled(inner) => Error::Unhandled(inner),
|
403 + | /* ServiceErrorGenerator.kt:204 */
|
256 404 | }
|
405 + | /* ServiceErrorGenerator.kt:203 */
|
257 406 | }
|
407 + | /* ServiceErrorGenerator.kt:202 */
|
258 408 | }
|
409 + | /* ServiceErrorGenerator.kt:174 */
|
259 410 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_precedence::QueryPrecedenceError, R>> for Error
|
260 411 | where
|
261 412 | R: Send + Sync + std::fmt::Debug + 'static,
|
262 413 | {
|
414 + | /* ServiceErrorGenerator.kt:179 */
|
263 415 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_precedence::QueryPrecedenceError, R>) -> Self {
|
416 + | /* ServiceErrorGenerator.kt:184 */
|
264 417 | match err {
|
418 + | /* ServiceErrorGenerator.kt:185 */
|
265 419 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
420 + | /* ServiceErrorGenerator.kt:186 */
|
266 421 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
267 422 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
268 423 | source: err.into(),
|
269 424 | }),
|
425 + | /* ServiceErrorGenerator.kt:184 */
|
270 426 | }
|
427 + | /* ServiceErrorGenerator.kt:179 */
|
271 428 | }
|
429 + | /* ServiceErrorGenerator.kt:174 */
|
272 430 | }
|
431 + | /* ServiceErrorGenerator.kt:202 */
|
273 432 | impl From<crate::operation::query_precedence::QueryPrecedenceError> for Error {
|
433 + | /* ServiceErrorGenerator.kt:203 */
|
274 434 | fn from(err: crate::operation::query_precedence::QueryPrecedenceError) -> Self {
|
435 + | /* ServiceErrorGenerator.kt:204 */
|
275 436 | match err {
|
437 + | /* ServiceErrorGenerator.kt:207 */
|
276 438 | crate::operation::query_precedence::QueryPrecedenceError::ExtraError(inner) => Error::ExtraError(inner),
|
439 + | /* ServiceErrorGenerator.kt:212 */
|
277 440 | crate::operation::query_precedence::QueryPrecedenceError::Unhandled(inner) => Error::Unhandled(inner),
|
441 + | /* ServiceErrorGenerator.kt:204 */
|
278 442 | }
|
443 + | /* ServiceErrorGenerator.kt:203 */
|
279 444 | }
|
445 + | /* ServiceErrorGenerator.kt:202 */
|
280 446 | }
|
447 + | /* ServiceErrorGenerator.kt:174 */
|
281 448 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::status_response::StatusResponseError, R>> for Error
|
282 449 | where
|
283 450 | R: Send + Sync + std::fmt::Debug + 'static,
|
284 451 | {
|
452 + | /* ServiceErrorGenerator.kt:179 */
|
285 453 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::status_response::StatusResponseError, R>) -> Self {
|
454 + | /* ServiceErrorGenerator.kt:184 */
|
286 455 | match err {
|
456 + | /* ServiceErrorGenerator.kt:185 */
|
287 457 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
458 + | /* ServiceErrorGenerator.kt:186 */
|
288 459 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
289 460 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
290 461 | source: err.into(),
|
291 462 | }),
|
463 + | /* ServiceErrorGenerator.kt:184 */
|
292 464 | }
|
465 + | /* ServiceErrorGenerator.kt:179 */
|
293 466 | }
|
467 + | /* ServiceErrorGenerator.kt:174 */
|
294 468 | }
|
469 + | /* ServiceErrorGenerator.kt:202 */
|
295 470 | impl From<crate::operation::status_response::StatusResponseError> for Error {
|
471 + | /* ServiceErrorGenerator.kt:203 */
|
296 472 | fn from(err: crate::operation::status_response::StatusResponseError) -> Self {
|
473 + | /* ServiceErrorGenerator.kt:204 */
|
297 474 | match err {
|
475 + | /* ServiceErrorGenerator.kt:207 */
|
298 476 | crate::operation::status_response::StatusResponseError::ExtraError(inner) => Error::ExtraError(inner),
|
477 + | /* ServiceErrorGenerator.kt:212 */
|
299 478 | crate::operation::status_response::StatusResponseError::Unhandled(inner) => Error::Unhandled(inner),
|
479 + | /* ServiceErrorGenerator.kt:204 */
|
300 480 | }
|
481 + | /* ServiceErrorGenerator.kt:203 */
|
301 482 | }
|
483 + | /* ServiceErrorGenerator.kt:202 */
|
302 484 | }
|
485 + | /* ServiceErrorGenerator.kt:174 */
|
303 486 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::string_payload::StringPayloadError, R>> for Error
|
304 487 | where
|
305 488 | R: Send + Sync + std::fmt::Debug + 'static,
|
306 489 | {
|
490 + | /* ServiceErrorGenerator.kt:179 */
|
307 491 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::string_payload::StringPayloadError, R>) -> Self {
|
492 + | /* ServiceErrorGenerator.kt:184 */
|
308 493 | match err {
|
494 + | /* ServiceErrorGenerator.kt:185 */
|
309 495 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
496 + | /* ServiceErrorGenerator.kt:186 */
|
310 497 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
311 498 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
312 499 | source: err.into(),
|
313 500 | }),
|
501 + | /* ServiceErrorGenerator.kt:184 */
|
314 502 | }
|
503 + | /* ServiceErrorGenerator.kt:179 */
|
315 504 | }
|
505 + | /* ServiceErrorGenerator.kt:174 */
|
316 506 | }
|
507 + | /* ServiceErrorGenerator.kt:202 */
|
317 508 | impl From<crate::operation::string_payload::StringPayloadError> for Error {
|
509 + | /* ServiceErrorGenerator.kt:203 */
|
318 510 | fn from(err: crate::operation::string_payload::StringPayloadError) -> Self {
|
511 + | /* ServiceErrorGenerator.kt:204 */
|
319 512 | match err {
|
513 + | /* ServiceErrorGenerator.kt:207 */
|
320 514 | crate::operation::string_payload::StringPayloadError::ExtraError(inner) => Error::ExtraError(inner),
|
515 + | /* ServiceErrorGenerator.kt:212 */
|
321 516 | crate::operation::string_payload::StringPayloadError::Unhandled(inner) => Error::Unhandled(inner),
|
517 + | /* ServiceErrorGenerator.kt:204 */
|
322 518 | }
|
519 + | /* ServiceErrorGenerator.kt:203 */
|
323 520 | }
|
521 + | /* ServiceErrorGenerator.kt:202 */
|
324 522 | }
|
523 + | /* ServiceErrorGenerator.kt:115 */
|
325 524 | impl ::std::error::Error for Error {
|
525 + | /* ServiceErrorGenerator.kt:116 */
|
326 526 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
527 + | /* ServiceErrorGenerator.kt:117 */
|
327 528 | match self {
|
328 - | Error::CaseInsensitiveError(inner) => inner.source(),
|
329 - | Error::ExtraError(inner) => inner.source(),
|
330 - | Error::ValidationError(inner) => inner.source(),
|
331 - | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
|
529 + | /* ServiceErrorGenerator.kt:119 */ Error::CaseInsensitiveError(inner) => inner.source(),
|
530 + | /* ServiceErrorGenerator.kt:119 */ Error::ExtraError(inner) => inner.source(),
|
531 + | /* ServiceErrorGenerator.kt:119 */ Error::ValidationError(inner) => inner.source(),
|
532 + | /* ServiceErrorGenerator.kt:121 */
|
533 + | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source), /* ServiceErrorGenerator.kt:117 */
|
332 534 | }
|
535 + | /* ServiceErrorGenerator.kt:116 */
|
333 536 | }
|
537 + | /* ServiceErrorGenerator.kt:115 */
|
334 538 | }
|