aws_sdk_apptest/
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>The account or role doesn't have the right permissions to make the request.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The parameters provided in the request conflict with existing resources.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An unexpected error occurred during the processing of the request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The specified resource was not found.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>One or more quotas for AWS Application Testing exceeds the limit.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The number of requests made exceeds the limit.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>One or more parameter provided in the request is not valid.</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::create_test_case::CreateTestCaseError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_test_case::CreateTestCaseError, R>) -> Self {
76        match err {
77            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80                source: err.into(),
81            }),
82        }
83    }
84}
85impl From<crate::operation::create_test_case::CreateTestCaseError> for Error {
86    fn from(err: crate::operation::create_test_case::CreateTestCaseError) -> Self {
87        match err {
88            crate::operation::create_test_case::CreateTestCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::create_test_case::CreateTestCaseError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::create_test_case::CreateTestCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
91            crate::operation::create_test_case::CreateTestCaseError::ServiceQuotaExceededException(inner) => {
92                Error::ServiceQuotaExceededException(inner)
93            }
94            crate::operation::create_test_case::CreateTestCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
95            crate::operation::create_test_case::CreateTestCaseError::ValidationException(inner) => Error::ValidationException(inner),
96            crate::operation::create_test_case::CreateTestCaseError::Unhandled(inner) => Error::Unhandled(inner),
97        }
98    }
99}
100impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_test_configuration::CreateTestConfigurationError, R>>
101    for Error
102where
103    R: Send + Sync + std::fmt::Debug + 'static,
104{
105    fn from(
106        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_test_configuration::CreateTestConfigurationError, R>,
107    ) -> Self {
108        match err {
109            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
110            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
111                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
112                source: err.into(),
113            }),
114        }
115    }
116}
117impl From<crate::operation::create_test_configuration::CreateTestConfigurationError> for Error {
118    fn from(err: crate::operation::create_test_configuration::CreateTestConfigurationError) -> Self {
119        match err {
120            crate::operation::create_test_configuration::CreateTestConfigurationError::AccessDeniedException(inner) => {
121                Error::AccessDeniedException(inner)
122            }
123            crate::operation::create_test_configuration::CreateTestConfigurationError::ConflictException(inner) => Error::ConflictException(inner),
124            crate::operation::create_test_configuration::CreateTestConfigurationError::InternalServerException(inner) => {
125                Error::InternalServerException(inner)
126            }
127            crate::operation::create_test_configuration::CreateTestConfigurationError::ServiceQuotaExceededException(inner) => {
128                Error::ServiceQuotaExceededException(inner)
129            }
130            crate::operation::create_test_configuration::CreateTestConfigurationError::ThrottlingException(inner) => {
131                Error::ThrottlingException(inner)
132            }
133            crate::operation::create_test_configuration::CreateTestConfigurationError::ValidationException(inner) => {
134                Error::ValidationException(inner)
135            }
136            crate::operation::create_test_configuration::CreateTestConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
137        }
138    }
139}
140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_test_suite::CreateTestSuiteError, R>> for Error
141where
142    R: Send + Sync + std::fmt::Debug + 'static,
143{
144    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_test_suite::CreateTestSuiteError, R>) -> Self {
145        match err {
146            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
147            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
148                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
149                source: err.into(),
150            }),
151        }
152    }
153}
154impl From<crate::operation::create_test_suite::CreateTestSuiteError> for Error {
155    fn from(err: crate::operation::create_test_suite::CreateTestSuiteError) -> Self {
156        match err {
157            crate::operation::create_test_suite::CreateTestSuiteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
158            crate::operation::create_test_suite::CreateTestSuiteError::ConflictException(inner) => Error::ConflictException(inner),
159            crate::operation::create_test_suite::CreateTestSuiteError::InternalServerException(inner) => Error::InternalServerException(inner),
160            crate::operation::create_test_suite::CreateTestSuiteError::ServiceQuotaExceededException(inner) => {
161                Error::ServiceQuotaExceededException(inner)
162            }
163            crate::operation::create_test_suite::CreateTestSuiteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
164            crate::operation::create_test_suite::CreateTestSuiteError::ValidationException(inner) => Error::ValidationException(inner),
165            crate::operation::create_test_suite::CreateTestSuiteError::Unhandled(inner) => Error::Unhandled(inner),
166        }
167    }
168}
169impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_case::DeleteTestCaseError, R>> for Error
170where
171    R: Send + Sync + std::fmt::Debug + 'static,
172{
173    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_case::DeleteTestCaseError, R>) -> Self {
174        match err {
175            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
176            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
177                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
178                source: err.into(),
179            }),
180        }
181    }
182}
183impl From<crate::operation::delete_test_case::DeleteTestCaseError> for Error {
184    fn from(err: crate::operation::delete_test_case::DeleteTestCaseError) -> Self {
185        match err {
186            crate::operation::delete_test_case::DeleteTestCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
187            crate::operation::delete_test_case::DeleteTestCaseError::ConflictException(inner) => Error::ConflictException(inner),
188            crate::operation::delete_test_case::DeleteTestCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
189            crate::operation::delete_test_case::DeleteTestCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
190            crate::operation::delete_test_case::DeleteTestCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
191            crate::operation::delete_test_case::DeleteTestCaseError::ValidationException(inner) => Error::ValidationException(inner),
192            crate::operation::delete_test_case::DeleteTestCaseError::Unhandled(inner) => Error::Unhandled(inner),
193        }
194    }
195}
196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_configuration::DeleteTestConfigurationError, R>>
197    for Error
198where
199    R: Send + Sync + std::fmt::Debug + 'static,
200{
201    fn from(
202        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_configuration::DeleteTestConfigurationError, R>,
203    ) -> Self {
204        match err {
205            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
206            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
207                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
208                source: err.into(),
209            }),
210        }
211    }
212}
213impl From<crate::operation::delete_test_configuration::DeleteTestConfigurationError> for Error {
214    fn from(err: crate::operation::delete_test_configuration::DeleteTestConfigurationError) -> Self {
215        match err {
216            crate::operation::delete_test_configuration::DeleteTestConfigurationError::AccessDeniedException(inner) => {
217                Error::AccessDeniedException(inner)
218            }
219            crate::operation::delete_test_configuration::DeleteTestConfigurationError::ConflictException(inner) => Error::ConflictException(inner),
220            crate::operation::delete_test_configuration::DeleteTestConfigurationError::InternalServerException(inner) => {
221                Error::InternalServerException(inner)
222            }
223            crate::operation::delete_test_configuration::DeleteTestConfigurationError::ServiceQuotaExceededException(inner) => {
224                Error::ServiceQuotaExceededException(inner)
225            }
226            crate::operation::delete_test_configuration::DeleteTestConfigurationError::ThrottlingException(inner) => {
227                Error::ThrottlingException(inner)
228            }
229            crate::operation::delete_test_configuration::DeleteTestConfigurationError::ValidationException(inner) => {
230                Error::ValidationException(inner)
231            }
232            crate::operation::delete_test_configuration::DeleteTestConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
233        }
234    }
235}
236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_run::DeleteTestRunError, R>> for Error
237where
238    R: Send + Sync + std::fmt::Debug + 'static,
239{
240    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_run::DeleteTestRunError, R>) -> Self {
241        match err {
242            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
243            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
244                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
245                source: err.into(),
246            }),
247        }
248    }
249}
250impl From<crate::operation::delete_test_run::DeleteTestRunError> for Error {
251    fn from(err: crate::operation::delete_test_run::DeleteTestRunError) -> Self {
252        match err {
253            crate::operation::delete_test_run::DeleteTestRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
254            crate::operation::delete_test_run::DeleteTestRunError::ConflictException(inner) => Error::ConflictException(inner),
255            crate::operation::delete_test_run::DeleteTestRunError::InternalServerException(inner) => Error::InternalServerException(inner),
256            crate::operation::delete_test_run::DeleteTestRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
257            crate::operation::delete_test_run::DeleteTestRunError::ValidationException(inner) => Error::ValidationException(inner),
258            crate::operation::delete_test_run::DeleteTestRunError::Unhandled(inner) => Error::Unhandled(inner),
259        }
260    }
261}
262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_suite::DeleteTestSuiteError, R>> for Error
263where
264    R: Send + Sync + std::fmt::Debug + 'static,
265{
266    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_suite::DeleteTestSuiteError, R>) -> Self {
267        match err {
268            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
269            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
270                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
271                source: err.into(),
272            }),
273        }
274    }
275}
276impl From<crate::operation::delete_test_suite::DeleteTestSuiteError> for Error {
277    fn from(err: crate::operation::delete_test_suite::DeleteTestSuiteError) -> Self {
278        match err {
279            crate::operation::delete_test_suite::DeleteTestSuiteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
280            crate::operation::delete_test_suite::DeleteTestSuiteError::ConflictException(inner) => Error::ConflictException(inner),
281            crate::operation::delete_test_suite::DeleteTestSuiteError::InternalServerException(inner) => Error::InternalServerException(inner),
282            crate::operation::delete_test_suite::DeleteTestSuiteError::ServiceQuotaExceededException(inner) => {
283                Error::ServiceQuotaExceededException(inner)
284            }
285            crate::operation::delete_test_suite::DeleteTestSuiteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
286            crate::operation::delete_test_suite::DeleteTestSuiteError::ValidationException(inner) => Error::ValidationException(inner),
287            crate::operation::delete_test_suite::DeleteTestSuiteError::Unhandled(inner) => Error::Unhandled(inner),
288        }
289    }
290}
291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_case::GetTestCaseError, R>> for Error
292where
293    R: Send + Sync + std::fmt::Debug + 'static,
294{
295    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_case::GetTestCaseError, R>) -> Self {
296        match err {
297            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
298            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
299                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
300                source: err.into(),
301            }),
302        }
303    }
304}
305impl From<crate::operation::get_test_case::GetTestCaseError> for Error {
306    fn from(err: crate::operation::get_test_case::GetTestCaseError) -> Self {
307        match err {
308            crate::operation::get_test_case::GetTestCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
309            crate::operation::get_test_case::GetTestCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
310            crate::operation::get_test_case::GetTestCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
311            crate::operation::get_test_case::GetTestCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
312            crate::operation::get_test_case::GetTestCaseError::ValidationException(inner) => Error::ValidationException(inner),
313            crate::operation::get_test_case::GetTestCaseError::Unhandled(inner) => Error::Unhandled(inner),
314        }
315    }
316}
317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_configuration::GetTestConfigurationError, 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_test_configuration::GetTestConfigurationError, 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_test_configuration::GetTestConfigurationError> for Error {
332    fn from(err: crate::operation::get_test_configuration::GetTestConfigurationError) -> Self {
333        match err {
334            crate::operation::get_test_configuration::GetTestConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
335            crate::operation::get_test_configuration::GetTestConfigurationError::InternalServerException(inner) => {
336                Error::InternalServerException(inner)
337            }
338            crate::operation::get_test_configuration::GetTestConfigurationError::ResourceNotFoundException(inner) => {
339                Error::ResourceNotFoundException(inner)
340            }
341            crate::operation::get_test_configuration::GetTestConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
342            crate::operation::get_test_configuration::GetTestConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
343            crate::operation::get_test_configuration::GetTestConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
344        }
345    }
346}
347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_run_step::GetTestRunStepError, R>> for Error
348where
349    R: Send + Sync + std::fmt::Debug + 'static,
350{
351    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_run_step::GetTestRunStepError, R>) -> Self {
352        match err {
353            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
354            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
355                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
356                source: err.into(),
357            }),
358        }
359    }
360}
361impl From<crate::operation::get_test_run_step::GetTestRunStepError> for Error {
362    fn from(err: crate::operation::get_test_run_step::GetTestRunStepError) -> Self {
363        match err {
364            crate::operation::get_test_run_step::GetTestRunStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
365            crate::operation::get_test_run_step::GetTestRunStepError::InternalServerException(inner) => Error::InternalServerException(inner),
366            crate::operation::get_test_run_step::GetTestRunStepError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
367            crate::operation::get_test_run_step::GetTestRunStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
368            crate::operation::get_test_run_step::GetTestRunStepError::ValidationException(inner) => Error::ValidationException(inner),
369            crate::operation::get_test_run_step::GetTestRunStepError::Unhandled(inner) => Error::Unhandled(inner),
370        }
371    }
372}
373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_suite::GetTestSuiteError, R>> for Error
374where
375    R: Send + Sync + std::fmt::Debug + 'static,
376{
377    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_suite::GetTestSuiteError, R>) -> Self {
378        match err {
379            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
380            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
381                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
382                source: err.into(),
383            }),
384        }
385    }
386}
387impl From<crate::operation::get_test_suite::GetTestSuiteError> for Error {
388    fn from(err: crate::operation::get_test_suite::GetTestSuiteError) -> Self {
389        match err {
390            crate::operation::get_test_suite::GetTestSuiteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
391            crate::operation::get_test_suite::GetTestSuiteError::InternalServerException(inner) => Error::InternalServerException(inner),
392            crate::operation::get_test_suite::GetTestSuiteError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
393            crate::operation::get_test_suite::GetTestSuiteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
394            crate::operation::get_test_suite::GetTestSuiteError::ValidationException(inner) => Error::ValidationException(inner),
395            crate::operation::get_test_suite::GetTestSuiteError::Unhandled(inner) => Error::Unhandled(inner),
396        }
397    }
398}
399impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
400where
401    R: Send + Sync + std::fmt::Debug + 'static,
402{
403    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
404        match err {
405            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
406            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
407                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
408                source: err.into(),
409            }),
410        }
411    }
412}
413impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
414    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
415        match err {
416            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
417            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
418                Error::InternalServerException(inner)
419            }
420            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
421                Error::ResourceNotFoundException(inner)
422            }
423            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
424            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
425            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
426        }
427    }
428}
429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_cases::ListTestCasesError, R>> for Error
430where
431    R: Send + Sync + std::fmt::Debug + 'static,
432{
433    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_cases::ListTestCasesError, R>) -> Self {
434        match err {
435            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
436            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
437                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
438                source: err.into(),
439            }),
440        }
441    }
442}
443impl From<crate::operation::list_test_cases::ListTestCasesError> for Error {
444    fn from(err: crate::operation::list_test_cases::ListTestCasesError) -> Self {
445        match err {
446            crate::operation::list_test_cases::ListTestCasesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
447            crate::operation::list_test_cases::ListTestCasesError::InternalServerException(inner) => Error::InternalServerException(inner),
448            crate::operation::list_test_cases::ListTestCasesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
449            crate::operation::list_test_cases::ListTestCasesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
450            crate::operation::list_test_cases::ListTestCasesError::ValidationException(inner) => Error::ValidationException(inner),
451            crate::operation::list_test_cases::ListTestCasesError::Unhandled(inner) => Error::Unhandled(inner),
452        }
453    }
454}
455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_configurations::ListTestConfigurationsError, R>> for Error
456where
457    R: Send + Sync + std::fmt::Debug + 'static,
458{
459    fn from(
460        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_configurations::ListTestConfigurationsError, R>,
461    ) -> Self {
462        match err {
463            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
464            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
465                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
466                source: err.into(),
467            }),
468        }
469    }
470}
471impl From<crate::operation::list_test_configurations::ListTestConfigurationsError> for Error {
472    fn from(err: crate::operation::list_test_configurations::ListTestConfigurationsError) -> Self {
473        match err {
474            crate::operation::list_test_configurations::ListTestConfigurationsError::AccessDeniedException(inner) => {
475                Error::AccessDeniedException(inner)
476            }
477            crate::operation::list_test_configurations::ListTestConfigurationsError::InternalServerException(inner) => {
478                Error::InternalServerException(inner)
479            }
480            crate::operation::list_test_configurations::ListTestConfigurationsError::ResourceNotFoundException(inner) => {
481                Error::ResourceNotFoundException(inner)
482            }
483            crate::operation::list_test_configurations::ListTestConfigurationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
484            crate::operation::list_test_configurations::ListTestConfigurationsError::ValidationException(inner) => Error::ValidationException(inner),
485            crate::operation::list_test_configurations::ListTestConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
486        }
487    }
488}
489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_runs::ListTestRunsError, R>> for Error
490where
491    R: Send + Sync + std::fmt::Debug + 'static,
492{
493    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_runs::ListTestRunsError, R>) -> Self {
494        match err {
495            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
496            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
497                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
498                source: err.into(),
499            }),
500        }
501    }
502}
503impl From<crate::operation::list_test_runs::ListTestRunsError> for Error {
504    fn from(err: crate::operation::list_test_runs::ListTestRunsError) -> Self {
505        match err {
506            crate::operation::list_test_runs::ListTestRunsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
507            crate::operation::list_test_runs::ListTestRunsError::InternalServerException(inner) => Error::InternalServerException(inner),
508            crate::operation::list_test_runs::ListTestRunsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
509            crate::operation::list_test_runs::ListTestRunsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
510            crate::operation::list_test_runs::ListTestRunsError::ValidationException(inner) => Error::ValidationException(inner),
511            crate::operation::list_test_runs::ListTestRunsError::Unhandled(inner) => Error::Unhandled(inner),
512        }
513    }
514}
515impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_run_steps::ListTestRunStepsError, R>> for Error
516where
517    R: Send + Sync + std::fmt::Debug + 'static,
518{
519    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_run_steps::ListTestRunStepsError, R>) -> Self {
520        match err {
521            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
522            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
523                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
524                source: err.into(),
525            }),
526        }
527    }
528}
529impl From<crate::operation::list_test_run_steps::ListTestRunStepsError> for Error {
530    fn from(err: crate::operation::list_test_run_steps::ListTestRunStepsError) -> Self {
531        match err {
532            crate::operation::list_test_run_steps::ListTestRunStepsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
533            crate::operation::list_test_run_steps::ListTestRunStepsError::InternalServerException(inner) => Error::InternalServerException(inner),
534            crate::operation::list_test_run_steps::ListTestRunStepsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
535            crate::operation::list_test_run_steps::ListTestRunStepsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
536            crate::operation::list_test_run_steps::ListTestRunStepsError::ValidationException(inner) => Error::ValidationException(inner),
537            crate::operation::list_test_run_steps::ListTestRunStepsError::Unhandled(inner) => Error::Unhandled(inner),
538        }
539    }
540}
541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_run_test_cases::ListTestRunTestCasesError, R>> for Error
542where
543    R: Send + Sync + std::fmt::Debug + 'static,
544{
545    fn from(
546        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_run_test_cases::ListTestRunTestCasesError, R>,
547    ) -> Self {
548        match err {
549            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
550            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
551                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
552                source: err.into(),
553            }),
554        }
555    }
556}
557impl From<crate::operation::list_test_run_test_cases::ListTestRunTestCasesError> for Error {
558    fn from(err: crate::operation::list_test_run_test_cases::ListTestRunTestCasesError) -> Self {
559        match err {
560            crate::operation::list_test_run_test_cases::ListTestRunTestCasesError::AccessDeniedException(inner) => {
561                Error::AccessDeniedException(inner)
562            }
563            crate::operation::list_test_run_test_cases::ListTestRunTestCasesError::InternalServerException(inner) => {
564                Error::InternalServerException(inner)
565            }
566            crate::operation::list_test_run_test_cases::ListTestRunTestCasesError::ResourceNotFoundException(inner) => {
567                Error::ResourceNotFoundException(inner)
568            }
569            crate::operation::list_test_run_test_cases::ListTestRunTestCasesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
570            crate::operation::list_test_run_test_cases::ListTestRunTestCasesError::ValidationException(inner) => Error::ValidationException(inner),
571            crate::operation::list_test_run_test_cases::ListTestRunTestCasesError::Unhandled(inner) => Error::Unhandled(inner),
572        }
573    }
574}
575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_suites::ListTestSuitesError, R>> for Error
576where
577    R: Send + Sync + std::fmt::Debug + 'static,
578{
579    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_suites::ListTestSuitesError, R>) -> Self {
580        match err {
581            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
582            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
583                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
584                source: err.into(),
585            }),
586        }
587    }
588}
589impl From<crate::operation::list_test_suites::ListTestSuitesError> for Error {
590    fn from(err: crate::operation::list_test_suites::ListTestSuitesError) -> Self {
591        match err {
592            crate::operation::list_test_suites::ListTestSuitesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
593            crate::operation::list_test_suites::ListTestSuitesError::InternalServerException(inner) => Error::InternalServerException(inner),
594            crate::operation::list_test_suites::ListTestSuitesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
595            crate::operation::list_test_suites::ListTestSuitesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
596            crate::operation::list_test_suites::ListTestSuitesError::ValidationException(inner) => Error::ValidationException(inner),
597            crate::operation::list_test_suites::ListTestSuitesError::Unhandled(inner) => Error::Unhandled(inner),
598        }
599    }
600}
601impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test_run::StartTestRunError, R>> for Error
602where
603    R: Send + Sync + std::fmt::Debug + 'static,
604{
605    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test_run::StartTestRunError, R>) -> Self {
606        match err {
607            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
608            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
609                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
610                source: err.into(),
611            }),
612        }
613    }
614}
615impl From<crate::operation::start_test_run::StartTestRunError> for Error {
616    fn from(err: crate::operation::start_test_run::StartTestRunError) -> Self {
617        match err {
618            crate::operation::start_test_run::StartTestRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
619            crate::operation::start_test_run::StartTestRunError::ConflictException(inner) => Error::ConflictException(inner),
620            crate::operation::start_test_run::StartTestRunError::InternalServerException(inner) => Error::InternalServerException(inner),
621            crate::operation::start_test_run::StartTestRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
622            crate::operation::start_test_run::StartTestRunError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
623            crate::operation::start_test_run::StartTestRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
624            crate::operation::start_test_run::StartTestRunError::ValidationException(inner) => Error::ValidationException(inner),
625            crate::operation::start_test_run::StartTestRunError::Unhandled(inner) => Error::Unhandled(inner),
626        }
627    }
628}
629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
630where
631    R: Send + Sync + std::fmt::Debug + 'static,
632{
633    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
634        match err {
635            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
636            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
637                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
638                source: err.into(),
639            }),
640        }
641    }
642}
643impl From<crate::operation::tag_resource::TagResourceError> for Error {
644    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
645        match err {
646            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
647            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
648            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
649            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
650            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
651            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
652            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
653        }
654    }
655}
656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
657where
658    R: Send + Sync + std::fmt::Debug + 'static,
659{
660    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
661        match err {
662            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
663            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
664                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
665                source: err.into(),
666            }),
667        }
668    }
669}
670impl From<crate::operation::untag_resource::UntagResourceError> for Error {
671    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
672        match err {
673            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
674            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
675            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
676            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
677            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
678            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
679        }
680    }
681}
682impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_case::UpdateTestCaseError, R>> for Error
683where
684    R: Send + Sync + std::fmt::Debug + 'static,
685{
686    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_case::UpdateTestCaseError, R>) -> Self {
687        match err {
688            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
689            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
690                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
691                source: err.into(),
692            }),
693        }
694    }
695}
696impl From<crate::operation::update_test_case::UpdateTestCaseError> for Error {
697    fn from(err: crate::operation::update_test_case::UpdateTestCaseError) -> Self {
698        match err {
699            crate::operation::update_test_case::UpdateTestCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
700            crate::operation::update_test_case::UpdateTestCaseError::ConflictException(inner) => Error::ConflictException(inner),
701            crate::operation::update_test_case::UpdateTestCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
702            crate::operation::update_test_case::UpdateTestCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
703            crate::operation::update_test_case::UpdateTestCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
704            crate::operation::update_test_case::UpdateTestCaseError::ValidationException(inner) => Error::ValidationException(inner),
705            crate::operation::update_test_case::UpdateTestCaseError::Unhandled(inner) => Error::Unhandled(inner),
706        }
707    }
708}
709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_configuration::UpdateTestConfigurationError, R>>
710    for Error
711where
712    R: Send + Sync + std::fmt::Debug + 'static,
713{
714    fn from(
715        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_configuration::UpdateTestConfigurationError, R>,
716    ) -> Self {
717        match err {
718            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
719            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
720                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
721                source: err.into(),
722            }),
723        }
724    }
725}
726impl From<crate::operation::update_test_configuration::UpdateTestConfigurationError> for Error {
727    fn from(err: crate::operation::update_test_configuration::UpdateTestConfigurationError) -> Self {
728        match err {
729            crate::operation::update_test_configuration::UpdateTestConfigurationError::AccessDeniedException(inner) => {
730                Error::AccessDeniedException(inner)
731            }
732            crate::operation::update_test_configuration::UpdateTestConfigurationError::ConflictException(inner) => Error::ConflictException(inner),
733            crate::operation::update_test_configuration::UpdateTestConfigurationError::InternalServerException(inner) => {
734                Error::InternalServerException(inner)
735            }
736            crate::operation::update_test_configuration::UpdateTestConfigurationError::ResourceNotFoundException(inner) => {
737                Error::ResourceNotFoundException(inner)
738            }
739            crate::operation::update_test_configuration::UpdateTestConfigurationError::ThrottlingException(inner) => {
740                Error::ThrottlingException(inner)
741            }
742            crate::operation::update_test_configuration::UpdateTestConfigurationError::ValidationException(inner) => {
743                Error::ValidationException(inner)
744            }
745            crate::operation::update_test_configuration::UpdateTestConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
746        }
747    }
748}
749impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_suite::UpdateTestSuiteError, R>> for Error
750where
751    R: Send + Sync + std::fmt::Debug + 'static,
752{
753    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_suite::UpdateTestSuiteError, R>) -> Self {
754        match err {
755            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
756            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
757                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
758                source: err.into(),
759            }),
760        }
761    }
762}
763impl From<crate::operation::update_test_suite::UpdateTestSuiteError> for Error {
764    fn from(err: crate::operation::update_test_suite::UpdateTestSuiteError) -> Self {
765        match err {
766            crate::operation::update_test_suite::UpdateTestSuiteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
767            crate::operation::update_test_suite::UpdateTestSuiteError::ConflictException(inner) => Error::ConflictException(inner),
768            crate::operation::update_test_suite::UpdateTestSuiteError::InternalServerException(inner) => Error::InternalServerException(inner),
769            crate::operation::update_test_suite::UpdateTestSuiteError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
770            crate::operation::update_test_suite::UpdateTestSuiteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
771            crate::operation::update_test_suite::UpdateTestSuiteError::ValidationException(inner) => Error::ValidationException(inner),
772            crate::operation::update_test_suite::UpdateTestSuiteError::Unhandled(inner) => Error::Unhandled(inner),
773        }
774    }
775}
776impl ::std::error::Error for Error {
777    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
778        match self {
779            Error::AccessDeniedException(inner) => inner.source(),
780            Error::ConflictException(inner) => inner.source(),
781            Error::InternalServerException(inner) => inner.source(),
782            Error::ResourceNotFoundException(inner) => inner.source(),
783            Error::ServiceQuotaExceededException(inner) => inner.source(),
784            Error::ThrottlingException(inner) => inner.source(),
785            Error::ValidationException(inner) => inner.source(),
786            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
787        }
788    }
789}
790impl ::aws_types::request_id::RequestId for Error {
791    fn request_id(&self) -> Option<&str> {
792        match self {
793            Self::AccessDeniedException(e) => e.request_id(),
794            Self::ConflictException(e) => e.request_id(),
795            Self::InternalServerException(e) => e.request_id(),
796            Self::ResourceNotFoundException(e) => e.request_id(),
797            Self::ServiceQuotaExceededException(e) => e.request_id(),
798            Self::ThrottlingException(e) => e.request_id(),
799            Self::ValidationException(e) => e.request_id(),
800            Self::Unhandled(e) => e.meta.request_id(),
801        }
802    }
803}