aws_sdk_connectcases/
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 requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>We couldn't process your request because of an issue with the server. Try again later.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The service quota has been exceeded. For a list of service quotas, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">Amazon Connect Service Quotas</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The rate has been exceeded for this API. Please try again after a few minutes.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The request isn't valid. Check the syntax and try again.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`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::batch_get_case_rule::BatchGetCaseRuleError, 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::batch_get_case_rule::BatchGetCaseRuleError, 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::batch_get_case_rule::BatchGetCaseRuleError> for Error {
86    fn from(err: crate::operation::batch_get_case_rule::BatchGetCaseRuleError) -> Self {
87        match err {
88            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
90            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
91            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
92            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::ValidationException(inner) => Error::ValidationException(inner),
93            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::Unhandled(inner) => Error::Unhandled(inner),
94        }
95    }
96}
97impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_field::BatchGetFieldError, R>> for Error
98where
99    R: Send + Sync + std::fmt::Debug + 'static,
100{
101    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_field::BatchGetFieldError, R>) -> Self {
102        match err {
103            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
104            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
105                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
106                source: err.into(),
107            }),
108        }
109    }
110}
111impl From<crate::operation::batch_get_field::BatchGetFieldError> for Error {
112    fn from(err: crate::operation::batch_get_field::BatchGetFieldError) -> Self {
113        match err {
114            crate::operation::batch_get_field::BatchGetFieldError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
115            crate::operation::batch_get_field::BatchGetFieldError::InternalServerException(inner) => Error::InternalServerException(inner),
116            crate::operation::batch_get_field::BatchGetFieldError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
117            crate::operation::batch_get_field::BatchGetFieldError::ThrottlingException(inner) => Error::ThrottlingException(inner),
118            crate::operation::batch_get_field::BatchGetFieldError::ValidationException(inner) => Error::ValidationException(inner),
119            crate::operation::batch_get_field::BatchGetFieldError::Unhandled(inner) => Error::Unhandled(inner),
120        }
121    }
122}
123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_field_options::BatchPutFieldOptionsError, R>> for Error
124where
125    R: Send + Sync + std::fmt::Debug + 'static,
126{
127    fn from(
128        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_field_options::BatchPutFieldOptionsError, R>,
129    ) -> Self {
130        match err {
131            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
132            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
133                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
134                source: err.into(),
135            }),
136        }
137    }
138}
139impl From<crate::operation::batch_put_field_options::BatchPutFieldOptionsError> for Error {
140    fn from(err: crate::operation::batch_put_field_options::BatchPutFieldOptionsError) -> Self {
141        match err {
142            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
143            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::InternalServerException(inner) => {
144                Error::InternalServerException(inner)
145            }
146            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::ResourceNotFoundException(inner) => {
147                Error::ResourceNotFoundException(inner)
148            }
149            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::ServiceQuotaExceededException(inner) => {
150                Error::ServiceQuotaExceededException(inner)
151            }
152            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
153            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::ValidationException(inner) => Error::ValidationException(inner),
154            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::Unhandled(inner) => Error::Unhandled(inner),
155        }
156    }
157}
158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_case::CreateCaseError, R>> for Error
159where
160    R: Send + Sync + std::fmt::Debug + 'static,
161{
162    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_case::CreateCaseError, R>) -> Self {
163        match err {
164            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
165            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
166                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
167                source: err.into(),
168            }),
169        }
170    }
171}
172impl From<crate::operation::create_case::CreateCaseError> for Error {
173    fn from(err: crate::operation::create_case::CreateCaseError) -> Self {
174        match err {
175            crate::operation::create_case::CreateCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
176            crate::operation::create_case::CreateCaseError::ConflictException(inner) => Error::ConflictException(inner),
177            crate::operation::create_case::CreateCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
178            crate::operation::create_case::CreateCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
179            crate::operation::create_case::CreateCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
180            crate::operation::create_case::CreateCaseError::ValidationException(inner) => Error::ValidationException(inner),
181            crate::operation::create_case::CreateCaseError::Unhandled(inner) => Error::Unhandled(inner),
182        }
183    }
184}
185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_case_rule::CreateCaseRuleError, R>> for Error
186where
187    R: Send + Sync + std::fmt::Debug + 'static,
188{
189    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_case_rule::CreateCaseRuleError, R>) -> Self {
190        match err {
191            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
192            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
193                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
194                source: err.into(),
195            }),
196        }
197    }
198}
199impl From<crate::operation::create_case_rule::CreateCaseRuleError> for Error {
200    fn from(err: crate::operation::create_case_rule::CreateCaseRuleError) -> Self {
201        match err {
202            crate::operation::create_case_rule::CreateCaseRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
203            crate::operation::create_case_rule::CreateCaseRuleError::ConflictException(inner) => Error::ConflictException(inner),
204            crate::operation::create_case_rule::CreateCaseRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
205            crate::operation::create_case_rule::CreateCaseRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
206            crate::operation::create_case_rule::CreateCaseRuleError::ServiceQuotaExceededException(inner) => {
207                Error::ServiceQuotaExceededException(inner)
208            }
209            crate::operation::create_case_rule::CreateCaseRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
210            crate::operation::create_case_rule::CreateCaseRuleError::ValidationException(inner) => Error::ValidationException(inner),
211            crate::operation::create_case_rule::CreateCaseRuleError::Unhandled(inner) => Error::Unhandled(inner),
212        }
213    }
214}
215impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>> for Error
216where
217    R: Send + Sync + std::fmt::Debug + 'static,
218{
219    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>) -> Self {
220        match err {
221            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
222            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
223                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
224                source: err.into(),
225            }),
226        }
227    }
228}
229impl From<crate::operation::create_domain::CreateDomainError> for Error {
230    fn from(err: crate::operation::create_domain::CreateDomainError) -> Self {
231        match err {
232            crate::operation::create_domain::CreateDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
233            crate::operation::create_domain::CreateDomainError::ConflictException(inner) => Error::ConflictException(inner),
234            crate::operation::create_domain::CreateDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
235            crate::operation::create_domain::CreateDomainError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
236            crate::operation::create_domain::CreateDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
237            crate::operation::create_domain::CreateDomainError::ValidationException(inner) => Error::ValidationException(inner),
238            crate::operation::create_domain::CreateDomainError::Unhandled(inner) => Error::Unhandled(inner),
239        }
240    }
241}
242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_field::CreateFieldError, R>> for Error
243where
244    R: Send + Sync + std::fmt::Debug + 'static,
245{
246    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_field::CreateFieldError, R>) -> Self {
247        match err {
248            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
249            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
250                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
251                source: err.into(),
252            }),
253        }
254    }
255}
256impl From<crate::operation::create_field::CreateFieldError> for Error {
257    fn from(err: crate::operation::create_field::CreateFieldError) -> Self {
258        match err {
259            crate::operation::create_field::CreateFieldError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
260            crate::operation::create_field::CreateFieldError::ConflictException(inner) => Error::ConflictException(inner),
261            crate::operation::create_field::CreateFieldError::InternalServerException(inner) => Error::InternalServerException(inner),
262            crate::operation::create_field::CreateFieldError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
263            crate::operation::create_field::CreateFieldError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
264            crate::operation::create_field::CreateFieldError::ThrottlingException(inner) => Error::ThrottlingException(inner),
265            crate::operation::create_field::CreateFieldError::ValidationException(inner) => Error::ValidationException(inner),
266            crate::operation::create_field::CreateFieldError::Unhandled(inner) => Error::Unhandled(inner),
267        }
268    }
269}
270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_layout::CreateLayoutError, R>> for Error
271where
272    R: Send + Sync + std::fmt::Debug + 'static,
273{
274    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_layout::CreateLayoutError, R>) -> Self {
275        match err {
276            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
277            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
278                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
279                source: err.into(),
280            }),
281        }
282    }
283}
284impl From<crate::operation::create_layout::CreateLayoutError> for Error {
285    fn from(err: crate::operation::create_layout::CreateLayoutError) -> Self {
286        match err {
287            crate::operation::create_layout::CreateLayoutError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
288            crate::operation::create_layout::CreateLayoutError::ConflictException(inner) => Error::ConflictException(inner),
289            crate::operation::create_layout::CreateLayoutError::InternalServerException(inner) => Error::InternalServerException(inner),
290            crate::operation::create_layout::CreateLayoutError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
291            crate::operation::create_layout::CreateLayoutError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
292            crate::operation::create_layout::CreateLayoutError::ThrottlingException(inner) => Error::ThrottlingException(inner),
293            crate::operation::create_layout::CreateLayoutError::ValidationException(inner) => Error::ValidationException(inner),
294            crate::operation::create_layout::CreateLayoutError::Unhandled(inner) => Error::Unhandled(inner),
295        }
296    }
297}
298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_related_item::CreateRelatedItemError, R>> for Error
299where
300    R: Send + Sync + std::fmt::Debug + 'static,
301{
302    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_related_item::CreateRelatedItemError, R>) -> Self {
303        match err {
304            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
305            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
306                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
307                source: err.into(),
308            }),
309        }
310    }
311}
312impl From<crate::operation::create_related_item::CreateRelatedItemError> for Error {
313    fn from(err: crate::operation::create_related_item::CreateRelatedItemError) -> Self {
314        match err {
315            crate::operation::create_related_item::CreateRelatedItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
316            crate::operation::create_related_item::CreateRelatedItemError::InternalServerException(inner) => Error::InternalServerException(inner),
317            crate::operation::create_related_item::CreateRelatedItemError::ResourceNotFoundException(inner) => {
318                Error::ResourceNotFoundException(inner)
319            }
320            crate::operation::create_related_item::CreateRelatedItemError::ServiceQuotaExceededException(inner) => {
321                Error::ServiceQuotaExceededException(inner)
322            }
323            crate::operation::create_related_item::CreateRelatedItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
324            crate::operation::create_related_item::CreateRelatedItemError::ValidationException(inner) => Error::ValidationException(inner),
325            crate::operation::create_related_item::CreateRelatedItemError::Unhandled(inner) => Error::Unhandled(inner),
326        }
327    }
328}
329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>> for Error
330where
331    R: Send + Sync + std::fmt::Debug + 'static,
332{
333    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>) -> Self {
334        match err {
335            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
336            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
337                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
338                source: err.into(),
339            }),
340        }
341    }
342}
343impl From<crate::operation::create_template::CreateTemplateError> for Error {
344    fn from(err: crate::operation::create_template::CreateTemplateError) -> Self {
345        match err {
346            crate::operation::create_template::CreateTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
347            crate::operation::create_template::CreateTemplateError::ConflictException(inner) => Error::ConflictException(inner),
348            crate::operation::create_template::CreateTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
349            crate::operation::create_template::CreateTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
350            crate::operation::create_template::CreateTemplateError::ServiceQuotaExceededException(inner) => {
351                Error::ServiceQuotaExceededException(inner)
352            }
353            crate::operation::create_template::CreateTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
354            crate::operation::create_template::CreateTemplateError::ValidationException(inner) => Error::ValidationException(inner),
355            crate::operation::create_template::CreateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
356        }
357    }
358}
359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_case::DeleteCaseError, R>> for Error
360where
361    R: Send + Sync + std::fmt::Debug + 'static,
362{
363    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_case::DeleteCaseError, R>) -> Self {
364        match err {
365            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
366            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
367                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
368                source: err.into(),
369            }),
370        }
371    }
372}
373impl From<crate::operation::delete_case::DeleteCaseError> for Error {
374    fn from(err: crate::operation::delete_case::DeleteCaseError) -> Self {
375        match err {
376            crate::operation::delete_case::DeleteCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
377            crate::operation::delete_case::DeleteCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
378            crate::operation::delete_case::DeleteCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
379            crate::operation::delete_case::DeleteCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
380            crate::operation::delete_case::DeleteCaseError::ValidationException(inner) => Error::ValidationException(inner),
381            crate::operation::delete_case::DeleteCaseError::Unhandled(inner) => Error::Unhandled(inner),
382        }
383    }
384}
385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_case_rule::DeleteCaseRuleError, R>> for Error
386where
387    R: Send + Sync + std::fmt::Debug + 'static,
388{
389    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_case_rule::DeleteCaseRuleError, R>) -> Self {
390        match err {
391            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394                source: err.into(),
395            }),
396        }
397    }
398}
399impl From<crate::operation::delete_case_rule::DeleteCaseRuleError> for Error {
400    fn from(err: crate::operation::delete_case_rule::DeleteCaseRuleError) -> Self {
401        match err {
402            crate::operation::delete_case_rule::DeleteCaseRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
403            crate::operation::delete_case_rule::DeleteCaseRuleError::ConflictException(inner) => Error::ConflictException(inner),
404            crate::operation::delete_case_rule::DeleteCaseRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
405            crate::operation::delete_case_rule::DeleteCaseRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
406            crate::operation::delete_case_rule::DeleteCaseRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
407            crate::operation::delete_case_rule::DeleteCaseRuleError::Unhandled(inner) => Error::Unhandled(inner),
408        }
409    }
410}
411impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>> for Error
412where
413    R: Send + Sync + std::fmt::Debug + 'static,
414{
415    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>) -> Self {
416        match err {
417            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
418            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
419                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
420                source: err.into(),
421            }),
422        }
423    }
424}
425impl From<crate::operation::delete_domain::DeleteDomainError> for Error {
426    fn from(err: crate::operation::delete_domain::DeleteDomainError) -> Self {
427        match err {
428            crate::operation::delete_domain::DeleteDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
429            crate::operation::delete_domain::DeleteDomainError::ConflictException(inner) => Error::ConflictException(inner),
430            crate::operation::delete_domain::DeleteDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
431            crate::operation::delete_domain::DeleteDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
432            crate::operation::delete_domain::DeleteDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
433            crate::operation::delete_domain::DeleteDomainError::ValidationException(inner) => Error::ValidationException(inner),
434            crate::operation::delete_domain::DeleteDomainError::Unhandled(inner) => Error::Unhandled(inner),
435        }
436    }
437}
438impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_field::DeleteFieldError, R>> for Error
439where
440    R: Send + Sync + std::fmt::Debug + 'static,
441{
442    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_field::DeleteFieldError, R>) -> Self {
443        match err {
444            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
445            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
446                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
447                source: err.into(),
448            }),
449        }
450    }
451}
452impl From<crate::operation::delete_field::DeleteFieldError> for Error {
453    fn from(err: crate::operation::delete_field::DeleteFieldError) -> Self {
454        match err {
455            crate::operation::delete_field::DeleteFieldError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
456            crate::operation::delete_field::DeleteFieldError::ConflictException(inner) => Error::ConflictException(inner),
457            crate::operation::delete_field::DeleteFieldError::InternalServerException(inner) => Error::InternalServerException(inner),
458            crate::operation::delete_field::DeleteFieldError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
459            crate::operation::delete_field::DeleteFieldError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
460            crate::operation::delete_field::DeleteFieldError::ThrottlingException(inner) => Error::ThrottlingException(inner),
461            crate::operation::delete_field::DeleteFieldError::ValidationException(inner) => Error::ValidationException(inner),
462            crate::operation::delete_field::DeleteFieldError::Unhandled(inner) => Error::Unhandled(inner),
463        }
464    }
465}
466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_layout::DeleteLayoutError, 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::delete_layout::DeleteLayoutError, 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::delete_layout::DeleteLayoutError> for Error {
481    fn from(err: crate::operation::delete_layout::DeleteLayoutError) -> Self {
482        match err {
483            crate::operation::delete_layout::DeleteLayoutError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
484            crate::operation::delete_layout::DeleteLayoutError::ConflictException(inner) => Error::ConflictException(inner),
485            crate::operation::delete_layout::DeleteLayoutError::InternalServerException(inner) => Error::InternalServerException(inner),
486            crate::operation::delete_layout::DeleteLayoutError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
487            crate::operation::delete_layout::DeleteLayoutError::ThrottlingException(inner) => Error::ThrottlingException(inner),
488            crate::operation::delete_layout::DeleteLayoutError::ValidationException(inner) => Error::ValidationException(inner),
489            crate::operation::delete_layout::DeleteLayoutError::Unhandled(inner) => Error::Unhandled(inner),
490        }
491    }
492}
493impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_related_item::DeleteRelatedItemError, R>> for Error
494where
495    R: Send + Sync + std::fmt::Debug + 'static,
496{
497    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_related_item::DeleteRelatedItemError, R>) -> Self {
498        match err {
499            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
500            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
501                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
502                source: err.into(),
503            }),
504        }
505    }
506}
507impl From<crate::operation::delete_related_item::DeleteRelatedItemError> for Error {
508    fn from(err: crate::operation::delete_related_item::DeleteRelatedItemError) -> Self {
509        match err {
510            crate::operation::delete_related_item::DeleteRelatedItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
511            crate::operation::delete_related_item::DeleteRelatedItemError::InternalServerException(inner) => Error::InternalServerException(inner),
512            crate::operation::delete_related_item::DeleteRelatedItemError::ResourceNotFoundException(inner) => {
513                Error::ResourceNotFoundException(inner)
514            }
515            crate::operation::delete_related_item::DeleteRelatedItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
516            crate::operation::delete_related_item::DeleteRelatedItemError::ValidationException(inner) => Error::ValidationException(inner),
517            crate::operation::delete_related_item::DeleteRelatedItemError::Unhandled(inner) => Error::Unhandled(inner),
518        }
519    }
520}
521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>> for Error
522where
523    R: Send + Sync + std::fmt::Debug + 'static,
524{
525    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>) -> Self {
526        match err {
527            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
528            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
529                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
530                source: err.into(),
531            }),
532        }
533    }
534}
535impl From<crate::operation::delete_template::DeleteTemplateError> for Error {
536    fn from(err: crate::operation::delete_template::DeleteTemplateError) -> Self {
537        match err {
538            crate::operation::delete_template::DeleteTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
539            crate::operation::delete_template::DeleteTemplateError::ConflictException(inner) => Error::ConflictException(inner),
540            crate::operation::delete_template::DeleteTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
541            crate::operation::delete_template::DeleteTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
542            crate::operation::delete_template::DeleteTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
543            crate::operation::delete_template::DeleteTemplateError::ValidationException(inner) => Error::ValidationException(inner),
544            crate::operation::delete_template::DeleteTemplateError::Unhandled(inner) => Error::Unhandled(inner),
545        }
546    }
547}
548impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case::GetCaseError, R>> for Error
549where
550    R: Send + Sync + std::fmt::Debug + 'static,
551{
552    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case::GetCaseError, R>) -> Self {
553        match err {
554            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
555            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
556                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
557                source: err.into(),
558            }),
559        }
560    }
561}
562impl From<crate::operation::get_case::GetCaseError> for Error {
563    fn from(err: crate::operation::get_case::GetCaseError) -> Self {
564        match err {
565            crate::operation::get_case::GetCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
566            crate::operation::get_case::GetCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
567            crate::operation::get_case::GetCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
568            crate::operation::get_case::GetCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
569            crate::operation::get_case::GetCaseError::ValidationException(inner) => Error::ValidationException(inner),
570            crate::operation::get_case::GetCaseError::Unhandled(inner) => Error::Unhandled(inner),
571        }
572    }
573}
574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case_audit_events::GetCaseAuditEventsError, R>> for Error
575where
576    R: Send + Sync + std::fmt::Debug + 'static,
577{
578    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case_audit_events::GetCaseAuditEventsError, R>) -> Self {
579        match err {
580            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
581            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
582                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
583                source: err.into(),
584            }),
585        }
586    }
587}
588impl From<crate::operation::get_case_audit_events::GetCaseAuditEventsError> for Error {
589    fn from(err: crate::operation::get_case_audit_events::GetCaseAuditEventsError) -> Self {
590        match err {
591            crate::operation::get_case_audit_events::GetCaseAuditEventsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
592            crate::operation::get_case_audit_events::GetCaseAuditEventsError::InternalServerException(inner) => Error::InternalServerException(inner),
593            crate::operation::get_case_audit_events::GetCaseAuditEventsError::ResourceNotFoundException(inner) => {
594                Error::ResourceNotFoundException(inner)
595            }
596            crate::operation::get_case_audit_events::GetCaseAuditEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
597            crate::operation::get_case_audit_events::GetCaseAuditEventsError::ValidationException(inner) => Error::ValidationException(inner),
598            crate::operation::get_case_audit_events::GetCaseAuditEventsError::Unhandled(inner) => Error::Unhandled(inner),
599        }
600    }
601}
602impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case_event_configuration::GetCaseEventConfigurationError, R>>
603    for Error
604where
605    R: Send + Sync + std::fmt::Debug + 'static,
606{
607    fn from(
608        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case_event_configuration::GetCaseEventConfigurationError, R>,
609    ) -> Self {
610        match err {
611            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
612            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
613                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
614                source: err.into(),
615            }),
616        }
617    }
618}
619impl From<crate::operation::get_case_event_configuration::GetCaseEventConfigurationError> for Error {
620    fn from(err: crate::operation::get_case_event_configuration::GetCaseEventConfigurationError) -> Self {
621        match err {
622            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::AccessDeniedException(inner) => {
623                Error::AccessDeniedException(inner)
624            }
625            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::InternalServerException(inner) => {
626                Error::InternalServerException(inner)
627            }
628            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::ResourceNotFoundException(inner) => {
629                Error::ResourceNotFoundException(inner)
630            }
631            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::ThrottlingException(inner) => {
632                Error::ThrottlingException(inner)
633            }
634            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::ValidationException(inner) => {
635                Error::ValidationException(inner)
636            }
637            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
638        }
639    }
640}
641impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain::GetDomainError, R>> for Error
642where
643    R: Send + Sync + std::fmt::Debug + 'static,
644{
645    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain::GetDomainError, R>) -> Self {
646        match err {
647            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
648            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
649                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
650                source: err.into(),
651            }),
652        }
653    }
654}
655impl From<crate::operation::get_domain::GetDomainError> for Error {
656    fn from(err: crate::operation::get_domain::GetDomainError) -> Self {
657        match err {
658            crate::operation::get_domain::GetDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
659            crate::operation::get_domain::GetDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
660            crate::operation::get_domain::GetDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
661            crate::operation::get_domain::GetDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
662            crate::operation::get_domain::GetDomainError::ValidationException(inner) => Error::ValidationException(inner),
663            crate::operation::get_domain::GetDomainError::Unhandled(inner) => Error::Unhandled(inner),
664        }
665    }
666}
667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_layout::GetLayoutError, R>> for Error
668where
669    R: Send + Sync + std::fmt::Debug + 'static,
670{
671    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_layout::GetLayoutError, R>) -> Self {
672        match err {
673            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
674            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
675                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
676                source: err.into(),
677            }),
678        }
679    }
680}
681impl From<crate::operation::get_layout::GetLayoutError> for Error {
682    fn from(err: crate::operation::get_layout::GetLayoutError) -> Self {
683        match err {
684            crate::operation::get_layout::GetLayoutError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
685            crate::operation::get_layout::GetLayoutError::InternalServerException(inner) => Error::InternalServerException(inner),
686            crate::operation::get_layout::GetLayoutError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
687            crate::operation::get_layout::GetLayoutError::ThrottlingException(inner) => Error::ThrottlingException(inner),
688            crate::operation::get_layout::GetLayoutError::ValidationException(inner) => Error::ValidationException(inner),
689            crate::operation::get_layout::GetLayoutError::Unhandled(inner) => Error::Unhandled(inner),
690        }
691    }
692}
693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>> for Error
694where
695    R: Send + Sync + std::fmt::Debug + 'static,
696{
697    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>) -> Self {
698        match err {
699            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
700            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
701                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
702                source: err.into(),
703            }),
704        }
705    }
706}
707impl From<crate::operation::get_template::GetTemplateError> for Error {
708    fn from(err: crate::operation::get_template::GetTemplateError) -> Self {
709        match err {
710            crate::operation::get_template::GetTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
711            crate::operation::get_template::GetTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
712            crate::operation::get_template::GetTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
713            crate::operation::get_template::GetTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
714            crate::operation::get_template::GetTemplateError::ValidationException(inner) => Error::ValidationException(inner),
715            crate::operation::get_template::GetTemplateError::Unhandled(inner) => Error::Unhandled(inner),
716        }
717    }
718}
719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_case_rules::ListCaseRulesError, R>> for Error
720where
721    R: Send + Sync + std::fmt::Debug + 'static,
722{
723    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_case_rules::ListCaseRulesError, R>) -> Self {
724        match err {
725            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
726            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
727                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
728                source: err.into(),
729            }),
730        }
731    }
732}
733impl From<crate::operation::list_case_rules::ListCaseRulesError> for Error {
734    fn from(err: crate::operation::list_case_rules::ListCaseRulesError) -> Self {
735        match err {
736            crate::operation::list_case_rules::ListCaseRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
737            crate::operation::list_case_rules::ListCaseRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
738            crate::operation::list_case_rules::ListCaseRulesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
739            crate::operation::list_case_rules::ListCaseRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
740            crate::operation::list_case_rules::ListCaseRulesError::ValidationException(inner) => Error::ValidationException(inner),
741            crate::operation::list_case_rules::ListCaseRulesError::Unhandled(inner) => Error::Unhandled(inner),
742        }
743    }
744}
745impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cases_for_contact::ListCasesForContactError, R>> for Error
746where
747    R: Send + Sync + std::fmt::Debug + 'static,
748{
749    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cases_for_contact::ListCasesForContactError, R>) -> Self {
750        match err {
751            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
752            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
753                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
754                source: err.into(),
755            }),
756        }
757    }
758}
759impl From<crate::operation::list_cases_for_contact::ListCasesForContactError> for Error {
760    fn from(err: crate::operation::list_cases_for_contact::ListCasesForContactError) -> Self {
761        match err {
762            crate::operation::list_cases_for_contact::ListCasesForContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
763            crate::operation::list_cases_for_contact::ListCasesForContactError::InternalServerException(inner) => {
764                Error::InternalServerException(inner)
765            }
766            crate::operation::list_cases_for_contact::ListCasesForContactError::ResourceNotFoundException(inner) => {
767                Error::ResourceNotFoundException(inner)
768            }
769            crate::operation::list_cases_for_contact::ListCasesForContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
770            crate::operation::list_cases_for_contact::ListCasesForContactError::ValidationException(inner) => Error::ValidationException(inner),
771            crate::operation::list_cases_for_contact::ListCasesForContactError::Unhandled(inner) => Error::Unhandled(inner),
772        }
773    }
774}
775impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
776where
777    R: Send + Sync + std::fmt::Debug + 'static,
778{
779    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>) -> Self {
780        match err {
781            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
782            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
783                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
784                source: err.into(),
785            }),
786        }
787    }
788}
789impl From<crate::operation::list_domains::ListDomainsError> for Error {
790    fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
791        match err {
792            crate::operation::list_domains::ListDomainsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
793            crate::operation::list_domains::ListDomainsError::InternalServerException(inner) => Error::InternalServerException(inner),
794            crate::operation::list_domains::ListDomainsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
795            crate::operation::list_domains::ListDomainsError::ValidationException(inner) => Error::ValidationException(inner),
796            crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
797        }
798    }
799}
800impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_field_options::ListFieldOptionsError, R>> for Error
801where
802    R: Send + Sync + std::fmt::Debug + 'static,
803{
804    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_field_options::ListFieldOptionsError, R>) -> Self {
805        match err {
806            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
807            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
808                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
809                source: err.into(),
810            }),
811        }
812    }
813}
814impl From<crate::operation::list_field_options::ListFieldOptionsError> for Error {
815    fn from(err: crate::operation::list_field_options::ListFieldOptionsError) -> Self {
816        match err {
817            crate::operation::list_field_options::ListFieldOptionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
818            crate::operation::list_field_options::ListFieldOptionsError::InternalServerException(inner) => Error::InternalServerException(inner),
819            crate::operation::list_field_options::ListFieldOptionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
820            crate::operation::list_field_options::ListFieldOptionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
821            crate::operation::list_field_options::ListFieldOptionsError::ValidationException(inner) => Error::ValidationException(inner),
822            crate::operation::list_field_options::ListFieldOptionsError::Unhandled(inner) => Error::Unhandled(inner),
823        }
824    }
825}
826impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fields::ListFieldsError, R>> for Error
827where
828    R: Send + Sync + std::fmt::Debug + 'static,
829{
830    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fields::ListFieldsError, R>) -> Self {
831        match err {
832            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
833            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
834                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
835                source: err.into(),
836            }),
837        }
838    }
839}
840impl From<crate::operation::list_fields::ListFieldsError> for Error {
841    fn from(err: crate::operation::list_fields::ListFieldsError) -> Self {
842        match err {
843            crate::operation::list_fields::ListFieldsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
844            crate::operation::list_fields::ListFieldsError::InternalServerException(inner) => Error::InternalServerException(inner),
845            crate::operation::list_fields::ListFieldsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
846            crate::operation::list_fields::ListFieldsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
847            crate::operation::list_fields::ListFieldsError::ValidationException(inner) => Error::ValidationException(inner),
848            crate::operation::list_fields::ListFieldsError::Unhandled(inner) => Error::Unhandled(inner),
849        }
850    }
851}
852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_layouts::ListLayoutsError, R>> for Error
853where
854    R: Send + Sync + std::fmt::Debug + 'static,
855{
856    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_layouts::ListLayoutsError, R>) -> Self {
857        match err {
858            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
859            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
860                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
861                source: err.into(),
862            }),
863        }
864    }
865}
866impl From<crate::operation::list_layouts::ListLayoutsError> for Error {
867    fn from(err: crate::operation::list_layouts::ListLayoutsError) -> Self {
868        match err {
869            crate::operation::list_layouts::ListLayoutsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
870            crate::operation::list_layouts::ListLayoutsError::InternalServerException(inner) => Error::InternalServerException(inner),
871            crate::operation::list_layouts::ListLayoutsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
872            crate::operation::list_layouts::ListLayoutsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
873            crate::operation::list_layouts::ListLayoutsError::ValidationException(inner) => Error::ValidationException(inner),
874            crate::operation::list_layouts::ListLayoutsError::Unhandled(inner) => Error::Unhandled(inner),
875        }
876    }
877}
878impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
879where
880    R: Send + Sync + std::fmt::Debug + 'static,
881{
882    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
883        match err {
884            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
885            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
886                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
887                source: err.into(),
888            }),
889        }
890    }
891}
892impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
893    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
894        match err {
895            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
896            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
897                Error::InternalServerException(inner)
898            }
899            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
900                Error::ResourceNotFoundException(inner)
901            }
902            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
903            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
904            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
905        }
906    }
907}
908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>> for Error
909where
910    R: Send + Sync + std::fmt::Debug + 'static,
911{
912    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>) -> Self {
913        match err {
914            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
915            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
916                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
917                source: err.into(),
918            }),
919        }
920    }
921}
922impl From<crate::operation::list_templates::ListTemplatesError> for Error {
923    fn from(err: crate::operation::list_templates::ListTemplatesError) -> Self {
924        match err {
925            crate::operation::list_templates::ListTemplatesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
926            crate::operation::list_templates::ListTemplatesError::InternalServerException(inner) => Error::InternalServerException(inner),
927            crate::operation::list_templates::ListTemplatesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
928            crate::operation::list_templates::ListTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
929            crate::operation::list_templates::ListTemplatesError::ValidationException(inner) => Error::ValidationException(inner),
930            crate::operation::list_templates::ListTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
931        }
932    }
933}
934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_case_event_configuration::PutCaseEventConfigurationError, R>>
935    for Error
936where
937    R: Send + Sync + std::fmt::Debug + 'static,
938{
939    fn from(
940        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_case_event_configuration::PutCaseEventConfigurationError, R>,
941    ) -> Self {
942        match err {
943            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
944            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
945                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
946                source: err.into(),
947            }),
948        }
949    }
950}
951impl From<crate::operation::put_case_event_configuration::PutCaseEventConfigurationError> for Error {
952    fn from(err: crate::operation::put_case_event_configuration::PutCaseEventConfigurationError) -> Self {
953        match err {
954            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::AccessDeniedException(inner) => {
955                Error::AccessDeniedException(inner)
956            }
957            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::ConflictException(inner) => {
958                Error::ConflictException(inner)
959            }
960            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::InternalServerException(inner) => {
961                Error::InternalServerException(inner)
962            }
963            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::ResourceNotFoundException(inner) => {
964                Error::ResourceNotFoundException(inner)
965            }
966            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::ThrottlingException(inner) => {
967                Error::ThrottlingException(inner)
968            }
969            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::ValidationException(inner) => {
970                Error::ValidationException(inner)
971            }
972            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
973        }
974    }
975}
976impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_all_related_items::SearchAllRelatedItemsError, R>> for Error
977where
978    R: Send + Sync + std::fmt::Debug + 'static,
979{
980    fn from(
981        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_all_related_items::SearchAllRelatedItemsError, R>,
982    ) -> Self {
983        match err {
984            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
985            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
986                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
987                source: err.into(),
988            }),
989        }
990    }
991}
992impl From<crate::operation::search_all_related_items::SearchAllRelatedItemsError> for Error {
993    fn from(err: crate::operation::search_all_related_items::SearchAllRelatedItemsError) -> Self {
994        match err {
995            crate::operation::search_all_related_items::SearchAllRelatedItemsError::AccessDeniedException(inner) => {
996                Error::AccessDeniedException(inner)
997            }
998            crate::operation::search_all_related_items::SearchAllRelatedItemsError::InternalServerException(inner) => {
999                Error::InternalServerException(inner)
1000            }
1001            crate::operation::search_all_related_items::SearchAllRelatedItemsError::ResourceNotFoundException(inner) => {
1002                Error::ResourceNotFoundException(inner)
1003            }
1004            crate::operation::search_all_related_items::SearchAllRelatedItemsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1005            crate::operation::search_all_related_items::SearchAllRelatedItemsError::ValidationException(inner) => Error::ValidationException(inner),
1006            crate::operation::search_all_related_items::SearchAllRelatedItemsError::Unhandled(inner) => Error::Unhandled(inner),
1007        }
1008    }
1009}
1010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_cases::SearchCasesError, R>> for Error
1011where
1012    R: Send + Sync + std::fmt::Debug + 'static,
1013{
1014    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_cases::SearchCasesError, R>) -> Self {
1015        match err {
1016            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1017            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1018                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1019                source: err.into(),
1020            }),
1021        }
1022    }
1023}
1024impl From<crate::operation::search_cases::SearchCasesError> for Error {
1025    fn from(err: crate::operation::search_cases::SearchCasesError) -> Self {
1026        match err {
1027            crate::operation::search_cases::SearchCasesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1028            crate::operation::search_cases::SearchCasesError::InternalServerException(inner) => Error::InternalServerException(inner),
1029            crate::operation::search_cases::SearchCasesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1030            crate::operation::search_cases::SearchCasesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1031            crate::operation::search_cases::SearchCasesError::ValidationException(inner) => Error::ValidationException(inner),
1032            crate::operation::search_cases::SearchCasesError::Unhandled(inner) => Error::Unhandled(inner),
1033        }
1034    }
1035}
1036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_related_items::SearchRelatedItemsError, R>> for Error
1037where
1038    R: Send + Sync + std::fmt::Debug + 'static,
1039{
1040    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_related_items::SearchRelatedItemsError, R>) -> Self {
1041        match err {
1042            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1043            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1044                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1045                source: err.into(),
1046            }),
1047        }
1048    }
1049}
1050impl From<crate::operation::search_related_items::SearchRelatedItemsError> for Error {
1051    fn from(err: crate::operation::search_related_items::SearchRelatedItemsError) -> Self {
1052        match err {
1053            crate::operation::search_related_items::SearchRelatedItemsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1054            crate::operation::search_related_items::SearchRelatedItemsError::InternalServerException(inner) => Error::InternalServerException(inner),
1055            crate::operation::search_related_items::SearchRelatedItemsError::ResourceNotFoundException(inner) => {
1056                Error::ResourceNotFoundException(inner)
1057            }
1058            crate::operation::search_related_items::SearchRelatedItemsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1059            crate::operation::search_related_items::SearchRelatedItemsError::ValidationException(inner) => Error::ValidationException(inner),
1060            crate::operation::search_related_items::SearchRelatedItemsError::Unhandled(inner) => Error::Unhandled(inner),
1061        }
1062    }
1063}
1064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1065where
1066    R: Send + Sync + std::fmt::Debug + 'static,
1067{
1068    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1069        match err {
1070            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1071            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1072                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1073                source: err.into(),
1074            }),
1075        }
1076    }
1077}
1078impl From<crate::operation::tag_resource::TagResourceError> for Error {
1079    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1080        match err {
1081            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1082            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1083            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1084            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1085            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1086            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1087        }
1088    }
1089}
1090impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1091where
1092    R: Send + Sync + std::fmt::Debug + 'static,
1093{
1094    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1095        match err {
1096            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1097            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1098                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1099                source: err.into(),
1100            }),
1101        }
1102    }
1103}
1104impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1105    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1106        match err {
1107            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1108            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1109            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1110            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1111            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1112            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1113        }
1114    }
1115}
1116impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_case::UpdateCaseError, R>> for Error
1117where
1118    R: Send + Sync + std::fmt::Debug + 'static,
1119{
1120    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_case::UpdateCaseError, R>) -> Self {
1121        match err {
1122            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1123            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1124                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1125                source: err.into(),
1126            }),
1127        }
1128    }
1129}
1130impl From<crate::operation::update_case::UpdateCaseError> for Error {
1131    fn from(err: crate::operation::update_case::UpdateCaseError) -> Self {
1132        match err {
1133            crate::operation::update_case::UpdateCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1134            crate::operation::update_case::UpdateCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
1135            crate::operation::update_case::UpdateCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1136            crate::operation::update_case::UpdateCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1137            crate::operation::update_case::UpdateCaseError::ValidationException(inner) => Error::ValidationException(inner),
1138            crate::operation::update_case::UpdateCaseError::Unhandled(inner) => Error::Unhandled(inner),
1139        }
1140    }
1141}
1142impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_case_rule::UpdateCaseRuleError, R>> for Error
1143where
1144    R: Send + Sync + std::fmt::Debug + 'static,
1145{
1146    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_case_rule::UpdateCaseRuleError, R>) -> Self {
1147        match err {
1148            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1149            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1150                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1151                source: err.into(),
1152            }),
1153        }
1154    }
1155}
1156impl From<crate::operation::update_case_rule::UpdateCaseRuleError> for Error {
1157    fn from(err: crate::operation::update_case_rule::UpdateCaseRuleError) -> Self {
1158        match err {
1159            crate::operation::update_case_rule::UpdateCaseRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1160            crate::operation::update_case_rule::UpdateCaseRuleError::ConflictException(inner) => Error::ConflictException(inner),
1161            crate::operation::update_case_rule::UpdateCaseRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
1162            crate::operation::update_case_rule::UpdateCaseRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1163            crate::operation::update_case_rule::UpdateCaseRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1164            crate::operation::update_case_rule::UpdateCaseRuleError::ValidationException(inner) => Error::ValidationException(inner),
1165            crate::operation::update_case_rule::UpdateCaseRuleError::Unhandled(inner) => Error::Unhandled(inner),
1166        }
1167    }
1168}
1169impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_field::UpdateFieldError, R>> for Error
1170where
1171    R: Send + Sync + std::fmt::Debug + 'static,
1172{
1173    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_field::UpdateFieldError, R>) -> Self {
1174        match err {
1175            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1176            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1177                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1178                source: err.into(),
1179            }),
1180        }
1181    }
1182}
1183impl From<crate::operation::update_field::UpdateFieldError> for Error {
1184    fn from(err: crate::operation::update_field::UpdateFieldError) -> Self {
1185        match err {
1186            crate::operation::update_field::UpdateFieldError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1187            crate::operation::update_field::UpdateFieldError::ConflictException(inner) => Error::ConflictException(inner),
1188            crate::operation::update_field::UpdateFieldError::InternalServerException(inner) => Error::InternalServerException(inner),
1189            crate::operation::update_field::UpdateFieldError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1190            crate::operation::update_field::UpdateFieldError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1191            crate::operation::update_field::UpdateFieldError::ValidationException(inner) => Error::ValidationException(inner),
1192            crate::operation::update_field::UpdateFieldError::Unhandled(inner) => Error::Unhandled(inner),
1193        }
1194    }
1195}
1196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_layout::UpdateLayoutError, R>> for Error
1197where
1198    R: Send + Sync + std::fmt::Debug + 'static,
1199{
1200    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_layout::UpdateLayoutError, R>) -> Self {
1201        match err {
1202            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1203            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1204                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1205                source: err.into(),
1206            }),
1207        }
1208    }
1209}
1210impl From<crate::operation::update_layout::UpdateLayoutError> for Error {
1211    fn from(err: crate::operation::update_layout::UpdateLayoutError) -> Self {
1212        match err {
1213            crate::operation::update_layout::UpdateLayoutError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1214            crate::operation::update_layout::UpdateLayoutError::ConflictException(inner) => Error::ConflictException(inner),
1215            crate::operation::update_layout::UpdateLayoutError::InternalServerException(inner) => Error::InternalServerException(inner),
1216            crate::operation::update_layout::UpdateLayoutError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1217            crate::operation::update_layout::UpdateLayoutError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1218            crate::operation::update_layout::UpdateLayoutError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1219            crate::operation::update_layout::UpdateLayoutError::ValidationException(inner) => Error::ValidationException(inner),
1220            crate::operation::update_layout::UpdateLayoutError::Unhandled(inner) => Error::Unhandled(inner),
1221        }
1222    }
1223}
1224impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>> for Error
1225where
1226    R: Send + Sync + std::fmt::Debug + 'static,
1227{
1228    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>) -> Self {
1229        match err {
1230            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1231            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1232                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1233                source: err.into(),
1234            }),
1235        }
1236    }
1237}
1238impl From<crate::operation::update_template::UpdateTemplateError> for Error {
1239    fn from(err: crate::operation::update_template::UpdateTemplateError) -> Self {
1240        match err {
1241            crate::operation::update_template::UpdateTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1242            crate::operation::update_template::UpdateTemplateError::ConflictException(inner) => Error::ConflictException(inner),
1243            crate::operation::update_template::UpdateTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
1244            crate::operation::update_template::UpdateTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1245            crate::operation::update_template::UpdateTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1246            crate::operation::update_template::UpdateTemplateError::ValidationException(inner) => Error::ValidationException(inner),
1247            crate::operation::update_template::UpdateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1248        }
1249    }
1250}
1251impl ::std::error::Error for Error {
1252    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1253        match self {
1254            Error::AccessDeniedException(inner) => inner.source(),
1255            Error::ConflictException(inner) => inner.source(),
1256            Error::InternalServerException(inner) => inner.source(),
1257            Error::ResourceNotFoundException(inner) => inner.source(),
1258            Error::ServiceQuotaExceededException(inner) => inner.source(),
1259            Error::ThrottlingException(inner) => inner.source(),
1260            Error::ValidationException(inner) => inner.source(),
1261            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1262        }
1263    }
1264}
1265impl ::aws_types::request_id::RequestId for Error {
1266    fn request_id(&self) -> Option<&str> {
1267        match self {
1268            Self::AccessDeniedException(e) => e.request_id(),
1269            Self::ConflictException(e) => e.request_id(),
1270            Self::InternalServerException(e) => e.request_id(),
1271            Self::ResourceNotFoundException(e) => e.request_id(),
1272            Self::ServiceQuotaExceededException(e) => e.request_id(),
1273            Self::ThrottlingException(e) => e.request_id(),
1274            Self::ValidationException(e) => e.request_id(),
1275            Self::Unhandled(e) => e.meta.request_id(),
1276        }
1277    }
1278}