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