1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 ConflictException(crate::types::error::ConflictException),
8 InternalServerException(crate::types::error::InternalServerException),
10 PreconditionFailedException(crate::types::error::PreconditionFailedException),
12 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16 ThrottlingException(crate::types::error::ThrottlingException),
18 ValidationException(crate::types::error::ValidationException),
20 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22 variable wildcard pattern and check `.code()`:
23 \
24 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25 \
26 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27 Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31 match self {
32 Error::ConflictException(inner) => inner.fmt(f),
33 Error::InternalServerException(inner) => inner.fmt(f),
34 Error::PreconditionFailedException(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::ConflictException(inner) => inner.meta(),
61 Self::InternalServerException(inner) => inner.meta(),
62 Self::PreconditionFailedException(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>
72 From<
73 ::aws_smithy_runtime_api::client::result::SdkError<
74 crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError,
75 R,
76 >,
77 > for Error
78where
79 R: Send + Sync + std::fmt::Debug + 'static,
80{
81 fn from(
82 err: ::aws_smithy_runtime_api::client::result::SdkError<
83 crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError,
84 R,
85 >,
86 ) -> Self {
87 match err {
88 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
89 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
90 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
91 source: err.into(),
92 }),
93 }
94 }
95}
96impl From<crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError> for Error {
97 fn from(err: crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError) -> Self {
98 match err {
99 crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::InternalServerException(inner) => {
100 Error::InternalServerException(inner)
101 }
102 crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::ResourceNotFoundException(inner) => {
103 Error::ResourceNotFoundException(inner)
104 }
105 crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::ServiceQuotaExceededException(inner) => {
106 Error::ServiceQuotaExceededException(inner)
107 }
108 crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::ThrottlingException(inner) => {
109 Error::ThrottlingException(inner)
110 }
111 crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::ValidationException(inner) => {
112 Error::ValidationException(inner)
113 }
114 crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::Unhandled(inner) => Error::Unhandled(inner),
115 }
116 }
117}
118impl<R>
119 From<
120 ::aws_smithy_runtime_api::client::result::SdkError<
121 crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError,
122 R,
123 >,
124 > for Error
125where
126 R: Send + Sync + std::fmt::Debug + 'static,
127{
128 fn from(
129 err: ::aws_smithy_runtime_api::client::result::SdkError<
130 crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError,
131 R,
132 >,
133 ) -> Self {
134 match err {
135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
138 source: err.into(),
139 }),
140 }
141 }
142}
143impl From<crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError> for Error {
144 fn from(err: crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError) -> Self {
145 match err {
146 crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::InternalServerException(inner) => {
147 Error::InternalServerException(inner)
148 }
149 crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::ResourceNotFoundException(inner) => {
150 Error::ResourceNotFoundException(inner)
151 }
152 crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::ServiceQuotaExceededException(inner) => {
153 Error::ServiceQuotaExceededException(inner)
154 }
155 crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::ThrottlingException(inner) => {
156 Error::ThrottlingException(inner)
157 }
158 crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::ValidationException(inner) => {
159 Error::ValidationException(inner)
160 }
161 crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::Unhandled(inner) => Error::Unhandled(inner),
162 }
163 }
164}
165impl<R>
166 From<
167 ::aws_smithy_runtime_api::client::result::SdkError<
168 crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError,
169 R,
170 >,
171 > for Error
172where
173 R: Send + Sync + std::fmt::Debug + 'static,
174{
175 fn from(
176 err: ::aws_smithy_runtime_api::client::result::SdkError<
177 crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError,
178 R,
179 >,
180 ) -> Self {
181 match err {
182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
185 source: err.into(),
186 }),
187 }
188 }
189}
190impl From<crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError> for Error {
191 fn from(err: crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError) -> Self {
192 match err {
193 crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::InternalServerException(inner) => {
194 Error::InternalServerException(inner)
195 }
196 crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::ResourceNotFoundException(inner) => {
197 Error::ResourceNotFoundException(inner)
198 }
199 crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::ServiceQuotaExceededException(inner) => {
200 Error::ServiceQuotaExceededException(inner)
201 }
202 crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::ThrottlingException(inner) => {
203 Error::ThrottlingException(inner)
204 }
205 crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::ValidationException(inner) => {
206 Error::ValidationException(inner)
207 }
208 crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::Unhandled(inner) => Error::Unhandled(inner),
209 }
210 }
211}
212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::build_bot_locale::BuildBotLocaleError, R>> for Error
213where
214 R: Send + Sync + std::fmt::Debug + 'static,
215{
216 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::build_bot_locale::BuildBotLocaleError, R>) -> Self {
217 match err {
218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
221 source: err.into(),
222 }),
223 }
224 }
225}
226impl From<crate::operation::build_bot_locale::BuildBotLocaleError> for Error {
227 fn from(err: crate::operation::build_bot_locale::BuildBotLocaleError) -> Self {
228 match err {
229 crate::operation::build_bot_locale::BuildBotLocaleError::ConflictException(inner) => Error::ConflictException(inner),
230 crate::operation::build_bot_locale::BuildBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
231 crate::operation::build_bot_locale::BuildBotLocaleError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
232 crate::operation::build_bot_locale::BuildBotLocaleError::ServiceQuotaExceededException(inner) => {
233 Error::ServiceQuotaExceededException(inner)
234 }
235 crate::operation::build_bot_locale::BuildBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
236 crate::operation::build_bot_locale::BuildBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
237 crate::operation::build_bot_locale::BuildBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
238 }
239 }
240}
241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot::CreateBotError, R>> for Error
242where
243 R: Send + Sync + std::fmt::Debug + 'static,
244{
245 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot::CreateBotError, R>) -> Self {
246 match err {
247 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
248 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
249 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
250 source: err.into(),
251 }),
252 }
253 }
254}
255impl From<crate::operation::create_bot::CreateBotError> for Error {
256 fn from(err: crate::operation::create_bot::CreateBotError) -> Self {
257 match err {
258 crate::operation::create_bot::CreateBotError::ConflictException(inner) => Error::ConflictException(inner),
259 crate::operation::create_bot::CreateBotError::InternalServerException(inner) => Error::InternalServerException(inner),
260 crate::operation::create_bot::CreateBotError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
261 crate::operation::create_bot::CreateBotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
262 crate::operation::create_bot::CreateBotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
263 crate::operation::create_bot::CreateBotError::ValidationException(inner) => Error::ValidationException(inner),
264 crate::operation::create_bot::CreateBotError::Unhandled(inner) => Error::Unhandled(inner),
265 }
266 }
267}
268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot_alias::CreateBotAliasError, R>> for Error
269where
270 R: Send + Sync + std::fmt::Debug + 'static,
271{
272 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot_alias::CreateBotAliasError, R>) -> Self {
273 match err {
274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
277 source: err.into(),
278 }),
279 }
280 }
281}
282impl From<crate::operation::create_bot_alias::CreateBotAliasError> for Error {
283 fn from(err: crate::operation::create_bot_alias::CreateBotAliasError) -> Self {
284 match err {
285 crate::operation::create_bot_alias::CreateBotAliasError::ConflictException(inner) => Error::ConflictException(inner),
286 crate::operation::create_bot_alias::CreateBotAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
287 crate::operation::create_bot_alias::CreateBotAliasError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
288 crate::operation::create_bot_alias::CreateBotAliasError::ServiceQuotaExceededException(inner) => {
289 Error::ServiceQuotaExceededException(inner)
290 }
291 crate::operation::create_bot_alias::CreateBotAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
292 crate::operation::create_bot_alias::CreateBotAliasError::ValidationException(inner) => Error::ValidationException(inner),
293 crate::operation::create_bot_alias::CreateBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
294 }
295 }
296}
297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot_locale::CreateBotLocaleError, R>> for Error
298where
299 R: Send + Sync + std::fmt::Debug + 'static,
300{
301 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot_locale::CreateBotLocaleError, R>) -> Self {
302 match err {
303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
306 source: err.into(),
307 }),
308 }
309 }
310}
311impl From<crate::operation::create_bot_locale::CreateBotLocaleError> for Error {
312 fn from(err: crate::operation::create_bot_locale::CreateBotLocaleError) -> Self {
313 match err {
314 crate::operation::create_bot_locale::CreateBotLocaleError::ConflictException(inner) => Error::ConflictException(inner),
315 crate::operation::create_bot_locale::CreateBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
316 crate::operation::create_bot_locale::CreateBotLocaleError::PreconditionFailedException(inner) => {
317 Error::PreconditionFailedException(inner)
318 }
319 crate::operation::create_bot_locale::CreateBotLocaleError::ServiceQuotaExceededException(inner) => {
320 Error::ServiceQuotaExceededException(inner)
321 }
322 crate::operation::create_bot_locale::CreateBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
323 crate::operation::create_bot_locale::CreateBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
324 crate::operation::create_bot_locale::CreateBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
325 }
326 }
327}
328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot_replica::CreateBotReplicaError, R>> for Error
329where
330 R: Send + Sync + std::fmt::Debug + 'static,
331{
332 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot_replica::CreateBotReplicaError, R>) -> Self {
333 match err {
334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
337 source: err.into(),
338 }),
339 }
340 }
341}
342impl From<crate::operation::create_bot_replica::CreateBotReplicaError> for Error {
343 fn from(err: crate::operation::create_bot_replica::CreateBotReplicaError) -> Self {
344 match err {
345 crate::operation::create_bot_replica::CreateBotReplicaError::ConflictException(inner) => Error::ConflictException(inner),
346 crate::operation::create_bot_replica::CreateBotReplicaError::InternalServerException(inner) => Error::InternalServerException(inner),
347 crate::operation::create_bot_replica::CreateBotReplicaError::PreconditionFailedException(inner) => {
348 Error::PreconditionFailedException(inner)
349 }
350 crate::operation::create_bot_replica::CreateBotReplicaError::ServiceQuotaExceededException(inner) => {
351 Error::ServiceQuotaExceededException(inner)
352 }
353 crate::operation::create_bot_replica::CreateBotReplicaError::ThrottlingException(inner) => Error::ThrottlingException(inner),
354 crate::operation::create_bot_replica::CreateBotReplicaError::ValidationException(inner) => Error::ValidationException(inner),
355 crate::operation::create_bot_replica::CreateBotReplicaError::Unhandled(inner) => Error::Unhandled(inner),
356 }
357 }
358}
359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot_version::CreateBotVersionError, 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::create_bot_version::CreateBotVersionError, 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::create_bot_version::CreateBotVersionError> for Error {
374 fn from(err: crate::operation::create_bot_version::CreateBotVersionError) -> Self {
375 match err {
376 crate::operation::create_bot_version::CreateBotVersionError::ConflictException(inner) => Error::ConflictException(inner),
377 crate::operation::create_bot_version::CreateBotVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
378 crate::operation::create_bot_version::CreateBotVersionError::PreconditionFailedException(inner) => {
379 Error::PreconditionFailedException(inner)
380 }
381 crate::operation::create_bot_version::CreateBotVersionError::ServiceQuotaExceededException(inner) => {
382 Error::ServiceQuotaExceededException(inner)
383 }
384 crate::operation::create_bot_version::CreateBotVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
385 crate::operation::create_bot_version::CreateBotVersionError::ValidationException(inner) => Error::ValidationException(inner),
386 crate::operation::create_bot_version::CreateBotVersionError::Unhandled(inner) => Error::Unhandled(inner),
387 }
388 }
389}
390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export::CreateExportError, R>> for Error
391where
392 R: Send + Sync + std::fmt::Debug + 'static,
393{
394 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export::CreateExportError, R>) -> Self {
395 match err {
396 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
397 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
398 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
399 source: err.into(),
400 }),
401 }
402 }
403}
404impl From<crate::operation::create_export::CreateExportError> for Error {
405 fn from(err: crate::operation::create_export::CreateExportError) -> Self {
406 match err {
407 crate::operation::create_export::CreateExportError::ConflictException(inner) => Error::ConflictException(inner),
408 crate::operation::create_export::CreateExportError::InternalServerException(inner) => Error::InternalServerException(inner),
409 crate::operation::create_export::CreateExportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
410 crate::operation::create_export::CreateExportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
411 crate::operation::create_export::CreateExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
412 crate::operation::create_export::CreateExportError::ValidationException(inner) => Error::ValidationException(inner),
413 crate::operation::create_export::CreateExportError::Unhandled(inner) => Error::Unhandled(inner),
414 }
415 }
416}
417impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_intent::CreateIntentError, R>> for Error
418where
419 R: Send + Sync + std::fmt::Debug + 'static,
420{
421 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_intent::CreateIntentError, R>) -> Self {
422 match err {
423 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
424 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
425 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
426 source: err.into(),
427 }),
428 }
429 }
430}
431impl From<crate::operation::create_intent::CreateIntentError> for Error {
432 fn from(err: crate::operation::create_intent::CreateIntentError) -> Self {
433 match err {
434 crate::operation::create_intent::CreateIntentError::ConflictException(inner) => Error::ConflictException(inner),
435 crate::operation::create_intent::CreateIntentError::InternalServerException(inner) => Error::InternalServerException(inner),
436 crate::operation::create_intent::CreateIntentError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
437 crate::operation::create_intent::CreateIntentError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
438 crate::operation::create_intent::CreateIntentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
439 crate::operation::create_intent::CreateIntentError::ValidationException(inner) => Error::ValidationException(inner),
440 crate::operation::create_intent::CreateIntentError::Unhandled(inner) => Error::Unhandled(inner),
441 }
442 }
443}
444impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resource_policy::CreateResourcePolicyError, R>> for Error
445where
446 R: Send + Sync + std::fmt::Debug + 'static,
447{
448 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resource_policy::CreateResourcePolicyError, R>) -> Self {
449 match err {
450 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
451 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
452 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
453 source: err.into(),
454 }),
455 }
456 }
457}
458impl From<crate::operation::create_resource_policy::CreateResourcePolicyError> for Error {
459 fn from(err: crate::operation::create_resource_policy::CreateResourcePolicyError) -> Self {
460 match err {
461 crate::operation::create_resource_policy::CreateResourcePolicyError::InternalServerException(inner) => {
462 Error::InternalServerException(inner)
463 }
464 crate::operation::create_resource_policy::CreateResourcePolicyError::PreconditionFailedException(inner) => {
465 Error::PreconditionFailedException(inner)
466 }
467 crate::operation::create_resource_policy::CreateResourcePolicyError::ResourceNotFoundException(inner) => {
468 Error::ResourceNotFoundException(inner)
469 }
470 crate::operation::create_resource_policy::CreateResourcePolicyError::ServiceQuotaExceededException(inner) => {
471 Error::ServiceQuotaExceededException(inner)
472 }
473 crate::operation::create_resource_policy::CreateResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
474 crate::operation::create_resource_policy::CreateResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
475 crate::operation::create_resource_policy::CreateResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
476 }
477 }
478}
479impl<R>
480 From<
481 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError, R>,
482 > for Error
483where
484 R: Send + Sync + std::fmt::Debug + 'static,
485{
486 fn from(
487 err: ::aws_smithy_runtime_api::client::result::SdkError<
488 crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError,
489 R,
490 >,
491 ) -> Self {
492 match err {
493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
496 source: err.into(),
497 }),
498 }
499 }
500}
501impl From<crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError> for Error {
502 fn from(err: crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError) -> Self {
503 match err {
504 crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::ConflictException(inner) => {
505 Error::ConflictException(inner)
506 }
507 crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::InternalServerException(inner) => {
508 Error::InternalServerException(inner)
509 }
510 crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::PreconditionFailedException(inner) => {
511 Error::PreconditionFailedException(inner)
512 }
513 crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::ResourceNotFoundException(inner) => {
514 Error::ResourceNotFoundException(inner)
515 }
516 crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::ServiceQuotaExceededException(inner) => {
517 Error::ServiceQuotaExceededException(inner)
518 }
519 crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::ThrottlingException(inner) => {
520 Error::ThrottlingException(inner)
521 }
522 crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::ValidationException(inner) => {
523 Error::ValidationException(inner)
524 }
525 crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::Unhandled(inner) => Error::Unhandled(inner),
526 }
527 }
528}
529impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_slot::CreateSlotError, R>> for Error
530where
531 R: Send + Sync + std::fmt::Debug + 'static,
532{
533 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_slot::CreateSlotError, R>) -> Self {
534 match err {
535 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
536 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
537 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
538 source: err.into(),
539 }),
540 }
541 }
542}
543impl From<crate::operation::create_slot::CreateSlotError> for Error {
544 fn from(err: crate::operation::create_slot::CreateSlotError) -> Self {
545 match err {
546 crate::operation::create_slot::CreateSlotError::ConflictException(inner) => Error::ConflictException(inner),
547 crate::operation::create_slot::CreateSlotError::InternalServerException(inner) => Error::InternalServerException(inner),
548 crate::operation::create_slot::CreateSlotError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
549 crate::operation::create_slot::CreateSlotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
550 crate::operation::create_slot::CreateSlotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
551 crate::operation::create_slot::CreateSlotError::ValidationException(inner) => Error::ValidationException(inner),
552 crate::operation::create_slot::CreateSlotError::Unhandled(inner) => Error::Unhandled(inner),
553 }
554 }
555}
556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_slot_type::CreateSlotTypeError, R>> for Error
557where
558 R: Send + Sync + std::fmt::Debug + 'static,
559{
560 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_slot_type::CreateSlotTypeError, R>) -> Self {
561 match err {
562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
565 source: err.into(),
566 }),
567 }
568 }
569}
570impl From<crate::operation::create_slot_type::CreateSlotTypeError> for Error {
571 fn from(err: crate::operation::create_slot_type::CreateSlotTypeError) -> Self {
572 match err {
573 crate::operation::create_slot_type::CreateSlotTypeError::ConflictException(inner) => Error::ConflictException(inner),
574 crate::operation::create_slot_type::CreateSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
575 crate::operation::create_slot_type::CreateSlotTypeError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
576 crate::operation::create_slot_type::CreateSlotTypeError::ServiceQuotaExceededException(inner) => {
577 Error::ServiceQuotaExceededException(inner)
578 }
579 crate::operation::create_slot_type::CreateSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
580 crate::operation::create_slot_type::CreateSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
581 crate::operation::create_slot_type::CreateSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
582 }
583 }
584}
585impl<R>
586 From<
587 ::aws_smithy_runtime_api::client::result::SdkError<
588 crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError,
589 R,
590 >,
591 > for Error
592where
593 R: Send + Sync + std::fmt::Debug + 'static,
594{
595 fn from(
596 err: ::aws_smithy_runtime_api::client::result::SdkError<
597 crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError,
598 R,
599 >,
600 ) -> Self {
601 match err {
602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
605 source: err.into(),
606 }),
607 }
608 }
609}
610impl From<crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError> for Error {
611 fn from(err: crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError) -> Self {
612 match err {
613 crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError::ConflictException(inner) => {
614 Error::ConflictException(inner)
615 }
616 crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError::InternalServerException(inner) => {
617 Error::InternalServerException(inner)
618 }
619 crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError::ResourceNotFoundException(inner) => {
620 Error::ResourceNotFoundException(inner)
621 }
622 crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError::ServiceQuotaExceededException(inner) => {
623 Error::ServiceQuotaExceededException(inner)
624 }
625 crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError::ThrottlingException(inner) => {
626 Error::ThrottlingException(inner)
627 }
628 crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError::ValidationException(inner) => {
629 Error::ValidationException(inner)
630 }
631 crate::operation::create_test_set_discrepancy_report::CreateTestSetDiscrepancyReportError::Unhandled(inner) => Error::Unhandled(inner),
632 }
633 }
634}
635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_upload_url::CreateUploadUrlError, R>> for Error
636where
637 R: Send + Sync + std::fmt::Debug + 'static,
638{
639 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_upload_url::CreateUploadUrlError, R>) -> Self {
640 match err {
641 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
642 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
643 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
644 source: err.into(),
645 }),
646 }
647 }
648}
649impl From<crate::operation::create_upload_url::CreateUploadUrlError> for Error {
650 fn from(err: crate::operation::create_upload_url::CreateUploadUrlError) -> Self {
651 match err {
652 crate::operation::create_upload_url::CreateUploadUrlError::ConflictException(inner) => Error::ConflictException(inner),
653 crate::operation::create_upload_url::CreateUploadUrlError::InternalServerException(inner) => Error::InternalServerException(inner),
654 crate::operation::create_upload_url::CreateUploadUrlError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
655 crate::operation::create_upload_url::CreateUploadUrlError::ThrottlingException(inner) => Error::ThrottlingException(inner),
656 crate::operation::create_upload_url::CreateUploadUrlError::ValidationException(inner) => Error::ValidationException(inner),
657 crate::operation::create_upload_url::CreateUploadUrlError::Unhandled(inner) => Error::Unhandled(inner),
658 }
659 }
660}
661impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot::DeleteBotError, R>> for Error
662where
663 R: Send + Sync + std::fmt::Debug + 'static,
664{
665 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot::DeleteBotError, R>) -> Self {
666 match err {
667 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
668 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
669 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
670 source: err.into(),
671 }),
672 }
673 }
674}
675impl From<crate::operation::delete_bot::DeleteBotError> for Error {
676 fn from(err: crate::operation::delete_bot::DeleteBotError) -> Self {
677 match err {
678 crate::operation::delete_bot::DeleteBotError::ConflictException(inner) => Error::ConflictException(inner),
679 crate::operation::delete_bot::DeleteBotError::InternalServerException(inner) => Error::InternalServerException(inner),
680 crate::operation::delete_bot::DeleteBotError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
681 crate::operation::delete_bot::DeleteBotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
682 crate::operation::delete_bot::DeleteBotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
683 crate::operation::delete_bot::DeleteBotError::ValidationException(inner) => Error::ValidationException(inner),
684 crate::operation::delete_bot::DeleteBotError::Unhandled(inner) => Error::Unhandled(inner),
685 }
686 }
687}
688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_alias::DeleteBotAliasError, R>> for Error
689where
690 R: Send + Sync + std::fmt::Debug + 'static,
691{
692 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_alias::DeleteBotAliasError, R>) -> Self {
693 match err {
694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
697 source: err.into(),
698 }),
699 }
700 }
701}
702impl From<crate::operation::delete_bot_alias::DeleteBotAliasError> for Error {
703 fn from(err: crate::operation::delete_bot_alias::DeleteBotAliasError) -> Self {
704 match err {
705 crate::operation::delete_bot_alias::DeleteBotAliasError::ConflictException(inner) => Error::ConflictException(inner),
706 crate::operation::delete_bot_alias::DeleteBotAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
707 crate::operation::delete_bot_alias::DeleteBotAliasError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
708 crate::operation::delete_bot_alias::DeleteBotAliasError::ServiceQuotaExceededException(inner) => {
709 Error::ServiceQuotaExceededException(inner)
710 }
711 crate::operation::delete_bot_alias::DeleteBotAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
712 crate::operation::delete_bot_alias::DeleteBotAliasError::ValidationException(inner) => Error::ValidationException(inner),
713 crate::operation::delete_bot_alias::DeleteBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
714 }
715 }
716}
717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_locale::DeleteBotLocaleError, R>> for Error
718where
719 R: Send + Sync + std::fmt::Debug + 'static,
720{
721 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_locale::DeleteBotLocaleError, R>) -> Self {
722 match err {
723 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
724 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
725 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
726 source: err.into(),
727 }),
728 }
729 }
730}
731impl From<crate::operation::delete_bot_locale::DeleteBotLocaleError> for Error {
732 fn from(err: crate::operation::delete_bot_locale::DeleteBotLocaleError) -> Self {
733 match err {
734 crate::operation::delete_bot_locale::DeleteBotLocaleError::ConflictException(inner) => Error::ConflictException(inner),
735 crate::operation::delete_bot_locale::DeleteBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
736 crate::operation::delete_bot_locale::DeleteBotLocaleError::PreconditionFailedException(inner) => {
737 Error::PreconditionFailedException(inner)
738 }
739 crate::operation::delete_bot_locale::DeleteBotLocaleError::ServiceQuotaExceededException(inner) => {
740 Error::ServiceQuotaExceededException(inner)
741 }
742 crate::operation::delete_bot_locale::DeleteBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
743 crate::operation::delete_bot_locale::DeleteBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
744 crate::operation::delete_bot_locale::DeleteBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
745 }
746 }
747}
748impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_replica::DeleteBotReplicaError, R>> for Error
749where
750 R: Send + Sync + std::fmt::Debug + 'static,
751{
752 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_replica::DeleteBotReplicaError, R>) -> Self {
753 match err {
754 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
755 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
756 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
757 source: err.into(),
758 }),
759 }
760 }
761}
762impl From<crate::operation::delete_bot_replica::DeleteBotReplicaError> for Error {
763 fn from(err: crate::operation::delete_bot_replica::DeleteBotReplicaError) -> Self {
764 match err {
765 crate::operation::delete_bot_replica::DeleteBotReplicaError::ConflictException(inner) => Error::ConflictException(inner),
766 crate::operation::delete_bot_replica::DeleteBotReplicaError::InternalServerException(inner) => Error::InternalServerException(inner),
767 crate::operation::delete_bot_replica::DeleteBotReplicaError::PreconditionFailedException(inner) => {
768 Error::PreconditionFailedException(inner)
769 }
770 crate::operation::delete_bot_replica::DeleteBotReplicaError::ServiceQuotaExceededException(inner) => {
771 Error::ServiceQuotaExceededException(inner)
772 }
773 crate::operation::delete_bot_replica::DeleteBotReplicaError::ThrottlingException(inner) => Error::ThrottlingException(inner),
774 crate::operation::delete_bot_replica::DeleteBotReplicaError::ValidationException(inner) => Error::ValidationException(inner),
775 crate::operation::delete_bot_replica::DeleteBotReplicaError::Unhandled(inner) => Error::Unhandled(inner),
776 }
777 }
778}
779impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_version::DeleteBotVersionError, R>> for Error
780where
781 R: Send + Sync + std::fmt::Debug + 'static,
782{
783 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_version::DeleteBotVersionError, R>) -> Self {
784 match err {
785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
788 source: err.into(),
789 }),
790 }
791 }
792}
793impl From<crate::operation::delete_bot_version::DeleteBotVersionError> for Error {
794 fn from(err: crate::operation::delete_bot_version::DeleteBotVersionError) -> Self {
795 match err {
796 crate::operation::delete_bot_version::DeleteBotVersionError::ConflictException(inner) => Error::ConflictException(inner),
797 crate::operation::delete_bot_version::DeleteBotVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
798 crate::operation::delete_bot_version::DeleteBotVersionError::PreconditionFailedException(inner) => {
799 Error::PreconditionFailedException(inner)
800 }
801 crate::operation::delete_bot_version::DeleteBotVersionError::ServiceQuotaExceededException(inner) => {
802 Error::ServiceQuotaExceededException(inner)
803 }
804 crate::operation::delete_bot_version::DeleteBotVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
805 crate::operation::delete_bot_version::DeleteBotVersionError::ValidationException(inner) => Error::ValidationException(inner),
806 crate::operation::delete_bot_version::DeleteBotVersionError::Unhandled(inner) => Error::Unhandled(inner),
807 }
808 }
809}
810impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError, R>> for Error
811where
812 R: Send + Sync + std::fmt::Debug + 'static,
813{
814 fn from(
815 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError, R>,
816 ) -> Self {
817 match err {
818 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
819 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
820 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
821 source: err.into(),
822 }),
823 }
824 }
825}
826impl From<crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError> for Error {
827 fn from(err: crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError) -> Self {
828 match err {
829 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ConflictException(inner) => Error::ConflictException(inner),
830 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::InternalServerException(inner) => {
831 Error::InternalServerException(inner)
832 }
833 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::PreconditionFailedException(inner) => {
834 Error::PreconditionFailedException(inner)
835 }
836 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ServiceQuotaExceededException(inner) => {
837 Error::ServiceQuotaExceededException(inner)
838 }
839 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
840 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ValidationException(inner) => Error::ValidationException(inner),
841 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::Unhandled(inner) => Error::Unhandled(inner),
842 }
843 }
844}
845impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_export::DeleteExportError, R>> for Error
846where
847 R: Send + Sync + std::fmt::Debug + 'static,
848{
849 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_export::DeleteExportError, R>) -> Self {
850 match err {
851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
854 source: err.into(),
855 }),
856 }
857 }
858}
859impl From<crate::operation::delete_export::DeleteExportError> for Error {
860 fn from(err: crate::operation::delete_export::DeleteExportError) -> Self {
861 match err {
862 crate::operation::delete_export::DeleteExportError::InternalServerException(inner) => Error::InternalServerException(inner),
863 crate::operation::delete_export::DeleteExportError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
864 crate::operation::delete_export::DeleteExportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
865 crate::operation::delete_export::DeleteExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
866 crate::operation::delete_export::DeleteExportError::ValidationException(inner) => Error::ValidationException(inner),
867 crate::operation::delete_export::DeleteExportError::Unhandled(inner) => Error::Unhandled(inner),
868 }
869 }
870}
871impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_import::DeleteImportError, R>> for Error
872where
873 R: Send + Sync + std::fmt::Debug + 'static,
874{
875 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_import::DeleteImportError, R>) -> Self {
876 match err {
877 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
878 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
879 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
880 source: err.into(),
881 }),
882 }
883 }
884}
885impl From<crate::operation::delete_import::DeleteImportError> for Error {
886 fn from(err: crate::operation::delete_import::DeleteImportError) -> Self {
887 match err {
888 crate::operation::delete_import::DeleteImportError::InternalServerException(inner) => Error::InternalServerException(inner),
889 crate::operation::delete_import::DeleteImportError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
890 crate::operation::delete_import::DeleteImportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
891 crate::operation::delete_import::DeleteImportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
892 crate::operation::delete_import::DeleteImportError::ValidationException(inner) => Error::ValidationException(inner),
893 crate::operation::delete_import::DeleteImportError::Unhandled(inner) => Error::Unhandled(inner),
894 }
895 }
896}
897impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_intent::DeleteIntentError, R>> for Error
898where
899 R: Send + Sync + std::fmt::Debug + 'static,
900{
901 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_intent::DeleteIntentError, R>) -> Self {
902 match err {
903 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
904 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
905 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
906 source: err.into(),
907 }),
908 }
909 }
910}
911impl From<crate::operation::delete_intent::DeleteIntentError> for Error {
912 fn from(err: crate::operation::delete_intent::DeleteIntentError) -> Self {
913 match err {
914 crate::operation::delete_intent::DeleteIntentError::ConflictException(inner) => Error::ConflictException(inner),
915 crate::operation::delete_intent::DeleteIntentError::InternalServerException(inner) => Error::InternalServerException(inner),
916 crate::operation::delete_intent::DeleteIntentError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
917 crate::operation::delete_intent::DeleteIntentError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
918 crate::operation::delete_intent::DeleteIntentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
919 crate::operation::delete_intent::DeleteIntentError::ValidationException(inner) => Error::ValidationException(inner),
920 crate::operation::delete_intent::DeleteIntentError::Unhandled(inner) => Error::Unhandled(inner),
921 }
922 }
923}
924impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
925where
926 R: Send + Sync + std::fmt::Debug + 'static,
927{
928 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
929 match err {
930 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
931 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
932 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
933 source: err.into(),
934 }),
935 }
936 }
937}
938impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
939 fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
940 match err {
941 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
942 Error::InternalServerException(inner)
943 }
944 crate::operation::delete_resource_policy::DeleteResourcePolicyError::PreconditionFailedException(inner) => {
945 Error::PreconditionFailedException(inner)
946 }
947 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
948 Error::ResourceNotFoundException(inner)
949 }
950 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
951 crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
952 }
953 }
954}
955impl<R>
956 From<
957 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError, R>,
958 > for Error
959where
960 R: Send + Sync + std::fmt::Debug + 'static,
961{
962 fn from(
963 err: ::aws_smithy_runtime_api::client::result::SdkError<
964 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError,
965 R,
966 >,
967 ) -> Self {
968 match err {
969 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
970 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
971 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
972 source: err.into(),
973 }),
974 }
975 }
976}
977impl From<crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError> for Error {
978 fn from(err: crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError) -> Self {
979 match err {
980 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::InternalServerException(inner) => {
981 Error::InternalServerException(inner)
982 }
983 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::PreconditionFailedException(inner) => {
984 Error::PreconditionFailedException(inner)
985 }
986 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::ResourceNotFoundException(inner) => {
987 Error::ResourceNotFoundException(inner)
988 }
989 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::ThrottlingException(inner) => {
990 Error::ThrottlingException(inner)
991 }
992 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::Unhandled(inner) => Error::Unhandled(inner),
993 }
994 }
995}
996impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot::DeleteSlotError, R>> for Error
997where
998 R: Send + Sync + std::fmt::Debug + 'static,
999{
1000 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot::DeleteSlotError, R>) -> Self {
1001 match err {
1002 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1003 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1004 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1005 source: err.into(),
1006 }),
1007 }
1008 }
1009}
1010impl From<crate::operation::delete_slot::DeleteSlotError> for Error {
1011 fn from(err: crate::operation::delete_slot::DeleteSlotError) -> Self {
1012 match err {
1013 crate::operation::delete_slot::DeleteSlotError::ConflictException(inner) => Error::ConflictException(inner),
1014 crate::operation::delete_slot::DeleteSlotError::InternalServerException(inner) => Error::InternalServerException(inner),
1015 crate::operation::delete_slot::DeleteSlotError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
1016 crate::operation::delete_slot::DeleteSlotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1017 crate::operation::delete_slot::DeleteSlotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1018 crate::operation::delete_slot::DeleteSlotError::ValidationException(inner) => Error::ValidationException(inner),
1019 crate::operation::delete_slot::DeleteSlotError::Unhandled(inner) => Error::Unhandled(inner),
1020 }
1021 }
1022}
1023impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot_type::DeleteSlotTypeError, R>> for Error
1024where
1025 R: Send + Sync + std::fmt::Debug + 'static,
1026{
1027 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot_type::DeleteSlotTypeError, R>) -> Self {
1028 match err {
1029 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1030 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1031 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1032 source: err.into(),
1033 }),
1034 }
1035 }
1036}
1037impl From<crate::operation::delete_slot_type::DeleteSlotTypeError> for Error {
1038 fn from(err: crate::operation::delete_slot_type::DeleteSlotTypeError) -> Self {
1039 match err {
1040 crate::operation::delete_slot_type::DeleteSlotTypeError::ConflictException(inner) => Error::ConflictException(inner),
1041 crate::operation::delete_slot_type::DeleteSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
1042 crate::operation::delete_slot_type::DeleteSlotTypeError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
1043 crate::operation::delete_slot_type::DeleteSlotTypeError::ServiceQuotaExceededException(inner) => {
1044 Error::ServiceQuotaExceededException(inner)
1045 }
1046 crate::operation::delete_slot_type::DeleteSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1047 crate::operation::delete_slot_type::DeleteSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
1048 crate::operation::delete_slot_type::DeleteSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
1049 }
1050 }
1051}
1052impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_set::DeleteTestSetError, R>> for Error
1053where
1054 R: Send + Sync + std::fmt::Debug + 'static,
1055{
1056 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_set::DeleteTestSetError, R>) -> Self {
1057 match err {
1058 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1059 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1060 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1061 source: err.into(),
1062 }),
1063 }
1064 }
1065}
1066impl From<crate::operation::delete_test_set::DeleteTestSetError> for Error {
1067 fn from(err: crate::operation::delete_test_set::DeleteTestSetError) -> Self {
1068 match err {
1069 crate::operation::delete_test_set::DeleteTestSetError::ConflictException(inner) => Error::ConflictException(inner),
1070 crate::operation::delete_test_set::DeleteTestSetError::InternalServerException(inner) => Error::InternalServerException(inner),
1071 crate::operation::delete_test_set::DeleteTestSetError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
1072 crate::operation::delete_test_set::DeleteTestSetError::ServiceQuotaExceededException(inner) => {
1073 Error::ServiceQuotaExceededException(inner)
1074 }
1075 crate::operation::delete_test_set::DeleteTestSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1076 crate::operation::delete_test_set::DeleteTestSetError::ValidationException(inner) => Error::ValidationException(inner),
1077 crate::operation::delete_test_set::DeleteTestSetError::Unhandled(inner) => Error::Unhandled(inner),
1078 }
1079 }
1080}
1081impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_utterances::DeleteUtterancesError, R>> for Error
1082where
1083 R: Send + Sync + std::fmt::Debug + 'static,
1084{
1085 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_utterances::DeleteUtterancesError, R>) -> Self {
1086 match err {
1087 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1088 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1089 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1090 source: err.into(),
1091 }),
1092 }
1093 }
1094}
1095impl From<crate::operation::delete_utterances::DeleteUtterancesError> for Error {
1096 fn from(err: crate::operation::delete_utterances::DeleteUtterancesError) -> Self {
1097 match err {
1098 crate::operation::delete_utterances::DeleteUtterancesError::InternalServerException(inner) => Error::InternalServerException(inner),
1099 crate::operation::delete_utterances::DeleteUtterancesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1100 crate::operation::delete_utterances::DeleteUtterancesError::ValidationException(inner) => Error::ValidationException(inner),
1101 crate::operation::delete_utterances::DeleteUtterancesError::Unhandled(inner) => Error::Unhandled(inner),
1102 }
1103 }
1104}
1105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot::DescribeBotError, R>> for Error
1106where
1107 R: Send + Sync + std::fmt::Debug + 'static,
1108{
1109 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot::DescribeBotError, R>) -> Self {
1110 match err {
1111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1114 source: err.into(),
1115 }),
1116 }
1117 }
1118}
1119impl From<crate::operation::describe_bot::DescribeBotError> for Error {
1120 fn from(err: crate::operation::describe_bot::DescribeBotError) -> Self {
1121 match err {
1122 crate::operation::describe_bot::DescribeBotError::InternalServerException(inner) => Error::InternalServerException(inner),
1123 crate::operation::describe_bot::DescribeBotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1124 crate::operation::describe_bot::DescribeBotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1125 crate::operation::describe_bot::DescribeBotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1126 crate::operation::describe_bot::DescribeBotError::ValidationException(inner) => Error::ValidationException(inner),
1127 crate::operation::describe_bot::DescribeBotError::Unhandled(inner) => Error::Unhandled(inner),
1128 }
1129 }
1130}
1131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_alias::DescribeBotAliasError, R>> for Error
1132where
1133 R: Send + Sync + std::fmt::Debug + 'static,
1134{
1135 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_alias::DescribeBotAliasError, R>) -> Self {
1136 match err {
1137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1140 source: err.into(),
1141 }),
1142 }
1143 }
1144}
1145impl From<crate::operation::describe_bot_alias::DescribeBotAliasError> for Error {
1146 fn from(err: crate::operation::describe_bot_alias::DescribeBotAliasError) -> Self {
1147 match err {
1148 crate::operation::describe_bot_alias::DescribeBotAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
1149 crate::operation::describe_bot_alias::DescribeBotAliasError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1150 crate::operation::describe_bot_alias::DescribeBotAliasError::ServiceQuotaExceededException(inner) => {
1151 Error::ServiceQuotaExceededException(inner)
1152 }
1153 crate::operation::describe_bot_alias::DescribeBotAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1154 crate::operation::describe_bot_alias::DescribeBotAliasError::ValidationException(inner) => Error::ValidationException(inner),
1155 crate::operation::describe_bot_alias::DescribeBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
1156 }
1157 }
1158}
1159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_locale::DescribeBotLocaleError, R>> for Error
1160where
1161 R: Send + Sync + std::fmt::Debug + 'static,
1162{
1163 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_locale::DescribeBotLocaleError, R>) -> Self {
1164 match err {
1165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1168 source: err.into(),
1169 }),
1170 }
1171 }
1172}
1173impl From<crate::operation::describe_bot_locale::DescribeBotLocaleError> for Error {
1174 fn from(err: crate::operation::describe_bot_locale::DescribeBotLocaleError) -> Self {
1175 match err {
1176 crate::operation::describe_bot_locale::DescribeBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
1177 crate::operation::describe_bot_locale::DescribeBotLocaleError::ResourceNotFoundException(inner) => {
1178 Error::ResourceNotFoundException(inner)
1179 }
1180 crate::operation::describe_bot_locale::DescribeBotLocaleError::ServiceQuotaExceededException(inner) => {
1181 Error::ServiceQuotaExceededException(inner)
1182 }
1183 crate::operation::describe_bot_locale::DescribeBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1184 crate::operation::describe_bot_locale::DescribeBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
1185 crate::operation::describe_bot_locale::DescribeBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
1186 }
1187 }
1188}
1189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_recommendation::DescribeBotRecommendationError, R>>
1190 for Error
1191where
1192 R: Send + Sync + std::fmt::Debug + 'static,
1193{
1194 fn from(
1195 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_recommendation::DescribeBotRecommendationError, R>,
1196 ) -> Self {
1197 match err {
1198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1201 source: err.into(),
1202 }),
1203 }
1204 }
1205}
1206impl From<crate::operation::describe_bot_recommendation::DescribeBotRecommendationError> for Error {
1207 fn from(err: crate::operation::describe_bot_recommendation::DescribeBotRecommendationError) -> Self {
1208 match err {
1209 crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::InternalServerException(inner) => {
1210 Error::InternalServerException(inner)
1211 }
1212 crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::ResourceNotFoundException(inner) => {
1213 Error::ResourceNotFoundException(inner)
1214 }
1215 crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::ThrottlingException(inner) => {
1216 Error::ThrottlingException(inner)
1217 }
1218 crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::ValidationException(inner) => {
1219 Error::ValidationException(inner)
1220 }
1221 crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
1222 }
1223 }
1224}
1225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_replica::DescribeBotReplicaError, R>> for Error
1226where
1227 R: Send + Sync + std::fmt::Debug + 'static,
1228{
1229 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_replica::DescribeBotReplicaError, R>) -> Self {
1230 match err {
1231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1234 source: err.into(),
1235 }),
1236 }
1237 }
1238}
1239impl From<crate::operation::describe_bot_replica::DescribeBotReplicaError> for Error {
1240 fn from(err: crate::operation::describe_bot_replica::DescribeBotReplicaError) -> Self {
1241 match err {
1242 crate::operation::describe_bot_replica::DescribeBotReplicaError::InternalServerException(inner) => Error::InternalServerException(inner),
1243 crate::operation::describe_bot_replica::DescribeBotReplicaError::ResourceNotFoundException(inner) => {
1244 Error::ResourceNotFoundException(inner)
1245 }
1246 crate::operation::describe_bot_replica::DescribeBotReplicaError::ServiceQuotaExceededException(inner) => {
1247 Error::ServiceQuotaExceededException(inner)
1248 }
1249 crate::operation::describe_bot_replica::DescribeBotReplicaError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1250 crate::operation::describe_bot_replica::DescribeBotReplicaError::ValidationException(inner) => Error::ValidationException(inner),
1251 crate::operation::describe_bot_replica::DescribeBotReplicaError::Unhandled(inner) => Error::Unhandled(inner),
1252 }
1253 }
1254}
1255impl<R>
1256 From<
1257 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError, R>,
1258 > for Error
1259where
1260 R: Send + Sync + std::fmt::Debug + 'static,
1261{
1262 fn from(
1263 err: ::aws_smithy_runtime_api::client::result::SdkError<
1264 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError,
1265 R,
1266 >,
1267 ) -> Self {
1268 match err {
1269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1272 source: err.into(),
1273 }),
1274 }
1275 }
1276}
1277impl From<crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError> for Error {
1278 fn from(err: crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError) -> Self {
1279 match err {
1280 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError::InternalServerException(inner) => {
1281 Error::InternalServerException(inner)
1282 }
1283 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError::ResourceNotFoundException(inner) => {
1284 Error::ResourceNotFoundException(inner)
1285 }
1286 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError::ThrottlingException(inner) => {
1287 Error::ThrottlingException(inner)
1288 }
1289 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError::ValidationException(inner) => {
1290 Error::ValidationException(inner)
1291 }
1292 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError::Unhandled(inner) => Error::Unhandled(inner),
1293 }
1294 }
1295}
1296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_version::DescribeBotVersionError, R>> for Error
1297where
1298 R: Send + Sync + std::fmt::Debug + 'static,
1299{
1300 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_version::DescribeBotVersionError, R>) -> Self {
1301 match err {
1302 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1303 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1304 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1305 source: err.into(),
1306 }),
1307 }
1308 }
1309}
1310impl From<crate::operation::describe_bot_version::DescribeBotVersionError> for Error {
1311 fn from(err: crate::operation::describe_bot_version::DescribeBotVersionError) -> Self {
1312 match err {
1313 crate::operation::describe_bot_version::DescribeBotVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
1314 crate::operation::describe_bot_version::DescribeBotVersionError::ResourceNotFoundException(inner) => {
1315 Error::ResourceNotFoundException(inner)
1316 }
1317 crate::operation::describe_bot_version::DescribeBotVersionError::ServiceQuotaExceededException(inner) => {
1318 Error::ServiceQuotaExceededException(inner)
1319 }
1320 crate::operation::describe_bot_version::DescribeBotVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1321 crate::operation::describe_bot_version::DescribeBotVersionError::ValidationException(inner) => Error::ValidationException(inner),
1322 crate::operation::describe_bot_version::DescribeBotVersionError::Unhandled(inner) => Error::Unhandled(inner),
1323 }
1324 }
1325}
1326impl<R>
1327 From<
1328 ::aws_smithy_runtime_api::client::result::SdkError<
1329 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError,
1330 R,
1331 >,
1332 > for Error
1333where
1334 R: Send + Sync + std::fmt::Debug + 'static,
1335{
1336 fn from(
1337 err: ::aws_smithy_runtime_api::client::result::SdkError<
1338 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError,
1339 R,
1340 >,
1341 ) -> Self {
1342 match err {
1343 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1344 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1345 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1346 source: err.into(),
1347 }),
1348 }
1349 }
1350}
1351impl From<crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError> for Error {
1352 fn from(err: crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError) -> Self {
1353 match err {
1354 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::InternalServerException(inner) => {
1355 Error::InternalServerException(inner)
1356 }
1357 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ResourceNotFoundException(inner) => {
1358 Error::ResourceNotFoundException(inner)
1359 }
1360 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ServiceQuotaExceededException(inner) => {
1361 Error::ServiceQuotaExceededException(inner)
1362 }
1363 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ThrottlingException(inner) => {
1364 Error::ThrottlingException(inner)
1365 }
1366 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ValidationException(inner) => {
1367 Error::ValidationException(inner)
1368 }
1369 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1370 }
1371 }
1372}
1373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export::DescribeExportError, R>> for Error
1374where
1375 R: Send + Sync + std::fmt::Debug + 'static,
1376{
1377 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export::DescribeExportError, R>) -> Self {
1378 match err {
1379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1382 source: err.into(),
1383 }),
1384 }
1385 }
1386}
1387impl From<crate::operation::describe_export::DescribeExportError> for Error {
1388 fn from(err: crate::operation::describe_export::DescribeExportError) -> Self {
1389 match err {
1390 crate::operation::describe_export::DescribeExportError::InternalServerException(inner) => Error::InternalServerException(inner),
1391 crate::operation::describe_export::DescribeExportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1392 crate::operation::describe_export::DescribeExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1393 crate::operation::describe_export::DescribeExportError::ValidationException(inner) => Error::ValidationException(inner),
1394 crate::operation::describe_export::DescribeExportError::Unhandled(inner) => Error::Unhandled(inner),
1395 }
1396 }
1397}
1398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import::DescribeImportError, R>> for Error
1399where
1400 R: Send + Sync + std::fmt::Debug + 'static,
1401{
1402 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import::DescribeImportError, R>) -> Self {
1403 match err {
1404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1407 source: err.into(),
1408 }),
1409 }
1410 }
1411}
1412impl From<crate::operation::describe_import::DescribeImportError> for Error {
1413 fn from(err: crate::operation::describe_import::DescribeImportError) -> Self {
1414 match err {
1415 crate::operation::describe_import::DescribeImportError::InternalServerException(inner) => Error::InternalServerException(inner),
1416 crate::operation::describe_import::DescribeImportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1417 crate::operation::describe_import::DescribeImportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1418 crate::operation::describe_import::DescribeImportError::ValidationException(inner) => Error::ValidationException(inner),
1419 crate::operation::describe_import::DescribeImportError::Unhandled(inner) => Error::Unhandled(inner),
1420 }
1421 }
1422}
1423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_intent::DescribeIntentError, R>> for Error
1424where
1425 R: Send + Sync + std::fmt::Debug + 'static,
1426{
1427 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_intent::DescribeIntentError, R>) -> Self {
1428 match err {
1429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1432 source: err.into(),
1433 }),
1434 }
1435 }
1436}
1437impl From<crate::operation::describe_intent::DescribeIntentError> for Error {
1438 fn from(err: crate::operation::describe_intent::DescribeIntentError) -> Self {
1439 match err {
1440 crate::operation::describe_intent::DescribeIntentError::InternalServerException(inner) => Error::InternalServerException(inner),
1441 crate::operation::describe_intent::DescribeIntentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1442 crate::operation::describe_intent::DescribeIntentError::ServiceQuotaExceededException(inner) => {
1443 Error::ServiceQuotaExceededException(inner)
1444 }
1445 crate::operation::describe_intent::DescribeIntentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1446 crate::operation::describe_intent::DescribeIntentError::ValidationException(inner) => Error::ValidationException(inner),
1447 crate::operation::describe_intent::DescribeIntentError::Unhandled(inner) => Error::Unhandled(inner),
1448 }
1449 }
1450}
1451impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>> for Error
1452where
1453 R: Send + Sync + std::fmt::Debug + 'static,
1454{
1455 fn from(
1456 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>,
1457 ) -> Self {
1458 match err {
1459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1462 source: err.into(),
1463 }),
1464 }
1465 }
1466}
1467impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
1468 fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
1469 match err {
1470 crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerException(inner) => {
1471 Error::InternalServerException(inner)
1472 }
1473 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => {
1474 Error::ResourceNotFoundException(inner)
1475 }
1476 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1477 crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1478 }
1479 }
1480}
1481impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slot::DescribeSlotError, R>> for Error
1482where
1483 R: Send + Sync + std::fmt::Debug + 'static,
1484{
1485 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slot::DescribeSlotError, R>) -> Self {
1486 match err {
1487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1490 source: err.into(),
1491 }),
1492 }
1493 }
1494}
1495impl From<crate::operation::describe_slot::DescribeSlotError> for Error {
1496 fn from(err: crate::operation::describe_slot::DescribeSlotError) -> Self {
1497 match err {
1498 crate::operation::describe_slot::DescribeSlotError::InternalServerException(inner) => Error::InternalServerException(inner),
1499 crate::operation::describe_slot::DescribeSlotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1500 crate::operation::describe_slot::DescribeSlotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1501 crate::operation::describe_slot::DescribeSlotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1502 crate::operation::describe_slot::DescribeSlotError::ValidationException(inner) => Error::ValidationException(inner),
1503 crate::operation::describe_slot::DescribeSlotError::Unhandled(inner) => Error::Unhandled(inner),
1504 }
1505 }
1506}
1507impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slot_type::DescribeSlotTypeError, R>> for Error
1508where
1509 R: Send + Sync + std::fmt::Debug + 'static,
1510{
1511 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slot_type::DescribeSlotTypeError, R>) -> Self {
1512 match err {
1513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1516 source: err.into(),
1517 }),
1518 }
1519 }
1520}
1521impl From<crate::operation::describe_slot_type::DescribeSlotTypeError> for Error {
1522 fn from(err: crate::operation::describe_slot_type::DescribeSlotTypeError) -> Self {
1523 match err {
1524 crate::operation::describe_slot_type::DescribeSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
1525 crate::operation::describe_slot_type::DescribeSlotTypeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1526 crate::operation::describe_slot_type::DescribeSlotTypeError::ServiceQuotaExceededException(inner) => {
1527 Error::ServiceQuotaExceededException(inner)
1528 }
1529 crate::operation::describe_slot_type::DescribeSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1530 crate::operation::describe_slot_type::DescribeSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
1531 crate::operation::describe_slot_type::DescribeSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
1532 }
1533 }
1534}
1535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_execution::DescribeTestExecutionError, R>> for Error
1536where
1537 R: Send + Sync + std::fmt::Debug + 'static,
1538{
1539 fn from(
1540 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_execution::DescribeTestExecutionError, R>,
1541 ) -> Self {
1542 match err {
1543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1546 source: err.into(),
1547 }),
1548 }
1549 }
1550}
1551impl From<crate::operation::describe_test_execution::DescribeTestExecutionError> for Error {
1552 fn from(err: crate::operation::describe_test_execution::DescribeTestExecutionError) -> Self {
1553 match err {
1554 crate::operation::describe_test_execution::DescribeTestExecutionError::InternalServerException(inner) => {
1555 Error::InternalServerException(inner)
1556 }
1557 crate::operation::describe_test_execution::DescribeTestExecutionError::ResourceNotFoundException(inner) => {
1558 Error::ResourceNotFoundException(inner)
1559 }
1560 crate::operation::describe_test_execution::DescribeTestExecutionError::ServiceQuotaExceededException(inner) => {
1561 Error::ServiceQuotaExceededException(inner)
1562 }
1563 crate::operation::describe_test_execution::DescribeTestExecutionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1564 crate::operation::describe_test_execution::DescribeTestExecutionError::ValidationException(inner) => Error::ValidationException(inner),
1565 crate::operation::describe_test_execution::DescribeTestExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1566 }
1567 }
1568}
1569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_set::DescribeTestSetError, R>> for Error
1570where
1571 R: Send + Sync + std::fmt::Debug + 'static,
1572{
1573 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_set::DescribeTestSetError, R>) -> Self {
1574 match err {
1575 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1576 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1577 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1578 source: err.into(),
1579 }),
1580 }
1581 }
1582}
1583impl From<crate::operation::describe_test_set::DescribeTestSetError> for Error {
1584 fn from(err: crate::operation::describe_test_set::DescribeTestSetError) -> Self {
1585 match err {
1586 crate::operation::describe_test_set::DescribeTestSetError::InternalServerException(inner) => Error::InternalServerException(inner),
1587 crate::operation::describe_test_set::DescribeTestSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1588 crate::operation::describe_test_set::DescribeTestSetError::ServiceQuotaExceededException(inner) => {
1589 Error::ServiceQuotaExceededException(inner)
1590 }
1591 crate::operation::describe_test_set::DescribeTestSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1592 crate::operation::describe_test_set::DescribeTestSetError::ValidationException(inner) => Error::ValidationException(inner),
1593 crate::operation::describe_test_set::DescribeTestSetError::Unhandled(inner) => Error::Unhandled(inner),
1594 }
1595 }
1596}
1597impl<R>
1598 From<
1599 ::aws_smithy_runtime_api::client::result::SdkError<
1600 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError,
1601 R,
1602 >,
1603 > for Error
1604where
1605 R: Send + Sync + std::fmt::Debug + 'static,
1606{
1607 fn from(
1608 err: ::aws_smithy_runtime_api::client::result::SdkError<
1609 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError,
1610 R,
1611 >,
1612 ) -> Self {
1613 match err {
1614 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1615 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1616 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1617 source: err.into(),
1618 }),
1619 }
1620 }
1621}
1622impl From<crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError> for Error {
1623 fn from(err: crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError) -> Self {
1624 match err {
1625 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::InternalServerException(inner) => {
1626 Error::InternalServerException(inner)
1627 }
1628 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::ResourceNotFoundException(inner) => {
1629 Error::ResourceNotFoundException(inner)
1630 }
1631 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::ServiceQuotaExceededException(inner) => {
1632 Error::ServiceQuotaExceededException(inner)
1633 }
1634 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::ThrottlingException(inner) => {
1635 Error::ThrottlingException(inner)
1636 }
1637 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::ValidationException(inner) => {
1638 Error::ValidationException(inner)
1639 }
1640 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::Unhandled(inner) => {
1641 Error::Unhandled(inner)
1642 }
1643 }
1644 }
1645}
1646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_set_generation::DescribeTestSetGenerationError, R>>
1647 for Error
1648where
1649 R: Send + Sync + std::fmt::Debug + 'static,
1650{
1651 fn from(
1652 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_set_generation::DescribeTestSetGenerationError, R>,
1653 ) -> Self {
1654 match err {
1655 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1656 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1657 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1658 source: err.into(),
1659 }),
1660 }
1661 }
1662}
1663impl From<crate::operation::describe_test_set_generation::DescribeTestSetGenerationError> for Error {
1664 fn from(err: crate::operation::describe_test_set_generation::DescribeTestSetGenerationError) -> Self {
1665 match err {
1666 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::InternalServerException(inner) => {
1667 Error::InternalServerException(inner)
1668 }
1669 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::ResourceNotFoundException(inner) => {
1670 Error::ResourceNotFoundException(inner)
1671 }
1672 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::ServiceQuotaExceededException(inner) => {
1673 Error::ServiceQuotaExceededException(inner)
1674 }
1675 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::ThrottlingException(inner) => {
1676 Error::ThrottlingException(inner)
1677 }
1678 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::ValidationException(inner) => {
1679 Error::ValidationException(inner)
1680 }
1681 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::Unhandled(inner) => Error::Unhandled(inner),
1682 }
1683 }
1684}
1685impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_bot_element::GenerateBotElementError, R>> for Error
1686where
1687 R: Send + Sync + std::fmt::Debug + 'static,
1688{
1689 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_bot_element::GenerateBotElementError, R>) -> Self {
1690 match err {
1691 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1692 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1693 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1694 source: err.into(),
1695 }),
1696 }
1697 }
1698}
1699impl From<crate::operation::generate_bot_element::GenerateBotElementError> for Error {
1700 fn from(err: crate::operation::generate_bot_element::GenerateBotElementError) -> Self {
1701 match err {
1702 crate::operation::generate_bot_element::GenerateBotElementError::ConflictException(inner) => Error::ConflictException(inner),
1703 crate::operation::generate_bot_element::GenerateBotElementError::InternalServerException(inner) => Error::InternalServerException(inner),
1704 crate::operation::generate_bot_element::GenerateBotElementError::PreconditionFailedException(inner) => {
1705 Error::PreconditionFailedException(inner)
1706 }
1707 crate::operation::generate_bot_element::GenerateBotElementError::ResourceNotFoundException(inner) => {
1708 Error::ResourceNotFoundException(inner)
1709 }
1710 crate::operation::generate_bot_element::GenerateBotElementError::ServiceQuotaExceededException(inner) => {
1711 Error::ServiceQuotaExceededException(inner)
1712 }
1713 crate::operation::generate_bot_element::GenerateBotElementError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1714 crate::operation::generate_bot_element::GenerateBotElementError::ValidationException(inner) => Error::ValidationException(inner),
1715 crate::operation::generate_bot_element::GenerateBotElementError::Unhandled(inner) => Error::Unhandled(inner),
1716 }
1717 }
1718}
1719impl<R>
1720 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError, R>>
1721 for Error
1722where
1723 R: Send + Sync + std::fmt::Debug + 'static,
1724{
1725 fn from(
1726 err: ::aws_smithy_runtime_api::client::result::SdkError<
1727 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError,
1728 R,
1729 >,
1730 ) -> Self {
1731 match err {
1732 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1733 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1734 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1735 source: err.into(),
1736 }),
1737 }
1738 }
1739}
1740impl From<crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError> for Error {
1741 fn from(err: crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError) -> Self {
1742 match err {
1743 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::InternalServerException(inner) => {
1744 Error::InternalServerException(inner)
1745 }
1746 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::ResourceNotFoundException(inner) => {
1747 Error::ResourceNotFoundException(inner)
1748 }
1749 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::ServiceQuotaExceededException(inner) => {
1750 Error::ServiceQuotaExceededException(inner)
1751 }
1752 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::ThrottlingException(inner) => {
1753 Error::ThrottlingException(inner)
1754 }
1755 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::ValidationException(inner) => {
1756 Error::ValidationException(inner)
1757 }
1758 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::Unhandled(inner) => Error::Unhandled(inner),
1759 }
1760 }
1761}
1762impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError, R>>
1763 for Error
1764where
1765 R: Send + Sync + std::fmt::Debug + 'static,
1766{
1767 fn from(
1768 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError, R>,
1769 ) -> Self {
1770 match err {
1771 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1772 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1773 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1774 source: err.into(),
1775 }),
1776 }
1777 }
1778}
1779impl From<crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError> for Error {
1780 fn from(err: crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError) -> Self {
1781 match err {
1782 crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::InternalServerException(inner) => {
1783 Error::InternalServerException(inner)
1784 }
1785 crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::PreconditionFailedException(inner) => {
1786 Error::PreconditionFailedException(inner)
1787 }
1788 crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::ThrottlingException(inner) => {
1789 Error::ThrottlingException(inner)
1790 }
1791 crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::ValidationException(inner) => {
1792 Error::ValidationException(inner)
1793 }
1794 crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::Unhandled(inner) => Error::Unhandled(inner),
1795 }
1796 }
1797}
1798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_aliases::ListBotAliasesError, R>> for Error
1799where
1800 R: Send + Sync + std::fmt::Debug + 'static,
1801{
1802 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_aliases::ListBotAliasesError, R>) -> Self {
1803 match err {
1804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1807 source: err.into(),
1808 }),
1809 }
1810 }
1811}
1812impl From<crate::operation::list_bot_aliases::ListBotAliasesError> for Error {
1813 fn from(err: crate::operation::list_bot_aliases::ListBotAliasesError) -> Self {
1814 match err {
1815 crate::operation::list_bot_aliases::ListBotAliasesError::InternalServerException(inner) => Error::InternalServerException(inner),
1816 crate::operation::list_bot_aliases::ListBotAliasesError::ServiceQuotaExceededException(inner) => {
1817 Error::ServiceQuotaExceededException(inner)
1818 }
1819 crate::operation::list_bot_aliases::ListBotAliasesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1820 crate::operation::list_bot_aliases::ListBotAliasesError::ValidationException(inner) => Error::ValidationException(inner),
1821 crate::operation::list_bot_aliases::ListBotAliasesError::Unhandled(inner) => Error::Unhandled(inner),
1822 }
1823 }
1824}
1825impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError, R>> for Error
1826where
1827 R: Send + Sync + std::fmt::Debug + 'static,
1828{
1829 fn from(
1830 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError, R>,
1831 ) -> Self {
1832 match err {
1833 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1834 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1835 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1836 source: err.into(),
1837 }),
1838 }
1839 }
1840}
1841impl From<crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError> for Error {
1842 fn from(err: crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError) -> Self {
1843 match err {
1844 crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError::InternalServerException(inner) => {
1845 Error::InternalServerException(inner)
1846 }
1847 crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError::ServiceQuotaExceededException(inner) => {
1848 Error::ServiceQuotaExceededException(inner)
1849 }
1850 crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1851 crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError::ValidationException(inner) => Error::ValidationException(inner),
1852 crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError::Unhandled(inner) => Error::Unhandled(inner),
1853 }
1854 }
1855}
1856impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_locales::ListBotLocalesError, R>> for Error
1857where
1858 R: Send + Sync + std::fmt::Debug + 'static,
1859{
1860 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_locales::ListBotLocalesError, R>) -> Self {
1861 match err {
1862 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1863 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1864 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1865 source: err.into(),
1866 }),
1867 }
1868 }
1869}
1870impl From<crate::operation::list_bot_locales::ListBotLocalesError> for Error {
1871 fn from(err: crate::operation::list_bot_locales::ListBotLocalesError) -> Self {
1872 match err {
1873 crate::operation::list_bot_locales::ListBotLocalesError::InternalServerException(inner) => Error::InternalServerException(inner),
1874 crate::operation::list_bot_locales::ListBotLocalesError::ServiceQuotaExceededException(inner) => {
1875 Error::ServiceQuotaExceededException(inner)
1876 }
1877 crate::operation::list_bot_locales::ListBotLocalesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1878 crate::operation::list_bot_locales::ListBotLocalesError::ValidationException(inner) => Error::ValidationException(inner),
1879 crate::operation::list_bot_locales::ListBotLocalesError::Unhandled(inner) => Error::Unhandled(inner),
1880 }
1881 }
1882}
1883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_recommendations::ListBotRecommendationsError, R>> for Error
1884where
1885 R: Send + Sync + std::fmt::Debug + 'static,
1886{
1887 fn from(
1888 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_recommendations::ListBotRecommendationsError, R>,
1889 ) -> Self {
1890 match err {
1891 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1892 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1893 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1894 source: err.into(),
1895 }),
1896 }
1897 }
1898}
1899impl From<crate::operation::list_bot_recommendations::ListBotRecommendationsError> for Error {
1900 fn from(err: crate::operation::list_bot_recommendations::ListBotRecommendationsError) -> Self {
1901 match err {
1902 crate::operation::list_bot_recommendations::ListBotRecommendationsError::InternalServerException(inner) => {
1903 Error::InternalServerException(inner)
1904 }
1905 crate::operation::list_bot_recommendations::ListBotRecommendationsError::ResourceNotFoundException(inner) => {
1906 Error::ResourceNotFoundException(inner)
1907 }
1908 crate::operation::list_bot_recommendations::ListBotRecommendationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1909 crate::operation::list_bot_recommendations::ListBotRecommendationsError::ValidationException(inner) => Error::ValidationException(inner),
1910 crate::operation::list_bot_recommendations::ListBotRecommendationsError::Unhandled(inner) => Error::Unhandled(inner),
1911 }
1912 }
1913}
1914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_replicas::ListBotReplicasError, R>> for Error
1915where
1916 R: Send + Sync + std::fmt::Debug + 'static,
1917{
1918 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_replicas::ListBotReplicasError, R>) -> Self {
1919 match err {
1920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1923 source: err.into(),
1924 }),
1925 }
1926 }
1927}
1928impl From<crate::operation::list_bot_replicas::ListBotReplicasError> for Error {
1929 fn from(err: crate::operation::list_bot_replicas::ListBotReplicasError) -> Self {
1930 match err {
1931 crate::operation::list_bot_replicas::ListBotReplicasError::InternalServerException(inner) => Error::InternalServerException(inner),
1932 crate::operation::list_bot_replicas::ListBotReplicasError::ServiceQuotaExceededException(inner) => {
1933 Error::ServiceQuotaExceededException(inner)
1934 }
1935 crate::operation::list_bot_replicas::ListBotReplicasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1936 crate::operation::list_bot_replicas::ListBotReplicasError::ValidationException(inner) => Error::ValidationException(inner),
1937 crate::operation::list_bot_replicas::ListBotReplicasError::Unhandled(inner) => Error::Unhandled(inner),
1938 }
1939 }
1940}
1941impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError, R>>
1942 for Error
1943where
1944 R: Send + Sync + std::fmt::Debug + 'static,
1945{
1946 fn from(
1947 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError, R>,
1948 ) -> Self {
1949 match err {
1950 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1951 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1952 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1953 source: err.into(),
1954 }),
1955 }
1956 }
1957}
1958impl From<crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError> for Error {
1959 fn from(err: crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError) -> Self {
1960 match err {
1961 crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError::InternalServerException(inner) => {
1962 Error::InternalServerException(inner)
1963 }
1964 crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError::ResourceNotFoundException(inner) => {
1965 Error::ResourceNotFoundException(inner)
1966 }
1967 crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError::ThrottlingException(inner) => {
1968 Error::ThrottlingException(inner)
1969 }
1970 crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError::ValidationException(inner) => {
1971 Error::ValidationException(inner)
1972 }
1973 crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError::Unhandled(inner) => Error::Unhandled(inner),
1974 }
1975 }
1976}
1977impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>> for Error
1978where
1979 R: Send + Sync + std::fmt::Debug + 'static,
1980{
1981 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>) -> Self {
1982 match err {
1983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1986 source: err.into(),
1987 }),
1988 }
1989 }
1990}
1991impl From<crate::operation::list_bots::ListBotsError> for Error {
1992 fn from(err: crate::operation::list_bots::ListBotsError) -> Self {
1993 match err {
1994 crate::operation::list_bots::ListBotsError::InternalServerException(inner) => Error::InternalServerException(inner),
1995 crate::operation::list_bots::ListBotsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1996 crate::operation::list_bots::ListBotsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1997 crate::operation::list_bots::ListBotsError::ValidationException(inner) => Error::ValidationException(inner),
1998 crate::operation::list_bots::ListBotsError::Unhandled(inner) => Error::Unhandled(inner),
1999 }
2000 }
2001}
2002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_version_replicas::ListBotVersionReplicasError, R>>
2003 for Error
2004where
2005 R: Send + Sync + std::fmt::Debug + 'static,
2006{
2007 fn from(
2008 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_version_replicas::ListBotVersionReplicasError, R>,
2009 ) -> Self {
2010 match err {
2011 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2012 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2013 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2014 source: err.into(),
2015 }),
2016 }
2017 }
2018}
2019impl From<crate::operation::list_bot_version_replicas::ListBotVersionReplicasError> for Error {
2020 fn from(err: crate::operation::list_bot_version_replicas::ListBotVersionReplicasError) -> Self {
2021 match err {
2022 crate::operation::list_bot_version_replicas::ListBotVersionReplicasError::InternalServerException(inner) => {
2023 Error::InternalServerException(inner)
2024 }
2025 crate::operation::list_bot_version_replicas::ListBotVersionReplicasError::ServiceQuotaExceededException(inner) => {
2026 Error::ServiceQuotaExceededException(inner)
2027 }
2028 crate::operation::list_bot_version_replicas::ListBotVersionReplicasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2029 crate::operation::list_bot_version_replicas::ListBotVersionReplicasError::ValidationException(inner) => Error::ValidationException(inner),
2030 crate::operation::list_bot_version_replicas::ListBotVersionReplicasError::Unhandled(inner) => Error::Unhandled(inner),
2031 }
2032 }
2033}
2034impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_versions::ListBotVersionsError, R>> for Error
2035where
2036 R: Send + Sync + std::fmt::Debug + 'static,
2037{
2038 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_versions::ListBotVersionsError, R>) -> Self {
2039 match err {
2040 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2041 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2042 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2043 source: err.into(),
2044 }),
2045 }
2046 }
2047}
2048impl From<crate::operation::list_bot_versions::ListBotVersionsError> for Error {
2049 fn from(err: crate::operation::list_bot_versions::ListBotVersionsError) -> Self {
2050 match err {
2051 crate::operation::list_bot_versions::ListBotVersionsError::InternalServerException(inner) => Error::InternalServerException(inner),
2052 crate::operation::list_bot_versions::ListBotVersionsError::ServiceQuotaExceededException(inner) => {
2053 Error::ServiceQuotaExceededException(inner)
2054 }
2055 crate::operation::list_bot_versions::ListBotVersionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2056 crate::operation::list_bot_versions::ListBotVersionsError::ValidationException(inner) => Error::ValidationException(inner),
2057 crate::operation::list_bot_versions::ListBotVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2058 }
2059 }
2060}
2061impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_built_in_intents::ListBuiltInIntentsError, R>> for Error
2062where
2063 R: Send + Sync + std::fmt::Debug + 'static,
2064{
2065 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_built_in_intents::ListBuiltInIntentsError, R>) -> Self {
2066 match err {
2067 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2068 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2069 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2070 source: err.into(),
2071 }),
2072 }
2073 }
2074}
2075impl From<crate::operation::list_built_in_intents::ListBuiltInIntentsError> for Error {
2076 fn from(err: crate::operation::list_built_in_intents::ListBuiltInIntentsError) -> Self {
2077 match err {
2078 crate::operation::list_built_in_intents::ListBuiltInIntentsError::InternalServerException(inner) => Error::InternalServerException(inner),
2079 crate::operation::list_built_in_intents::ListBuiltInIntentsError::ServiceQuotaExceededException(inner) => {
2080 Error::ServiceQuotaExceededException(inner)
2081 }
2082 crate::operation::list_built_in_intents::ListBuiltInIntentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2083 crate::operation::list_built_in_intents::ListBuiltInIntentsError::ValidationException(inner) => Error::ValidationException(inner),
2084 crate::operation::list_built_in_intents::ListBuiltInIntentsError::Unhandled(inner) => Error::Unhandled(inner),
2085 }
2086 }
2087}
2088impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError, R>> for Error
2089where
2090 R: Send + Sync + std::fmt::Debug + 'static,
2091{
2092 fn from(
2093 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError, R>,
2094 ) -> Self {
2095 match err {
2096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2099 source: err.into(),
2100 }),
2101 }
2102 }
2103}
2104impl From<crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError> for Error {
2105 fn from(err: crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError) -> Self {
2106 match err {
2107 crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::InternalServerException(inner) => {
2108 Error::InternalServerException(inner)
2109 }
2110 crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::ServiceQuotaExceededException(inner) => {
2111 Error::ServiceQuotaExceededException(inner)
2112 }
2113 crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2114 crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::ValidationException(inner) => Error::ValidationException(inner),
2115 crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::Unhandled(inner) => Error::Unhandled(inner),
2116 }
2117 }
2118}
2119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError, R>>
2120 for Error
2121where
2122 R: Send + Sync + std::fmt::Debug + 'static,
2123{
2124 fn from(
2125 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError, R>,
2126 ) -> Self {
2127 match err {
2128 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2129 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2130 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2131 source: err.into(),
2132 }),
2133 }
2134 }
2135}
2136impl From<crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError> for Error {
2137 fn from(err: crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError) -> Self {
2138 match err {
2139 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::InternalServerException(inner) => {
2140 Error::InternalServerException(inner)
2141 }
2142 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ResourceNotFoundException(inner) => {
2143 Error::ResourceNotFoundException(inner)
2144 }
2145 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ServiceQuotaExceededException(inner) => {
2146 Error::ServiceQuotaExceededException(inner)
2147 }
2148 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ThrottlingException(inner) => {
2149 Error::ThrottlingException(inner)
2150 }
2151 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ValidationException(inner) => {
2152 Error::ValidationException(inner)
2153 }
2154 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::Unhandled(inner) => Error::Unhandled(inner),
2155 }
2156 }
2157}
2158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_exports::ListExportsError, R>> for Error
2159where
2160 R: Send + Sync + std::fmt::Debug + 'static,
2161{
2162 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_exports::ListExportsError, R>) -> Self {
2163 match err {
2164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2167 source: err.into(),
2168 }),
2169 }
2170 }
2171}
2172impl From<crate::operation::list_exports::ListExportsError> for Error {
2173 fn from(err: crate::operation::list_exports::ListExportsError) -> Self {
2174 match err {
2175 crate::operation::list_exports::ListExportsError::InternalServerException(inner) => Error::InternalServerException(inner),
2176 crate::operation::list_exports::ListExportsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2177 crate::operation::list_exports::ListExportsError::ValidationException(inner) => Error::ValidationException(inner),
2178 crate::operation::list_exports::ListExportsError::Unhandled(inner) => Error::Unhandled(inner),
2179 }
2180 }
2181}
2182impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_imports::ListImportsError, R>> for Error
2183where
2184 R: Send + Sync + std::fmt::Debug + 'static,
2185{
2186 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_imports::ListImportsError, R>) -> Self {
2187 match err {
2188 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2189 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2190 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2191 source: err.into(),
2192 }),
2193 }
2194 }
2195}
2196impl From<crate::operation::list_imports::ListImportsError> for Error {
2197 fn from(err: crate::operation::list_imports::ListImportsError) -> Self {
2198 match err {
2199 crate::operation::list_imports::ListImportsError::InternalServerException(inner) => Error::InternalServerException(inner),
2200 crate::operation::list_imports::ListImportsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2201 crate::operation::list_imports::ListImportsError::ValidationException(inner) => Error::ValidationException(inner),
2202 crate::operation::list_imports::ListImportsError::Unhandled(inner) => Error::Unhandled(inner),
2203 }
2204 }
2205}
2206impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_metrics::ListIntentMetricsError, R>> for Error
2207where
2208 R: Send + Sync + std::fmt::Debug + 'static,
2209{
2210 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_metrics::ListIntentMetricsError, R>) -> Self {
2211 match err {
2212 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2213 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2214 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2215 source: err.into(),
2216 }),
2217 }
2218 }
2219}
2220impl From<crate::operation::list_intent_metrics::ListIntentMetricsError> for Error {
2221 fn from(err: crate::operation::list_intent_metrics::ListIntentMetricsError) -> Self {
2222 match err {
2223 crate::operation::list_intent_metrics::ListIntentMetricsError::InternalServerException(inner) => Error::InternalServerException(inner),
2224 crate::operation::list_intent_metrics::ListIntentMetricsError::PreconditionFailedException(inner) => {
2225 Error::PreconditionFailedException(inner)
2226 }
2227 crate::operation::list_intent_metrics::ListIntentMetricsError::ServiceQuotaExceededException(inner) => {
2228 Error::ServiceQuotaExceededException(inner)
2229 }
2230 crate::operation::list_intent_metrics::ListIntentMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2231 crate::operation::list_intent_metrics::ListIntentMetricsError::ValidationException(inner) => Error::ValidationException(inner),
2232 crate::operation::list_intent_metrics::ListIntentMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2233 }
2234 }
2235}
2236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_paths::ListIntentPathsError, R>> for Error
2237where
2238 R: Send + Sync + std::fmt::Debug + 'static,
2239{
2240 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_paths::ListIntentPathsError, R>) -> Self {
2241 match err {
2242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2245 source: err.into(),
2246 }),
2247 }
2248 }
2249}
2250impl From<crate::operation::list_intent_paths::ListIntentPathsError> for Error {
2251 fn from(err: crate::operation::list_intent_paths::ListIntentPathsError) -> Self {
2252 match err {
2253 crate::operation::list_intent_paths::ListIntentPathsError::InternalServerException(inner) => Error::InternalServerException(inner),
2254 crate::operation::list_intent_paths::ListIntentPathsError::PreconditionFailedException(inner) => {
2255 Error::PreconditionFailedException(inner)
2256 }
2257 crate::operation::list_intent_paths::ListIntentPathsError::ServiceQuotaExceededException(inner) => {
2258 Error::ServiceQuotaExceededException(inner)
2259 }
2260 crate::operation::list_intent_paths::ListIntentPathsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2261 crate::operation::list_intent_paths::ListIntentPathsError::ValidationException(inner) => Error::ValidationException(inner),
2262 crate::operation::list_intent_paths::ListIntentPathsError::Unhandled(inner) => Error::Unhandled(inner),
2263 }
2264 }
2265}
2266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intents::ListIntentsError, R>> for Error
2267where
2268 R: Send + Sync + std::fmt::Debug + 'static,
2269{
2270 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intents::ListIntentsError, R>) -> Self {
2271 match err {
2272 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2273 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2274 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2275 source: err.into(),
2276 }),
2277 }
2278 }
2279}
2280impl From<crate::operation::list_intents::ListIntentsError> for Error {
2281 fn from(err: crate::operation::list_intents::ListIntentsError) -> Self {
2282 match err {
2283 crate::operation::list_intents::ListIntentsError::InternalServerException(inner) => Error::InternalServerException(inner),
2284 crate::operation::list_intents::ListIntentsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2285 crate::operation::list_intents::ListIntentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2286 crate::operation::list_intents::ListIntentsError::ValidationException(inner) => Error::ValidationException(inner),
2287 crate::operation::list_intents::ListIntentsError::Unhandled(inner) => Error::Unhandled(inner),
2288 }
2289 }
2290}
2291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError, R>>
2292 for Error
2293where
2294 R: Send + Sync + std::fmt::Debug + 'static,
2295{
2296 fn from(
2297 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError, R>,
2298 ) -> Self {
2299 match err {
2300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2303 source: err.into(),
2304 }),
2305 }
2306 }
2307}
2308impl From<crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError> for Error {
2309 fn from(err: crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError) -> Self {
2310 match err {
2311 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::InternalServerException(inner) => {
2312 Error::InternalServerException(inner)
2313 }
2314 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::PreconditionFailedException(inner) => {
2315 Error::PreconditionFailedException(inner)
2316 }
2317 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::ServiceQuotaExceededException(inner) => {
2318 Error::ServiceQuotaExceededException(inner)
2319 }
2320 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2321 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::ValidationException(inner) => Error::ValidationException(inner),
2322 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2323 }
2324 }
2325}
2326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommended_intents::ListRecommendedIntentsError, R>> for Error
2327where
2328 R: Send + Sync + std::fmt::Debug + 'static,
2329{
2330 fn from(
2331 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommended_intents::ListRecommendedIntentsError, R>,
2332 ) -> Self {
2333 match err {
2334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2337 source: err.into(),
2338 }),
2339 }
2340 }
2341}
2342impl From<crate::operation::list_recommended_intents::ListRecommendedIntentsError> for Error {
2343 fn from(err: crate::operation::list_recommended_intents::ListRecommendedIntentsError) -> Self {
2344 match err {
2345 crate::operation::list_recommended_intents::ListRecommendedIntentsError::InternalServerException(inner) => {
2346 Error::InternalServerException(inner)
2347 }
2348 crate::operation::list_recommended_intents::ListRecommendedIntentsError::ResourceNotFoundException(inner) => {
2349 Error::ResourceNotFoundException(inner)
2350 }
2351 crate::operation::list_recommended_intents::ListRecommendedIntentsError::ServiceQuotaExceededException(inner) => {
2352 Error::ServiceQuotaExceededException(inner)
2353 }
2354 crate::operation::list_recommended_intents::ListRecommendedIntentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2355 crate::operation::list_recommended_intents::ListRecommendedIntentsError::ValidationException(inner) => Error::ValidationException(inner),
2356 crate::operation::list_recommended_intents::ListRecommendedIntentsError::Unhandled(inner) => Error::Unhandled(inner),
2357 }
2358 }
2359}
2360impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError, R>>
2361 for Error
2362where
2363 R: Send + Sync + std::fmt::Debug + 'static,
2364{
2365 fn from(
2366 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError, R>,
2367 ) -> Self {
2368 match err {
2369 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2370 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2371 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2372 source: err.into(),
2373 }),
2374 }
2375 }
2376}
2377impl From<crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError> for Error {
2378 fn from(err: crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError) -> Self {
2379 match err {
2380 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::InternalServerException(inner) => {
2381 Error::InternalServerException(inner)
2382 }
2383 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::PreconditionFailedException(inner) => {
2384 Error::PreconditionFailedException(inner)
2385 }
2386 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::ServiceQuotaExceededException(inner) => {
2387 Error::ServiceQuotaExceededException(inner)
2388 }
2389 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::ThrottlingException(inner) => {
2390 Error::ThrottlingException(inner)
2391 }
2392 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::ValidationException(inner) => {
2393 Error::ValidationException(inner)
2394 }
2395 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::Unhandled(inner) => Error::Unhandled(inner),
2396 }
2397 }
2398}
2399impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_metrics::ListSessionMetricsError, R>> for Error
2400where
2401 R: Send + Sync + std::fmt::Debug + 'static,
2402{
2403 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_metrics::ListSessionMetricsError, R>) -> Self {
2404 match err {
2405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2408 source: err.into(),
2409 }),
2410 }
2411 }
2412}
2413impl From<crate::operation::list_session_metrics::ListSessionMetricsError> for Error {
2414 fn from(err: crate::operation::list_session_metrics::ListSessionMetricsError) -> Self {
2415 match err {
2416 crate::operation::list_session_metrics::ListSessionMetricsError::InternalServerException(inner) => Error::InternalServerException(inner),
2417 crate::operation::list_session_metrics::ListSessionMetricsError::PreconditionFailedException(inner) => {
2418 Error::PreconditionFailedException(inner)
2419 }
2420 crate::operation::list_session_metrics::ListSessionMetricsError::ServiceQuotaExceededException(inner) => {
2421 Error::ServiceQuotaExceededException(inner)
2422 }
2423 crate::operation::list_session_metrics::ListSessionMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2424 crate::operation::list_session_metrics::ListSessionMetricsError::ValidationException(inner) => Error::ValidationException(inner),
2425 crate::operation::list_session_metrics::ListSessionMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2426 }
2427 }
2428}
2429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_slots::ListSlotsError, R>> for Error
2430where
2431 R: Send + Sync + std::fmt::Debug + 'static,
2432{
2433 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_slots::ListSlotsError, R>) -> Self {
2434 match err {
2435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2438 source: err.into(),
2439 }),
2440 }
2441 }
2442}
2443impl From<crate::operation::list_slots::ListSlotsError> for Error {
2444 fn from(err: crate::operation::list_slots::ListSlotsError) -> Self {
2445 match err {
2446 crate::operation::list_slots::ListSlotsError::InternalServerException(inner) => Error::InternalServerException(inner),
2447 crate::operation::list_slots::ListSlotsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2448 crate::operation::list_slots::ListSlotsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2449 crate::operation::list_slots::ListSlotsError::ValidationException(inner) => Error::ValidationException(inner),
2450 crate::operation::list_slots::ListSlotsError::Unhandled(inner) => Error::Unhandled(inner),
2451 }
2452 }
2453}
2454impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_slot_types::ListSlotTypesError, R>> for Error
2455where
2456 R: Send + Sync + std::fmt::Debug + 'static,
2457{
2458 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_slot_types::ListSlotTypesError, R>) -> Self {
2459 match err {
2460 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2461 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2462 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2463 source: err.into(),
2464 }),
2465 }
2466 }
2467}
2468impl From<crate::operation::list_slot_types::ListSlotTypesError> for Error {
2469 fn from(err: crate::operation::list_slot_types::ListSlotTypesError) -> Self {
2470 match err {
2471 crate::operation::list_slot_types::ListSlotTypesError::InternalServerException(inner) => Error::InternalServerException(inner),
2472 crate::operation::list_slot_types::ListSlotTypesError::ServiceQuotaExceededException(inner) => {
2473 Error::ServiceQuotaExceededException(inner)
2474 }
2475 crate::operation::list_slot_types::ListSlotTypesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2476 crate::operation::list_slot_types::ListSlotTypesError::ValidationException(inner) => Error::ValidationException(inner),
2477 crate::operation::list_slot_types::ListSlotTypesError::Unhandled(inner) => Error::Unhandled(inner),
2478 }
2479 }
2480}
2481impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2482where
2483 R: Send + Sync + std::fmt::Debug + 'static,
2484{
2485 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2486 match err {
2487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2490 source: err.into(),
2491 }),
2492 }
2493 }
2494}
2495impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2496 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2497 match err {
2498 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
2499 Error::InternalServerException(inner)
2500 }
2501 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2502 Error::ResourceNotFoundException(inner)
2503 }
2504 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2505 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2506 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2507 }
2508 }
2509}
2510impl<R>
2511 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError, R>>
2512 for Error
2513where
2514 R: Send + Sync + std::fmt::Debug + 'static,
2515{
2516 fn from(
2517 err: ::aws_smithy_runtime_api::client::result::SdkError<
2518 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError,
2519 R,
2520 >,
2521 ) -> Self {
2522 match err {
2523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2526 source: err.into(),
2527 }),
2528 }
2529 }
2530}
2531impl From<crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError> for Error {
2532 fn from(err: crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError) -> Self {
2533 match err {
2534 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::InternalServerException(inner) => {
2535 Error::InternalServerException(inner)
2536 }
2537 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::ResourceNotFoundException(inner) => {
2538 Error::ResourceNotFoundException(inner)
2539 }
2540 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::ServiceQuotaExceededException(inner) => {
2541 Error::ServiceQuotaExceededException(inner)
2542 }
2543 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::ThrottlingException(inner) => {
2544 Error::ThrottlingException(inner)
2545 }
2546 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::ValidationException(inner) => {
2547 Error::ValidationException(inner)
2548 }
2549 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::Unhandled(inner) => Error::Unhandled(inner),
2550 }
2551 }
2552}
2553impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_executions::ListTestExecutionsError, R>> for Error
2554where
2555 R: Send + Sync + std::fmt::Debug + 'static,
2556{
2557 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_executions::ListTestExecutionsError, R>) -> Self {
2558 match err {
2559 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2560 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2561 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2562 source: err.into(),
2563 }),
2564 }
2565 }
2566}
2567impl From<crate::operation::list_test_executions::ListTestExecutionsError> for Error {
2568 fn from(err: crate::operation::list_test_executions::ListTestExecutionsError) -> Self {
2569 match err {
2570 crate::operation::list_test_executions::ListTestExecutionsError::InternalServerException(inner) => Error::InternalServerException(inner),
2571 crate::operation::list_test_executions::ListTestExecutionsError::ServiceQuotaExceededException(inner) => {
2572 Error::ServiceQuotaExceededException(inner)
2573 }
2574 crate::operation::list_test_executions::ListTestExecutionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2575 crate::operation::list_test_executions::ListTestExecutionsError::ValidationException(inner) => Error::ValidationException(inner),
2576 crate::operation::list_test_executions::ListTestExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
2577 }
2578 }
2579}
2580impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_set_records::ListTestSetRecordsError, R>> for Error
2581where
2582 R: Send + Sync + std::fmt::Debug + 'static,
2583{
2584 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_set_records::ListTestSetRecordsError, R>) -> Self {
2585 match err {
2586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2589 source: err.into(),
2590 }),
2591 }
2592 }
2593}
2594impl From<crate::operation::list_test_set_records::ListTestSetRecordsError> for Error {
2595 fn from(err: crate::operation::list_test_set_records::ListTestSetRecordsError) -> Self {
2596 match err {
2597 crate::operation::list_test_set_records::ListTestSetRecordsError::InternalServerException(inner) => Error::InternalServerException(inner),
2598 crate::operation::list_test_set_records::ListTestSetRecordsError::ResourceNotFoundException(inner) => {
2599 Error::ResourceNotFoundException(inner)
2600 }
2601 crate::operation::list_test_set_records::ListTestSetRecordsError::ServiceQuotaExceededException(inner) => {
2602 Error::ServiceQuotaExceededException(inner)
2603 }
2604 crate::operation::list_test_set_records::ListTestSetRecordsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2605 crate::operation::list_test_set_records::ListTestSetRecordsError::ValidationException(inner) => Error::ValidationException(inner),
2606 crate::operation::list_test_set_records::ListTestSetRecordsError::Unhandled(inner) => Error::Unhandled(inner),
2607 }
2608 }
2609}
2610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_sets::ListTestSetsError, R>> for Error
2611where
2612 R: Send + Sync + std::fmt::Debug + 'static,
2613{
2614 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_sets::ListTestSetsError, R>) -> Self {
2615 match err {
2616 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2617 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2618 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2619 source: err.into(),
2620 }),
2621 }
2622 }
2623}
2624impl From<crate::operation::list_test_sets::ListTestSetsError> for Error {
2625 fn from(err: crate::operation::list_test_sets::ListTestSetsError) -> Self {
2626 match err {
2627 crate::operation::list_test_sets::ListTestSetsError::InternalServerException(inner) => Error::InternalServerException(inner),
2628 crate::operation::list_test_sets::ListTestSetsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2629 crate::operation::list_test_sets::ListTestSetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2630 crate::operation::list_test_sets::ListTestSetsError::ValidationException(inner) => Error::ValidationException(inner),
2631 crate::operation::list_test_sets::ListTestSetsError::Unhandled(inner) => Error::Unhandled(inner),
2632 }
2633 }
2634}
2635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError, R>>
2636 for Error
2637where
2638 R: Send + Sync + std::fmt::Debug + 'static,
2639{
2640 fn from(
2641 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError, R>,
2642 ) -> Self {
2643 match err {
2644 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2645 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2646 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2647 source: err.into(),
2648 }),
2649 }
2650 }
2651}
2652impl From<crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError> for Error {
2653 fn from(err: crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError) -> Self {
2654 match err {
2655 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::InternalServerException(inner) => {
2656 Error::InternalServerException(inner)
2657 }
2658 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::PreconditionFailedException(inner) => {
2659 Error::PreconditionFailedException(inner)
2660 }
2661 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::ServiceQuotaExceededException(inner) => {
2662 Error::ServiceQuotaExceededException(inner)
2663 }
2664 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::ThrottlingException(inner) => {
2665 Error::ThrottlingException(inner)
2666 }
2667 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::ValidationException(inner) => {
2668 Error::ValidationException(inner)
2669 }
2670 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::Unhandled(inner) => Error::Unhandled(inner),
2671 }
2672 }
2673}
2674impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_utterance_metrics::ListUtteranceMetricsError, R>> for Error
2675where
2676 R: Send + Sync + std::fmt::Debug + 'static,
2677{
2678 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_utterance_metrics::ListUtteranceMetricsError, R>) -> Self {
2679 match err {
2680 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2681 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2682 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2683 source: err.into(),
2684 }),
2685 }
2686 }
2687}
2688impl From<crate::operation::list_utterance_metrics::ListUtteranceMetricsError> for Error {
2689 fn from(err: crate::operation::list_utterance_metrics::ListUtteranceMetricsError) -> Self {
2690 match err {
2691 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::InternalServerException(inner) => {
2692 Error::InternalServerException(inner)
2693 }
2694 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::PreconditionFailedException(inner) => {
2695 Error::PreconditionFailedException(inner)
2696 }
2697 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::ServiceQuotaExceededException(inner) => {
2698 Error::ServiceQuotaExceededException(inner)
2699 }
2700 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2701 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::ValidationException(inner) => Error::ValidationException(inner),
2702 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2703 }
2704 }
2705}
2706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError, R>>
2707 for Error
2708where
2709 R: Send + Sync + std::fmt::Debug + 'static,
2710{
2711 fn from(
2712 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError, R>,
2713 ) -> Self {
2714 match err {
2715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2718 source: err.into(),
2719 }),
2720 }
2721 }
2722}
2723impl From<crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError> for Error {
2724 fn from(err: crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError) -> Self {
2725 match err {
2726 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::InternalServerException(inner) => {
2727 Error::InternalServerException(inner)
2728 }
2729 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ResourceNotFoundException(inner) => {
2730 Error::ResourceNotFoundException(inner)
2731 }
2732 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ServiceQuotaExceededException(inner) => {
2733 Error::ServiceQuotaExceededException(inner)
2734 }
2735 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ThrottlingException(inner) => {
2736 Error::ThrottlingException(inner)
2737 }
2738 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ValidationException(inner) => {
2739 Error::ValidationException(inner)
2740 }
2741 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::Unhandled(inner) => Error::Unhandled(inner),
2742 }
2743 }
2744}
2745impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bot_recommendation::StartBotRecommendationError, R>> for Error
2746where
2747 R: Send + Sync + std::fmt::Debug + 'static,
2748{
2749 fn from(
2750 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bot_recommendation::StartBotRecommendationError, R>,
2751 ) -> Self {
2752 match err {
2753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2756 source: err.into(),
2757 }),
2758 }
2759 }
2760}
2761impl From<crate::operation::start_bot_recommendation::StartBotRecommendationError> for Error {
2762 fn from(err: crate::operation::start_bot_recommendation::StartBotRecommendationError) -> Self {
2763 match err {
2764 crate::operation::start_bot_recommendation::StartBotRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
2765 crate::operation::start_bot_recommendation::StartBotRecommendationError::InternalServerException(inner) => {
2766 Error::InternalServerException(inner)
2767 }
2768 crate::operation::start_bot_recommendation::StartBotRecommendationError::PreconditionFailedException(inner) => {
2769 Error::PreconditionFailedException(inner)
2770 }
2771 crate::operation::start_bot_recommendation::StartBotRecommendationError::ResourceNotFoundException(inner) => {
2772 Error::ResourceNotFoundException(inner)
2773 }
2774 crate::operation::start_bot_recommendation::StartBotRecommendationError::ServiceQuotaExceededException(inner) => {
2775 Error::ServiceQuotaExceededException(inner)
2776 }
2777 crate::operation::start_bot_recommendation::StartBotRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2778 crate::operation::start_bot_recommendation::StartBotRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
2779 crate::operation::start_bot_recommendation::StartBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
2780 }
2781 }
2782}
2783impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bot_resource_generation::StartBotResourceGenerationError, R>>
2784 for Error
2785where
2786 R: Send + Sync + std::fmt::Debug + 'static,
2787{
2788 fn from(
2789 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bot_resource_generation::StartBotResourceGenerationError, R>,
2790 ) -> Self {
2791 match err {
2792 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2793 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2794 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2795 source: err.into(),
2796 }),
2797 }
2798 }
2799}
2800impl From<crate::operation::start_bot_resource_generation::StartBotResourceGenerationError> for Error {
2801 fn from(err: crate::operation::start_bot_resource_generation::StartBotResourceGenerationError) -> Self {
2802 match err {
2803 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::ConflictException(inner) => {
2804 Error::ConflictException(inner)
2805 }
2806 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::InternalServerException(inner) => {
2807 Error::InternalServerException(inner)
2808 }
2809 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::PreconditionFailedException(inner) => {
2810 Error::PreconditionFailedException(inner)
2811 }
2812 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::ServiceQuotaExceededException(inner) => {
2813 Error::ServiceQuotaExceededException(inner)
2814 }
2815 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::ThrottlingException(inner) => {
2816 Error::ThrottlingException(inner)
2817 }
2818 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::ValidationException(inner) => {
2819 Error::ValidationException(inner)
2820 }
2821 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::Unhandled(inner) => Error::Unhandled(inner),
2822 }
2823 }
2824}
2825impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_import::StartImportError, R>> for Error
2826where
2827 R: Send + Sync + std::fmt::Debug + 'static,
2828{
2829 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_import::StartImportError, R>) -> Self {
2830 match err {
2831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2834 source: err.into(),
2835 }),
2836 }
2837 }
2838}
2839impl From<crate::operation::start_import::StartImportError> for Error {
2840 fn from(err: crate::operation::start_import::StartImportError) -> Self {
2841 match err {
2842 crate::operation::start_import::StartImportError::ConflictException(inner) => Error::ConflictException(inner),
2843 crate::operation::start_import::StartImportError::InternalServerException(inner) => Error::InternalServerException(inner),
2844 crate::operation::start_import::StartImportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2845 crate::operation::start_import::StartImportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2846 crate::operation::start_import::StartImportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2847 crate::operation::start_import::StartImportError::ValidationException(inner) => Error::ValidationException(inner),
2848 crate::operation::start_import::StartImportError::Unhandled(inner) => Error::Unhandled(inner),
2849 }
2850 }
2851}
2852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test_execution::StartTestExecutionError, R>> for Error
2853where
2854 R: Send + Sync + std::fmt::Debug + 'static,
2855{
2856 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test_execution::StartTestExecutionError, R>) -> Self {
2857 match err {
2858 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2859 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2860 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2861 source: err.into(),
2862 }),
2863 }
2864 }
2865}
2866impl From<crate::operation::start_test_execution::StartTestExecutionError> for Error {
2867 fn from(err: crate::operation::start_test_execution::StartTestExecutionError) -> Self {
2868 match err {
2869 crate::operation::start_test_execution::StartTestExecutionError::ConflictException(inner) => Error::ConflictException(inner),
2870 crate::operation::start_test_execution::StartTestExecutionError::InternalServerException(inner) => Error::InternalServerException(inner),
2871 crate::operation::start_test_execution::StartTestExecutionError::ResourceNotFoundException(inner) => {
2872 Error::ResourceNotFoundException(inner)
2873 }
2874 crate::operation::start_test_execution::StartTestExecutionError::ServiceQuotaExceededException(inner) => {
2875 Error::ServiceQuotaExceededException(inner)
2876 }
2877 crate::operation::start_test_execution::StartTestExecutionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2878 crate::operation::start_test_execution::StartTestExecutionError::ValidationException(inner) => Error::ValidationException(inner),
2879 crate::operation::start_test_execution::StartTestExecutionError::Unhandled(inner) => Error::Unhandled(inner),
2880 }
2881 }
2882}
2883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test_set_generation::StartTestSetGenerationError, R>>
2884 for Error
2885where
2886 R: Send + Sync + std::fmt::Debug + 'static,
2887{
2888 fn from(
2889 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test_set_generation::StartTestSetGenerationError, R>,
2890 ) -> Self {
2891 match err {
2892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2895 source: err.into(),
2896 }),
2897 }
2898 }
2899}
2900impl From<crate::operation::start_test_set_generation::StartTestSetGenerationError> for Error {
2901 fn from(err: crate::operation::start_test_set_generation::StartTestSetGenerationError) -> Self {
2902 match err {
2903 crate::operation::start_test_set_generation::StartTestSetGenerationError::ConflictException(inner) => Error::ConflictException(inner),
2904 crate::operation::start_test_set_generation::StartTestSetGenerationError::InternalServerException(inner) => {
2905 Error::InternalServerException(inner)
2906 }
2907 crate::operation::start_test_set_generation::StartTestSetGenerationError::ResourceNotFoundException(inner) => {
2908 Error::ResourceNotFoundException(inner)
2909 }
2910 crate::operation::start_test_set_generation::StartTestSetGenerationError::ServiceQuotaExceededException(inner) => {
2911 Error::ServiceQuotaExceededException(inner)
2912 }
2913 crate::operation::start_test_set_generation::StartTestSetGenerationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2914 crate::operation::start_test_set_generation::StartTestSetGenerationError::ValidationException(inner) => Error::ValidationException(inner),
2915 crate::operation::start_test_set_generation::StartTestSetGenerationError::Unhandled(inner) => Error::Unhandled(inner),
2916 }
2917 }
2918}
2919impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_bot_recommendation::StopBotRecommendationError, R>> for Error
2920where
2921 R: Send + Sync + std::fmt::Debug + 'static,
2922{
2923 fn from(
2924 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_bot_recommendation::StopBotRecommendationError, R>,
2925 ) -> Self {
2926 match err {
2927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2930 source: err.into(),
2931 }),
2932 }
2933 }
2934}
2935impl From<crate::operation::stop_bot_recommendation::StopBotRecommendationError> for Error {
2936 fn from(err: crate::operation::stop_bot_recommendation::StopBotRecommendationError) -> Self {
2937 match err {
2938 crate::operation::stop_bot_recommendation::StopBotRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
2939 crate::operation::stop_bot_recommendation::StopBotRecommendationError::InternalServerException(inner) => {
2940 Error::InternalServerException(inner)
2941 }
2942 crate::operation::stop_bot_recommendation::StopBotRecommendationError::PreconditionFailedException(inner) => {
2943 Error::PreconditionFailedException(inner)
2944 }
2945 crate::operation::stop_bot_recommendation::StopBotRecommendationError::ResourceNotFoundException(inner) => {
2946 Error::ResourceNotFoundException(inner)
2947 }
2948 crate::operation::stop_bot_recommendation::StopBotRecommendationError::ServiceQuotaExceededException(inner) => {
2949 Error::ServiceQuotaExceededException(inner)
2950 }
2951 crate::operation::stop_bot_recommendation::StopBotRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2952 crate::operation::stop_bot_recommendation::StopBotRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
2953 crate::operation::stop_bot_recommendation::StopBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
2954 }
2955 }
2956}
2957impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2958where
2959 R: Send + Sync + std::fmt::Debug + 'static,
2960{
2961 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2962 match err {
2963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2966 source: err.into(),
2967 }),
2968 }
2969 }
2970}
2971impl From<crate::operation::tag_resource::TagResourceError> for Error {
2972 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2973 match err {
2974 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2975 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2976 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2977 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2978 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2979 }
2980 }
2981}
2982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2983where
2984 R: Send + Sync + std::fmt::Debug + 'static,
2985{
2986 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2987 match err {
2988 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2989 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2990 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2991 source: err.into(),
2992 }),
2993 }
2994 }
2995}
2996impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2997 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2998 match err {
2999 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3000 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3001 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3002 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3003 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3004 }
3005 }
3006}
3007impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>> for Error
3008where
3009 R: Send + Sync + std::fmt::Debug + 'static,
3010{
3011 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>) -> Self {
3012 match err {
3013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3016 source: err.into(),
3017 }),
3018 }
3019 }
3020}
3021impl From<crate::operation::update_bot::UpdateBotError> for Error {
3022 fn from(err: crate::operation::update_bot::UpdateBotError) -> Self {
3023 match err {
3024 crate::operation::update_bot::UpdateBotError::ConflictException(inner) => Error::ConflictException(inner),
3025 crate::operation::update_bot::UpdateBotError::InternalServerException(inner) => Error::InternalServerException(inner),
3026 crate::operation::update_bot::UpdateBotError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3027 crate::operation::update_bot::UpdateBotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3028 crate::operation::update_bot::UpdateBotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3029 crate::operation::update_bot::UpdateBotError::ValidationException(inner) => Error::ValidationException(inner),
3030 crate::operation::update_bot::UpdateBotError::Unhandled(inner) => Error::Unhandled(inner),
3031 }
3032 }
3033}
3034impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_alias::UpdateBotAliasError, R>> for Error
3035where
3036 R: Send + Sync + std::fmt::Debug + 'static,
3037{
3038 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_alias::UpdateBotAliasError, R>) -> Self {
3039 match err {
3040 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3041 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3042 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3043 source: err.into(),
3044 }),
3045 }
3046 }
3047}
3048impl From<crate::operation::update_bot_alias::UpdateBotAliasError> for Error {
3049 fn from(err: crate::operation::update_bot_alias::UpdateBotAliasError) -> Self {
3050 match err {
3051 crate::operation::update_bot_alias::UpdateBotAliasError::ConflictException(inner) => Error::ConflictException(inner),
3052 crate::operation::update_bot_alias::UpdateBotAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
3053 crate::operation::update_bot_alias::UpdateBotAliasError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3054 crate::operation::update_bot_alias::UpdateBotAliasError::ServiceQuotaExceededException(inner) => {
3055 Error::ServiceQuotaExceededException(inner)
3056 }
3057 crate::operation::update_bot_alias::UpdateBotAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3058 crate::operation::update_bot_alias::UpdateBotAliasError::ValidationException(inner) => Error::ValidationException(inner),
3059 crate::operation::update_bot_alias::UpdateBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
3060 }
3061 }
3062}
3063impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_locale::UpdateBotLocaleError, R>> for Error
3064where
3065 R: Send + Sync + std::fmt::Debug + 'static,
3066{
3067 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_locale::UpdateBotLocaleError, R>) -> Self {
3068 match err {
3069 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3070 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3071 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3072 source: err.into(),
3073 }),
3074 }
3075 }
3076}
3077impl From<crate::operation::update_bot_locale::UpdateBotLocaleError> for Error {
3078 fn from(err: crate::operation::update_bot_locale::UpdateBotLocaleError) -> Self {
3079 match err {
3080 crate::operation::update_bot_locale::UpdateBotLocaleError::ConflictException(inner) => Error::ConflictException(inner),
3081 crate::operation::update_bot_locale::UpdateBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
3082 crate::operation::update_bot_locale::UpdateBotLocaleError::PreconditionFailedException(inner) => {
3083 Error::PreconditionFailedException(inner)
3084 }
3085 crate::operation::update_bot_locale::UpdateBotLocaleError::ServiceQuotaExceededException(inner) => {
3086 Error::ServiceQuotaExceededException(inner)
3087 }
3088 crate::operation::update_bot_locale::UpdateBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3089 crate::operation::update_bot_locale::UpdateBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
3090 crate::operation::update_bot_locale::UpdateBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
3091 }
3092 }
3093}
3094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_recommendation::UpdateBotRecommendationError, R>>
3095 for Error
3096where
3097 R: Send + Sync + std::fmt::Debug + 'static,
3098{
3099 fn from(
3100 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_recommendation::UpdateBotRecommendationError, R>,
3101 ) -> Self {
3102 match err {
3103 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3104 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3105 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3106 source: err.into(),
3107 }),
3108 }
3109 }
3110}
3111impl From<crate::operation::update_bot_recommendation::UpdateBotRecommendationError> for Error {
3112 fn from(err: crate::operation::update_bot_recommendation::UpdateBotRecommendationError) -> Self {
3113 match err {
3114 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
3115 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::InternalServerException(inner) => {
3116 Error::InternalServerException(inner)
3117 }
3118 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::PreconditionFailedException(inner) => {
3119 Error::PreconditionFailedException(inner)
3120 }
3121 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ResourceNotFoundException(inner) => {
3122 Error::ResourceNotFoundException(inner)
3123 }
3124 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ServiceQuotaExceededException(inner) => {
3125 Error::ServiceQuotaExceededException(inner)
3126 }
3127 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ThrottlingException(inner) => {
3128 Error::ThrottlingException(inner)
3129 }
3130 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ValidationException(inner) => {
3131 Error::ValidationException(inner)
3132 }
3133 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
3134 }
3135 }
3136}
3137impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_export::UpdateExportError, R>> for Error
3138where
3139 R: Send + Sync + std::fmt::Debug + 'static,
3140{
3141 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_export::UpdateExportError, R>) -> Self {
3142 match err {
3143 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3144 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3145 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3146 source: err.into(),
3147 }),
3148 }
3149 }
3150}
3151impl From<crate::operation::update_export::UpdateExportError> for Error {
3152 fn from(err: crate::operation::update_export::UpdateExportError) -> Self {
3153 match err {
3154 crate::operation::update_export::UpdateExportError::ConflictException(inner) => Error::ConflictException(inner),
3155 crate::operation::update_export::UpdateExportError::InternalServerException(inner) => Error::InternalServerException(inner),
3156 crate::operation::update_export::UpdateExportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3157 crate::operation::update_export::UpdateExportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3158 crate::operation::update_export::UpdateExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3159 crate::operation::update_export::UpdateExportError::ValidationException(inner) => Error::ValidationException(inner),
3160 crate::operation::update_export::UpdateExportError::Unhandled(inner) => Error::Unhandled(inner),
3161 }
3162 }
3163}
3164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_intent::UpdateIntentError, R>> for Error
3165where
3166 R: Send + Sync + std::fmt::Debug + 'static,
3167{
3168 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_intent::UpdateIntentError, R>) -> Self {
3169 match err {
3170 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3171 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3172 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3173 source: err.into(),
3174 }),
3175 }
3176 }
3177}
3178impl From<crate::operation::update_intent::UpdateIntentError> for Error {
3179 fn from(err: crate::operation::update_intent::UpdateIntentError) -> Self {
3180 match err {
3181 crate::operation::update_intent::UpdateIntentError::ConflictException(inner) => Error::ConflictException(inner),
3182 crate::operation::update_intent::UpdateIntentError::InternalServerException(inner) => Error::InternalServerException(inner),
3183 crate::operation::update_intent::UpdateIntentError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3184 crate::operation::update_intent::UpdateIntentError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3185 crate::operation::update_intent::UpdateIntentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3186 crate::operation::update_intent::UpdateIntentError::ValidationException(inner) => Error::ValidationException(inner),
3187 crate::operation::update_intent::UpdateIntentError::Unhandled(inner) => Error::Unhandled(inner),
3188 }
3189 }
3190}
3191impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_policy::UpdateResourcePolicyError, R>> for Error
3192where
3193 R: Send + Sync + std::fmt::Debug + 'static,
3194{
3195 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_policy::UpdateResourcePolicyError, R>) -> Self {
3196 match err {
3197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3200 source: err.into(),
3201 }),
3202 }
3203 }
3204}
3205impl From<crate::operation::update_resource_policy::UpdateResourcePolicyError> for Error {
3206 fn from(err: crate::operation::update_resource_policy::UpdateResourcePolicyError) -> Self {
3207 match err {
3208 crate::operation::update_resource_policy::UpdateResourcePolicyError::InternalServerException(inner) => {
3209 Error::InternalServerException(inner)
3210 }
3211 crate::operation::update_resource_policy::UpdateResourcePolicyError::PreconditionFailedException(inner) => {
3212 Error::PreconditionFailedException(inner)
3213 }
3214 crate::operation::update_resource_policy::UpdateResourcePolicyError::ResourceNotFoundException(inner) => {
3215 Error::ResourceNotFoundException(inner)
3216 }
3217 crate::operation::update_resource_policy::UpdateResourcePolicyError::ServiceQuotaExceededException(inner) => {
3218 Error::ServiceQuotaExceededException(inner)
3219 }
3220 crate::operation::update_resource_policy::UpdateResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3221 crate::operation::update_resource_policy::UpdateResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
3222 crate::operation::update_resource_policy::UpdateResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
3223 }
3224 }
3225}
3226impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_slot::UpdateSlotError, R>> for Error
3227where
3228 R: Send + Sync + std::fmt::Debug + 'static,
3229{
3230 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_slot::UpdateSlotError, R>) -> Self {
3231 match err {
3232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3235 source: err.into(),
3236 }),
3237 }
3238 }
3239}
3240impl From<crate::operation::update_slot::UpdateSlotError> for Error {
3241 fn from(err: crate::operation::update_slot::UpdateSlotError) -> Self {
3242 match err {
3243 crate::operation::update_slot::UpdateSlotError::ConflictException(inner) => Error::ConflictException(inner),
3244 crate::operation::update_slot::UpdateSlotError::InternalServerException(inner) => Error::InternalServerException(inner),
3245 crate::operation::update_slot::UpdateSlotError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3246 crate::operation::update_slot::UpdateSlotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3247 crate::operation::update_slot::UpdateSlotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3248 crate::operation::update_slot::UpdateSlotError::ValidationException(inner) => Error::ValidationException(inner),
3249 crate::operation::update_slot::UpdateSlotError::Unhandled(inner) => Error::Unhandled(inner),
3250 }
3251 }
3252}
3253impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_slot_type::UpdateSlotTypeError, R>> for Error
3254where
3255 R: Send + Sync + std::fmt::Debug + 'static,
3256{
3257 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_slot_type::UpdateSlotTypeError, R>) -> Self {
3258 match err {
3259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3262 source: err.into(),
3263 }),
3264 }
3265 }
3266}
3267impl From<crate::operation::update_slot_type::UpdateSlotTypeError> for Error {
3268 fn from(err: crate::operation::update_slot_type::UpdateSlotTypeError) -> Self {
3269 match err {
3270 crate::operation::update_slot_type::UpdateSlotTypeError::ConflictException(inner) => Error::ConflictException(inner),
3271 crate::operation::update_slot_type::UpdateSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
3272 crate::operation::update_slot_type::UpdateSlotTypeError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3273 crate::operation::update_slot_type::UpdateSlotTypeError::ServiceQuotaExceededException(inner) => {
3274 Error::ServiceQuotaExceededException(inner)
3275 }
3276 crate::operation::update_slot_type::UpdateSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3277 crate::operation::update_slot_type::UpdateSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
3278 crate::operation::update_slot_type::UpdateSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
3279 }
3280 }
3281}
3282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_set::UpdateTestSetError, R>> for Error
3283where
3284 R: Send + Sync + std::fmt::Debug + 'static,
3285{
3286 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_set::UpdateTestSetError, R>) -> Self {
3287 match err {
3288 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3289 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3290 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3291 source: err.into(),
3292 }),
3293 }
3294 }
3295}
3296impl From<crate::operation::update_test_set::UpdateTestSetError> for Error {
3297 fn from(err: crate::operation::update_test_set::UpdateTestSetError) -> Self {
3298 match err {
3299 crate::operation::update_test_set::UpdateTestSetError::ConflictException(inner) => Error::ConflictException(inner),
3300 crate::operation::update_test_set::UpdateTestSetError::InternalServerException(inner) => Error::InternalServerException(inner),
3301 crate::operation::update_test_set::UpdateTestSetError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3302 crate::operation::update_test_set::UpdateTestSetError::ServiceQuotaExceededException(inner) => {
3303 Error::ServiceQuotaExceededException(inner)
3304 }
3305 crate::operation::update_test_set::UpdateTestSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3306 crate::operation::update_test_set::UpdateTestSetError::ValidationException(inner) => Error::ValidationException(inner),
3307 crate::operation::update_test_set::UpdateTestSetError::Unhandled(inner) => Error::Unhandled(inner),
3308 }
3309 }
3310}
3311impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
3312where
3313 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
3314 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
3315{
3316 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
3317 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3318 meta: ::std::default::Default::default(),
3319 source: err.into(),
3320 })
3321 }
3322}
3323impl ::std::error::Error for Error {
3324 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3325 match self {
3326 Error::ConflictException(inner) => inner.source(),
3327 Error::InternalServerException(inner) => inner.source(),
3328 Error::PreconditionFailedException(inner) => inner.source(),
3329 Error::ResourceNotFoundException(inner) => inner.source(),
3330 Error::ServiceQuotaExceededException(inner) => inner.source(),
3331 Error::ThrottlingException(inner) => inner.source(),
3332 Error::ValidationException(inner) => inner.source(),
3333 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3334 }
3335 }
3336}
3337impl ::aws_types::request_id::RequestId for Error {
3338 fn request_id(&self) -> Option<&str> {
3339 match self {
3340 Self::ConflictException(e) => e.request_id(),
3341 Self::InternalServerException(e) => e.request_id(),
3342 Self::PreconditionFailedException(e) => e.request_id(),
3343 Self::ResourceNotFoundException(e) => e.request_id(),
3344 Self::ServiceQuotaExceededException(e) => e.request_id(),
3345 Self::ThrottlingException(e) => e.request_id(),
3346 Self::ValidationException(e) => e.request_id(),
3347 Self::Unhandled(e) => e.meta.request_id(),
3348 }
3349 }
3350}