Skip to main content

aws_sdk_elementalinference/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>You do not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request could not be completed due to a conflict.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The request timed out before the service returned a response. This is a temporary condition. Retry the request. If the problem persists, contact AWS Support.</p>
11    GatewayTimedOutException(crate::types::error::GatewayTimedOutException),
12    /// <p>An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.</p>
13    InternalServerErrorException(crate::types::error::InternalServerErrorException),
14    /// <p>The resource specified in the action doesn't exist.</p>
15    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16    /// <p>The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.</p>
17    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
18    /// <p>The service is temporarily unable to handle the request. Retry the request. If the problem persists, contact AWS Support.</p>
19    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
20    /// <p>The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.</p>
21    TooManyRequestException(crate::types::error::TooManyRequestException),
22    /// <p>The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.</p>
23    ValidationException(crate::types::error::ValidationException),
24    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
25    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
26    variable wildcard pattern and check `.code()`:
27     \
28    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
29     \
30    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
31    Unhandled(crate::error::sealed_unhandled::Unhandled),
32}
33impl ::std::fmt::Display for Error {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        match self {
36            Error::AccessDeniedException(inner) => inner.fmt(f),
37            Error::ConflictException(inner) => inner.fmt(f),
38            Error::GatewayTimedOutException(inner) => inner.fmt(f),
39            Error::InternalServerErrorException(inner) => inner.fmt(f),
40            Error::ResourceNotFoundException(inner) => inner.fmt(f),
41            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
42            Error::ServiceUnavailableException(inner) => inner.fmt(f),
43            Error::TooManyRequestException(inner) => inner.fmt(f),
44            Error::ValidationException(inner) => inner.fmt(f),
45            Error::Unhandled(_) => {
46                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
47                    write!(f, "unhandled error ({code})")
48                } else {
49                    f.write_str("unhandled error")
50                }
51            }
52        }
53    }
54}
55impl From<::aws_smithy_types::error::operation::BuildError> for Error {
56    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
57        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
58            source: value.into(),
59            meta: ::std::default::Default::default(),
60        })
61    }
62}
63impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
64    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
65        match self {
66            Self::AccessDeniedException(inner) => inner.meta(),
67            Self::ConflictException(inner) => inner.meta(),
68            Self::GatewayTimedOutException(inner) => inner.meta(),
69            Self::InternalServerErrorException(inner) => inner.meta(),
70            Self::ResourceNotFoundException(inner) => inner.meta(),
71            Self::ServiceQuotaExceededException(inner) => inner.meta(),
72            Self::ServiceUnavailableException(inner) => inner.meta(),
73            Self::TooManyRequestException(inner) => inner.meta(),
74            Self::ValidationException(inner) => inner.meta(),
75            Self::Unhandled(inner) => &inner.meta,
76        }
77    }
78}
79impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_feed::AssociateFeedError, R>> for Error
80where
81    R: Send + Sync + std::fmt::Debug + 'static,
82{
83    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_feed::AssociateFeedError, R>) -> Self {
84        match err {
85            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
86            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
87                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
88                source: err.into(),
89            }),
90        }
91    }
92}
93impl From<crate::operation::associate_feed::AssociateFeedError> for Error {
94    fn from(err: crate::operation::associate_feed::AssociateFeedError) -> Self {
95        match err {
96            crate::operation::associate_feed::AssociateFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
97            crate::operation::associate_feed::AssociateFeedError::ConflictException(inner) => Error::ConflictException(inner),
98            crate::operation::associate_feed::AssociateFeedError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
99            crate::operation::associate_feed::AssociateFeedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
100            crate::operation::associate_feed::AssociateFeedError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
101            crate::operation::associate_feed::AssociateFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
102            crate::operation::associate_feed::AssociateFeedError::ValidationException(inner) => Error::ValidationException(inner),
103            crate::operation::associate_feed::AssociateFeedError::Unhandled(inner) => Error::Unhandled(inner),
104        }
105    }
106}
107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dictionary::CreateDictionaryError, R>> for Error
108where
109    R: Send + Sync + std::fmt::Debug + 'static,
110{
111    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dictionary::CreateDictionaryError, R>) -> Self {
112        match err {
113            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
114            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
115                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
116                source: err.into(),
117            }),
118        }
119    }
120}
121impl From<crate::operation::create_dictionary::CreateDictionaryError> for Error {
122    fn from(err: crate::operation::create_dictionary::CreateDictionaryError) -> Self {
123        match err {
124            crate::operation::create_dictionary::CreateDictionaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
125            crate::operation::create_dictionary::CreateDictionaryError::ConflictException(inner) => Error::ConflictException(inner),
126            crate::operation::create_dictionary::CreateDictionaryError::InternalServerErrorException(inner) => {
127                Error::InternalServerErrorException(inner)
128            }
129            crate::operation::create_dictionary::CreateDictionaryError::ServiceQuotaExceededException(inner) => {
130                Error::ServiceQuotaExceededException(inner)
131            }
132            crate::operation::create_dictionary::CreateDictionaryError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
133            crate::operation::create_dictionary::CreateDictionaryError::ValidationException(inner) => Error::ValidationException(inner),
134            crate::operation::create_dictionary::CreateDictionaryError::Unhandled(inner) => Error::Unhandled(inner),
135        }
136    }
137}
138impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feed::CreateFeedError, R>> for Error
139where
140    R: Send + Sync + std::fmt::Debug + 'static,
141{
142    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feed::CreateFeedError, R>) -> Self {
143        match err {
144            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
145            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
146                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
147                source: err.into(),
148            }),
149        }
150    }
151}
152impl From<crate::operation::create_feed::CreateFeedError> for Error {
153    fn from(err: crate::operation::create_feed::CreateFeedError) -> Self {
154        match err {
155            crate::operation::create_feed::CreateFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
156            crate::operation::create_feed::CreateFeedError::ConflictException(inner) => Error::ConflictException(inner),
157            crate::operation::create_feed::CreateFeedError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
158            crate::operation::create_feed::CreateFeedError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
159            crate::operation::create_feed::CreateFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
160            crate::operation::create_feed::CreateFeedError::ValidationException(inner) => Error::ValidationException(inner),
161            crate::operation::create_feed::CreateFeedError::Unhandled(inner) => Error::Unhandled(inner),
162        }
163    }
164}
165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dictionary::DeleteDictionaryError, R>> for Error
166where
167    R: Send + Sync + std::fmt::Debug + 'static,
168{
169    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dictionary::DeleteDictionaryError, R>) -> Self {
170        match err {
171            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
172            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
173                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
174                source: err.into(),
175            }),
176        }
177    }
178}
179impl From<crate::operation::delete_dictionary::DeleteDictionaryError> for Error {
180    fn from(err: crate::operation::delete_dictionary::DeleteDictionaryError) -> Self {
181        match err {
182            crate::operation::delete_dictionary::DeleteDictionaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
183            crate::operation::delete_dictionary::DeleteDictionaryError::ConflictException(inner) => Error::ConflictException(inner),
184            crate::operation::delete_dictionary::DeleteDictionaryError::InternalServerErrorException(inner) => {
185                Error::InternalServerErrorException(inner)
186            }
187            crate::operation::delete_dictionary::DeleteDictionaryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
188            crate::operation::delete_dictionary::DeleteDictionaryError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
189            crate::operation::delete_dictionary::DeleteDictionaryError::ValidationException(inner) => Error::ValidationException(inner),
190            crate::operation::delete_dictionary::DeleteDictionaryError::Unhandled(inner) => Error::Unhandled(inner),
191        }
192    }
193}
194impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feed::DeleteFeedError, R>> for Error
195where
196    R: Send + Sync + std::fmt::Debug + 'static,
197{
198    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feed::DeleteFeedError, R>) -> Self {
199        match err {
200            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
201            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
202                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
203                source: err.into(),
204            }),
205        }
206    }
207}
208impl From<crate::operation::delete_feed::DeleteFeedError> for Error {
209    fn from(err: crate::operation::delete_feed::DeleteFeedError) -> Self {
210        match err {
211            crate::operation::delete_feed::DeleteFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
212            crate::operation::delete_feed::DeleteFeedError::ConflictException(inner) => Error::ConflictException(inner),
213            crate::operation::delete_feed::DeleteFeedError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
214            crate::operation::delete_feed::DeleteFeedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
215            crate::operation::delete_feed::DeleteFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
216            crate::operation::delete_feed::DeleteFeedError::ValidationException(inner) => Error::ValidationException(inner),
217            crate::operation::delete_feed::DeleteFeedError::Unhandled(inner) => Error::Unhandled(inner),
218        }
219    }
220}
221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feed_policy::DeleteFeedPolicyError, R>> for Error
222where
223    R: Send + Sync + std::fmt::Debug + 'static,
224{
225    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feed_policy::DeleteFeedPolicyError, R>) -> Self {
226        match err {
227            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
228            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
229                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
230                source: err.into(),
231            }),
232        }
233    }
234}
235impl From<crate::operation::delete_feed_policy::DeleteFeedPolicyError> for Error {
236    fn from(err: crate::operation::delete_feed_policy::DeleteFeedPolicyError) -> Self {
237        match err {
238            crate::operation::delete_feed_policy::DeleteFeedPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
239            crate::operation::delete_feed_policy::DeleteFeedPolicyError::InternalServerErrorException(inner) => {
240                Error::InternalServerErrorException(inner)
241            }
242            crate::operation::delete_feed_policy::DeleteFeedPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
243            crate::operation::delete_feed_policy::DeleteFeedPolicyError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
244            crate::operation::delete_feed_policy::DeleteFeedPolicyError::ValidationException(inner) => Error::ValidationException(inner),
245            crate::operation::delete_feed_policy::DeleteFeedPolicyError::Unhandled(inner) => Error::Unhandled(inner),
246        }
247    }
248}
249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_feed::DisassociateFeedError, R>> for Error
250where
251    R: Send + Sync + std::fmt::Debug + 'static,
252{
253    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_feed::DisassociateFeedError, R>) -> Self {
254        match err {
255            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
256            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
257                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
258                source: err.into(),
259            }),
260        }
261    }
262}
263impl From<crate::operation::disassociate_feed::DisassociateFeedError> for Error {
264    fn from(err: crate::operation::disassociate_feed::DisassociateFeedError) -> Self {
265        match err {
266            crate::operation::disassociate_feed::DisassociateFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
267            crate::operation::disassociate_feed::DisassociateFeedError::ConflictException(inner) => Error::ConflictException(inner),
268            crate::operation::disassociate_feed::DisassociateFeedError::InternalServerErrorException(inner) => {
269                Error::InternalServerErrorException(inner)
270            }
271            crate::operation::disassociate_feed::DisassociateFeedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
272            crate::operation::disassociate_feed::DisassociateFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
273            crate::operation::disassociate_feed::DisassociateFeedError::ValidationException(inner) => Error::ValidationException(inner),
274            crate::operation::disassociate_feed::DisassociateFeedError::Unhandled(inner) => Error::Unhandled(inner),
275        }
276    }
277}
278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_dictionary_entries::ExportDictionaryEntriesError, R>>
279    for Error
280where
281    R: Send + Sync + std::fmt::Debug + 'static,
282{
283    fn from(
284        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_dictionary_entries::ExportDictionaryEntriesError, R>,
285    ) -> Self {
286        match err {
287            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
288            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
289                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
290                source: err.into(),
291            }),
292        }
293    }
294}
295impl From<crate::operation::export_dictionary_entries::ExportDictionaryEntriesError> for Error {
296    fn from(err: crate::operation::export_dictionary_entries::ExportDictionaryEntriesError) -> Self {
297        match err {
298            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::AccessDeniedException(inner) => {
299                Error::AccessDeniedException(inner)
300            }
301            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::InternalServerErrorException(inner) => {
302                Error::InternalServerErrorException(inner)
303            }
304            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::ResourceNotFoundException(inner) => {
305                Error::ResourceNotFoundException(inner)
306            }
307            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::TooManyRequestException(inner) => {
308                Error::TooManyRequestException(inner)
309            }
310            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::ValidationException(inner) => {
311                Error::ValidationException(inner)
312            }
313            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::Unhandled(inner) => Error::Unhandled(inner),
314        }
315    }
316}
317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dictionary::GetDictionaryError, R>> for Error
318where
319    R: Send + Sync + std::fmt::Debug + 'static,
320{
321    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dictionary::GetDictionaryError, R>) -> Self {
322        match err {
323            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
324            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
325                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
326                source: err.into(),
327            }),
328        }
329    }
330}
331impl From<crate::operation::get_dictionary::GetDictionaryError> for Error {
332    fn from(err: crate::operation::get_dictionary::GetDictionaryError) -> Self {
333        match err {
334            crate::operation::get_dictionary::GetDictionaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
335            crate::operation::get_dictionary::GetDictionaryError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
336            crate::operation::get_dictionary::GetDictionaryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
337            crate::operation::get_dictionary::GetDictionaryError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
338            crate::operation::get_dictionary::GetDictionaryError::ValidationException(inner) => Error::ValidationException(inner),
339            crate::operation::get_dictionary::GetDictionaryError::Unhandled(inner) => Error::Unhandled(inner),
340        }
341    }
342}
343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_feed::GetFeedError, R>> for Error
344where
345    R: Send + Sync + std::fmt::Debug + 'static,
346{
347    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_feed::GetFeedError, R>) -> Self {
348        match err {
349            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
350            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
351                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
352                source: err.into(),
353            }),
354        }
355    }
356}
357impl From<crate::operation::get_feed::GetFeedError> for Error {
358    fn from(err: crate::operation::get_feed::GetFeedError) -> Self {
359        match err {
360            crate::operation::get_feed::GetFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
361            crate::operation::get_feed::GetFeedError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
362            crate::operation::get_feed::GetFeedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
363            crate::operation::get_feed::GetFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
364            crate::operation::get_feed::GetFeedError::Unhandled(inner) => Error::Unhandled(inner),
365        }
366    }
367}
368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_feed_policy::GetFeedPolicyError, R>> for Error
369where
370    R: Send + Sync + std::fmt::Debug + 'static,
371{
372    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_feed_policy::GetFeedPolicyError, R>) -> Self {
373        match err {
374            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
375            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
376                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
377                source: err.into(),
378            }),
379        }
380    }
381}
382impl From<crate::operation::get_feed_policy::GetFeedPolicyError> for Error {
383    fn from(err: crate::operation::get_feed_policy::GetFeedPolicyError) -> Self {
384        match err {
385            crate::operation::get_feed_policy::GetFeedPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
386            crate::operation::get_feed_policy::GetFeedPolicyError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
387            crate::operation::get_feed_policy::GetFeedPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
388            crate::operation::get_feed_policy::GetFeedPolicyError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
389            crate::operation::get_feed_policy::GetFeedPolicyError::ValidationException(inner) => Error::ValidationException(inner),
390            crate::operation::get_feed_policy::GetFeedPolicyError::Unhandled(inner) => Error::Unhandled(inner),
391        }
392    }
393}
394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_fixture::GetFixtureError, R>> for Error
395where
396    R: Send + Sync + std::fmt::Debug + 'static,
397{
398    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_fixture::GetFixtureError, R>) -> Self {
399        match err {
400            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
401            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
402                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
403                source: err.into(),
404            }),
405        }
406    }
407}
408impl From<crate::operation::get_fixture::GetFixtureError> for Error {
409    fn from(err: crate::operation::get_fixture::GetFixtureError) -> Self {
410        match err {
411            crate::operation::get_fixture::GetFixtureError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
412            crate::operation::get_fixture::GetFixtureError::GatewayTimedOutException(inner) => Error::GatewayTimedOutException(inner),
413            crate::operation::get_fixture::GetFixtureError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
414            crate::operation::get_fixture::GetFixtureError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
415            crate::operation::get_fixture::GetFixtureError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
416            crate::operation::get_fixture::GetFixtureError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
417            crate::operation::get_fixture::GetFixtureError::ValidationException(inner) => Error::ValidationException(inner),
418            crate::operation::get_fixture::GetFixtureError::Unhandled(inner) => Error::Unhandled(inner),
419        }
420    }
421}
422impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dictionaries::ListDictionariesError, R>> for Error
423where
424    R: Send + Sync + std::fmt::Debug + 'static,
425{
426    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dictionaries::ListDictionariesError, R>) -> Self {
427        match err {
428            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
429            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
430                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
431                source: err.into(),
432            }),
433        }
434    }
435}
436impl From<crate::operation::list_dictionaries::ListDictionariesError> for Error {
437    fn from(err: crate::operation::list_dictionaries::ListDictionariesError) -> Self {
438        match err {
439            crate::operation::list_dictionaries::ListDictionariesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
440            crate::operation::list_dictionaries::ListDictionariesError::InternalServerErrorException(inner) => {
441                Error::InternalServerErrorException(inner)
442            }
443            crate::operation::list_dictionaries::ListDictionariesError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
444            crate::operation::list_dictionaries::ListDictionariesError::ValidationException(inner) => Error::ValidationException(inner),
445            crate::operation::list_dictionaries::ListDictionariesError::Unhandled(inner) => Error::Unhandled(inner),
446        }
447    }
448}
449impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feeds::ListFeedsError, R>> for Error
450where
451    R: Send + Sync + std::fmt::Debug + 'static,
452{
453    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feeds::ListFeedsError, R>) -> Self {
454        match err {
455            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
456            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
457                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
458                source: err.into(),
459            }),
460        }
461    }
462}
463impl From<crate::operation::list_feeds::ListFeedsError> for Error {
464    fn from(err: crate::operation::list_feeds::ListFeedsError) -> Self {
465        match err {
466            crate::operation::list_feeds::ListFeedsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
467            crate::operation::list_feeds::ListFeedsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
468            crate::operation::list_feeds::ListFeedsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
469            crate::operation::list_feeds::ListFeedsError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
470            crate::operation::list_feeds::ListFeedsError::ValidationException(inner) => Error::ValidationException(inner),
471            crate::operation::list_feeds::ListFeedsError::Unhandled(inner) => Error::Unhandled(inner),
472        }
473    }
474}
475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
476where
477    R: Send + Sync + std::fmt::Debug + 'static,
478{
479    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
480        match err {
481            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
482            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
483                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
484                source: err.into(),
485            }),
486        }
487    }
488}
489impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
490    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
491        match err {
492            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
493            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerErrorException(inner) => {
494                Error::InternalServerErrorException(inner)
495            }
496            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
497                Error::ResourceNotFoundException(inner)
498            }
499            crate::operation::list_tags_for_resource::ListTagsForResourceError::TooManyRequestException(inner) => {
500                Error::TooManyRequestException(inner)
501            }
502            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
503            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
504        }
505    }
506}
507impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_feed_policy::PutFeedPolicyError, R>> for Error
508where
509    R: Send + Sync + std::fmt::Debug + 'static,
510{
511    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_feed_policy::PutFeedPolicyError, R>) -> Self {
512        match err {
513            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
514            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
515                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
516                source: err.into(),
517            }),
518        }
519    }
520}
521impl From<crate::operation::put_feed_policy::PutFeedPolicyError> for Error {
522    fn from(err: crate::operation::put_feed_policy::PutFeedPolicyError) -> Self {
523        match err {
524            crate::operation::put_feed_policy::PutFeedPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
525            crate::operation::put_feed_policy::PutFeedPolicyError::ConflictException(inner) => Error::ConflictException(inner),
526            crate::operation::put_feed_policy::PutFeedPolicyError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
527            crate::operation::put_feed_policy::PutFeedPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
528            crate::operation::put_feed_policy::PutFeedPolicyError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
529            crate::operation::put_feed_policy::PutFeedPolicyError::ValidationException(inner) => Error::ValidationException(inner),
530            crate::operation::put_feed_policy::PutFeedPolicyError::Unhandled(inner) => Error::Unhandled(inner),
531        }
532    }
533}
534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_fixtures::SearchFixturesError, R>> for Error
535where
536    R: Send + Sync + std::fmt::Debug + 'static,
537{
538    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_fixtures::SearchFixturesError, R>) -> Self {
539        match err {
540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
543                source: err.into(),
544            }),
545        }
546    }
547}
548impl From<crate::operation::search_fixtures::SearchFixturesError> for Error {
549    fn from(err: crate::operation::search_fixtures::SearchFixturesError) -> Self {
550        match err {
551            crate::operation::search_fixtures::SearchFixturesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
552            crate::operation::search_fixtures::SearchFixturesError::GatewayTimedOutException(inner) => Error::GatewayTimedOutException(inner),
553            crate::operation::search_fixtures::SearchFixturesError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
554            crate::operation::search_fixtures::SearchFixturesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
555            crate::operation::search_fixtures::SearchFixturesError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
556            crate::operation::search_fixtures::SearchFixturesError::ValidationException(inner) => Error::ValidationException(inner),
557            crate::operation::search_fixtures::SearchFixturesError::Unhandled(inner) => Error::Unhandled(inner),
558        }
559    }
560}
561impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
562where
563    R: Send + Sync + std::fmt::Debug + 'static,
564{
565    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
566        match err {
567            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
568            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
569                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
570                source: err.into(),
571            }),
572        }
573    }
574}
575impl From<crate::operation::tag_resource::TagResourceError> for Error {
576    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
577        match err {
578            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
579            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
580            crate::operation::tag_resource::TagResourceError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
581            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
582            crate::operation::tag_resource::TagResourceError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
583            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
584            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
585        }
586    }
587}
588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
589where
590    R: Send + Sync + std::fmt::Debug + 'static,
591{
592    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
593        match err {
594            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
595            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
596                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
597                source: err.into(),
598            }),
599        }
600    }
601}
602impl From<crate::operation::untag_resource::UntagResourceError> for Error {
603    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
604        match err {
605            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
606            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
607            crate::operation::untag_resource::UntagResourceError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
608            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
609            crate::operation::untag_resource::UntagResourceError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
610            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
611            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
612        }
613    }
614}
615impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dictionary::UpdateDictionaryError, R>> for Error
616where
617    R: Send + Sync + std::fmt::Debug + 'static,
618{
619    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dictionary::UpdateDictionaryError, R>) -> Self {
620        match err {
621            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
622            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
623                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
624                source: err.into(),
625            }),
626        }
627    }
628}
629impl From<crate::operation::update_dictionary::UpdateDictionaryError> for Error {
630    fn from(err: crate::operation::update_dictionary::UpdateDictionaryError) -> Self {
631        match err {
632            crate::operation::update_dictionary::UpdateDictionaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
633            crate::operation::update_dictionary::UpdateDictionaryError::ConflictException(inner) => Error::ConflictException(inner),
634            crate::operation::update_dictionary::UpdateDictionaryError::InternalServerErrorException(inner) => {
635                Error::InternalServerErrorException(inner)
636            }
637            crate::operation::update_dictionary::UpdateDictionaryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
638            crate::operation::update_dictionary::UpdateDictionaryError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
639            crate::operation::update_dictionary::UpdateDictionaryError::ValidationException(inner) => Error::ValidationException(inner),
640            crate::operation::update_dictionary::UpdateDictionaryError::Unhandled(inner) => Error::Unhandled(inner),
641        }
642    }
643}
644impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feed::UpdateFeedError, R>> for Error
645where
646    R: Send + Sync + std::fmt::Debug + 'static,
647{
648    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feed::UpdateFeedError, R>) -> Self {
649        match err {
650            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
651            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
652                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
653                source: err.into(),
654            }),
655        }
656    }
657}
658impl From<crate::operation::update_feed::UpdateFeedError> for Error {
659    fn from(err: crate::operation::update_feed::UpdateFeedError) -> Self {
660        match err {
661            crate::operation::update_feed::UpdateFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
662            crate::operation::update_feed::UpdateFeedError::ConflictException(inner) => Error::ConflictException(inner),
663            crate::operation::update_feed::UpdateFeedError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
664            crate::operation::update_feed::UpdateFeedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
665            crate::operation::update_feed::UpdateFeedError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
666            crate::operation::update_feed::UpdateFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
667            crate::operation::update_feed::UpdateFeedError::ValidationException(inner) => Error::ValidationException(inner),
668            crate::operation::update_feed::UpdateFeedError::Unhandled(inner) => Error::Unhandled(inner),
669        }
670    }
671}
672impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
673where
674    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
675    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
676{
677    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
678        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
679            meta: ::std::default::Default::default(),
680            source: err.into(),
681        })
682    }
683}
684impl ::std::error::Error for Error {
685    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
686        match self {
687            Error::AccessDeniedException(inner) => inner.source(),
688            Error::ConflictException(inner) => inner.source(),
689            Error::GatewayTimedOutException(inner) => inner.source(),
690            Error::InternalServerErrorException(inner) => inner.source(),
691            Error::ResourceNotFoundException(inner) => inner.source(),
692            Error::ServiceQuotaExceededException(inner) => inner.source(),
693            Error::ServiceUnavailableException(inner) => inner.source(),
694            Error::TooManyRequestException(inner) => inner.source(),
695            Error::ValidationException(inner) => inner.source(),
696            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
697        }
698    }
699}
700impl ::aws_types::request_id::RequestId for Error {
701    fn request_id(&self) -> Option<&str> {
702        match self {
703            Self::AccessDeniedException(e) => e.request_id(),
704            Self::ConflictException(e) => e.request_id(),
705            Self::GatewayTimedOutException(e) => e.request_id(),
706            Self::InternalServerErrorException(e) => e.request_id(),
707            Self::ResourceNotFoundException(e) => e.request_id(),
708            Self::ServiceQuotaExceededException(e) => e.request_id(),
709            Self::ServiceUnavailableException(e) => e.request_id(),
710            Self::TooManyRequestException(e) => e.request_id(),
711            Self::ValidationException(e) => e.request_id(),
712            Self::Unhandled(e) => e.meta.request_id(),
713        }
714    }
715}