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>
718 From<
719 ::aws_smithy_runtime_api::client::result::SdkError<
720 crate::operation::delete_bot_analyzer_recommendation::DeleteBotAnalyzerRecommendationError,
721 R,
722 >,
723 > for Error
724where
725 R: Send + Sync + std::fmt::Debug + 'static,
726{
727 fn from(
728 err: ::aws_smithy_runtime_api::client::result::SdkError<
729 crate::operation::delete_bot_analyzer_recommendation::DeleteBotAnalyzerRecommendationError,
730 R,
731 >,
732 ) -> Self {
733 match err {
734 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
735 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
736 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
737 source: err.into(),
738 }),
739 }
740 }
741}
742impl From<crate::operation::delete_bot_analyzer_recommendation::DeleteBotAnalyzerRecommendationError> for Error {
743 fn from(err: crate::operation::delete_bot_analyzer_recommendation::DeleteBotAnalyzerRecommendationError) -> Self {
744 match err {
745 crate::operation::delete_bot_analyzer_recommendation::DeleteBotAnalyzerRecommendationError::InternalServerException(inner) => {
746 Error::InternalServerException(inner)
747 }
748 crate::operation::delete_bot_analyzer_recommendation::DeleteBotAnalyzerRecommendationError::ResourceNotFoundException(inner) => {
749 Error::ResourceNotFoundException(inner)
750 }
751 crate::operation::delete_bot_analyzer_recommendation::DeleteBotAnalyzerRecommendationError::ThrottlingException(inner) => {
752 Error::ThrottlingException(inner)
753 }
754 crate::operation::delete_bot_analyzer_recommendation::DeleteBotAnalyzerRecommendationError::ValidationException(inner) => {
755 Error::ValidationException(inner)
756 }
757 crate::operation::delete_bot_analyzer_recommendation::DeleteBotAnalyzerRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
758 }
759 }
760}
761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_locale::DeleteBotLocaleError, R>> for Error
762where
763 R: Send + Sync + std::fmt::Debug + 'static,
764{
765 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_locale::DeleteBotLocaleError, R>) -> Self {
766 match err {
767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
770 source: err.into(),
771 }),
772 }
773 }
774}
775impl From<crate::operation::delete_bot_locale::DeleteBotLocaleError> for Error {
776 fn from(err: crate::operation::delete_bot_locale::DeleteBotLocaleError) -> Self {
777 match err {
778 crate::operation::delete_bot_locale::DeleteBotLocaleError::ConflictException(inner) => Error::ConflictException(inner),
779 crate::operation::delete_bot_locale::DeleteBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
780 crate::operation::delete_bot_locale::DeleteBotLocaleError::PreconditionFailedException(inner) => {
781 Error::PreconditionFailedException(inner)
782 }
783 crate::operation::delete_bot_locale::DeleteBotLocaleError::ServiceQuotaExceededException(inner) => {
784 Error::ServiceQuotaExceededException(inner)
785 }
786 crate::operation::delete_bot_locale::DeleteBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
787 crate::operation::delete_bot_locale::DeleteBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
788 crate::operation::delete_bot_locale::DeleteBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
789 }
790 }
791}
792impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_replica::DeleteBotReplicaError, R>> for Error
793where
794 R: Send + Sync + std::fmt::Debug + 'static,
795{
796 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_replica::DeleteBotReplicaError, R>) -> Self {
797 match err {
798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
801 source: err.into(),
802 }),
803 }
804 }
805}
806impl From<crate::operation::delete_bot_replica::DeleteBotReplicaError> for Error {
807 fn from(err: crate::operation::delete_bot_replica::DeleteBotReplicaError) -> Self {
808 match err {
809 crate::operation::delete_bot_replica::DeleteBotReplicaError::ConflictException(inner) => Error::ConflictException(inner),
810 crate::operation::delete_bot_replica::DeleteBotReplicaError::InternalServerException(inner) => Error::InternalServerException(inner),
811 crate::operation::delete_bot_replica::DeleteBotReplicaError::PreconditionFailedException(inner) => {
812 Error::PreconditionFailedException(inner)
813 }
814 crate::operation::delete_bot_replica::DeleteBotReplicaError::ServiceQuotaExceededException(inner) => {
815 Error::ServiceQuotaExceededException(inner)
816 }
817 crate::operation::delete_bot_replica::DeleteBotReplicaError::ThrottlingException(inner) => Error::ThrottlingException(inner),
818 crate::operation::delete_bot_replica::DeleteBotReplicaError::ValidationException(inner) => Error::ValidationException(inner),
819 crate::operation::delete_bot_replica::DeleteBotReplicaError::Unhandled(inner) => Error::Unhandled(inner),
820 }
821 }
822}
823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_version::DeleteBotVersionError, R>> for Error
824where
825 R: Send + Sync + std::fmt::Debug + 'static,
826{
827 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_version::DeleteBotVersionError, R>) -> Self {
828 match err {
829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
832 source: err.into(),
833 }),
834 }
835 }
836}
837impl From<crate::operation::delete_bot_version::DeleteBotVersionError> for Error {
838 fn from(err: crate::operation::delete_bot_version::DeleteBotVersionError) -> Self {
839 match err {
840 crate::operation::delete_bot_version::DeleteBotVersionError::ConflictException(inner) => Error::ConflictException(inner),
841 crate::operation::delete_bot_version::DeleteBotVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
842 crate::operation::delete_bot_version::DeleteBotVersionError::PreconditionFailedException(inner) => {
843 Error::PreconditionFailedException(inner)
844 }
845 crate::operation::delete_bot_version::DeleteBotVersionError::ServiceQuotaExceededException(inner) => {
846 Error::ServiceQuotaExceededException(inner)
847 }
848 crate::operation::delete_bot_version::DeleteBotVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
849 crate::operation::delete_bot_version::DeleteBotVersionError::ValidationException(inner) => Error::ValidationException(inner),
850 crate::operation::delete_bot_version::DeleteBotVersionError::Unhandled(inner) => Error::Unhandled(inner),
851 }
852 }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError, R>> for Error
855where
856 R: Send + Sync + std::fmt::Debug + 'static,
857{
858 fn from(
859 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError, R>,
860 ) -> Self {
861 match err {
862 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
863 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
864 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
865 source: err.into(),
866 }),
867 }
868 }
869}
870impl From<crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError> for Error {
871 fn from(err: crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError) -> Self {
872 match err {
873 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ConflictException(inner) => Error::ConflictException(inner),
874 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::InternalServerException(inner) => {
875 Error::InternalServerException(inner)
876 }
877 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::PreconditionFailedException(inner) => {
878 Error::PreconditionFailedException(inner)
879 }
880 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ServiceQuotaExceededException(inner) => {
881 Error::ServiceQuotaExceededException(inner)
882 }
883 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
884 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ValidationException(inner) => Error::ValidationException(inner),
885 crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::Unhandled(inner) => Error::Unhandled(inner),
886 }
887 }
888}
889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_export::DeleteExportError, R>> for Error
890where
891 R: Send + Sync + std::fmt::Debug + 'static,
892{
893 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_export::DeleteExportError, R>) -> Self {
894 match err {
895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
898 source: err.into(),
899 }),
900 }
901 }
902}
903impl From<crate::operation::delete_export::DeleteExportError> for Error {
904 fn from(err: crate::operation::delete_export::DeleteExportError) -> Self {
905 match err {
906 crate::operation::delete_export::DeleteExportError::InternalServerException(inner) => Error::InternalServerException(inner),
907 crate::operation::delete_export::DeleteExportError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
908 crate::operation::delete_export::DeleteExportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
909 crate::operation::delete_export::DeleteExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
910 crate::operation::delete_export::DeleteExportError::ValidationException(inner) => Error::ValidationException(inner),
911 crate::operation::delete_export::DeleteExportError::Unhandled(inner) => Error::Unhandled(inner),
912 }
913 }
914}
915impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_import::DeleteImportError, R>> for Error
916where
917 R: Send + Sync + std::fmt::Debug + 'static,
918{
919 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_import::DeleteImportError, R>) -> Self {
920 match err {
921 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
922 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
923 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
924 source: err.into(),
925 }),
926 }
927 }
928}
929impl From<crate::operation::delete_import::DeleteImportError> for Error {
930 fn from(err: crate::operation::delete_import::DeleteImportError) -> Self {
931 match err {
932 crate::operation::delete_import::DeleteImportError::InternalServerException(inner) => Error::InternalServerException(inner),
933 crate::operation::delete_import::DeleteImportError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
934 crate::operation::delete_import::DeleteImportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
935 crate::operation::delete_import::DeleteImportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
936 crate::operation::delete_import::DeleteImportError::ValidationException(inner) => Error::ValidationException(inner),
937 crate::operation::delete_import::DeleteImportError::Unhandled(inner) => Error::Unhandled(inner),
938 }
939 }
940}
941impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_intent::DeleteIntentError, R>> for Error
942where
943 R: Send + Sync + std::fmt::Debug + 'static,
944{
945 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_intent::DeleteIntentError, R>) -> Self {
946 match err {
947 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
948 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
949 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
950 source: err.into(),
951 }),
952 }
953 }
954}
955impl From<crate::operation::delete_intent::DeleteIntentError> for Error {
956 fn from(err: crate::operation::delete_intent::DeleteIntentError) -> Self {
957 match err {
958 crate::operation::delete_intent::DeleteIntentError::ConflictException(inner) => Error::ConflictException(inner),
959 crate::operation::delete_intent::DeleteIntentError::InternalServerException(inner) => Error::InternalServerException(inner),
960 crate::operation::delete_intent::DeleteIntentError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
961 crate::operation::delete_intent::DeleteIntentError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
962 crate::operation::delete_intent::DeleteIntentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
963 crate::operation::delete_intent::DeleteIntentError::ValidationException(inner) => Error::ValidationException(inner),
964 crate::operation::delete_intent::DeleteIntentError::Unhandled(inner) => Error::Unhandled(inner),
965 }
966 }
967}
968impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
969where
970 R: Send + Sync + std::fmt::Debug + 'static,
971{
972 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
973 match err {
974 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
975 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
976 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
977 source: err.into(),
978 }),
979 }
980 }
981}
982impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
983 fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
984 match err {
985 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
986 Error::InternalServerException(inner)
987 }
988 crate::operation::delete_resource_policy::DeleteResourcePolicyError::PreconditionFailedException(inner) => {
989 Error::PreconditionFailedException(inner)
990 }
991 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
992 Error::ResourceNotFoundException(inner)
993 }
994 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
995 crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
996 }
997 }
998}
999impl<R>
1000 From<
1001 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError, R>,
1002 > for Error
1003where
1004 R: Send + Sync + std::fmt::Debug + 'static,
1005{
1006 fn from(
1007 err: ::aws_smithy_runtime_api::client::result::SdkError<
1008 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError,
1009 R,
1010 >,
1011 ) -> Self {
1012 match err {
1013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1016 source: err.into(),
1017 }),
1018 }
1019 }
1020}
1021impl From<crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError> for Error {
1022 fn from(err: crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError) -> Self {
1023 match err {
1024 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::InternalServerException(inner) => {
1025 Error::InternalServerException(inner)
1026 }
1027 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::PreconditionFailedException(inner) => {
1028 Error::PreconditionFailedException(inner)
1029 }
1030 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::ResourceNotFoundException(inner) => {
1031 Error::ResourceNotFoundException(inner)
1032 }
1033 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::ThrottlingException(inner) => {
1034 Error::ThrottlingException(inner)
1035 }
1036 crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::Unhandled(inner) => Error::Unhandled(inner),
1037 }
1038 }
1039}
1040impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot::DeleteSlotError, R>> for Error
1041where
1042 R: Send + Sync + std::fmt::Debug + 'static,
1043{
1044 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot::DeleteSlotError, R>) -> Self {
1045 match err {
1046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1049 source: err.into(),
1050 }),
1051 }
1052 }
1053}
1054impl From<crate::operation::delete_slot::DeleteSlotError> for Error {
1055 fn from(err: crate::operation::delete_slot::DeleteSlotError) -> Self {
1056 match err {
1057 crate::operation::delete_slot::DeleteSlotError::ConflictException(inner) => Error::ConflictException(inner),
1058 crate::operation::delete_slot::DeleteSlotError::InternalServerException(inner) => Error::InternalServerException(inner),
1059 crate::operation::delete_slot::DeleteSlotError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
1060 crate::operation::delete_slot::DeleteSlotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1061 crate::operation::delete_slot::DeleteSlotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1062 crate::operation::delete_slot::DeleteSlotError::ValidationException(inner) => Error::ValidationException(inner),
1063 crate::operation::delete_slot::DeleteSlotError::Unhandled(inner) => Error::Unhandled(inner),
1064 }
1065 }
1066}
1067impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot_type::DeleteSlotTypeError, R>> for Error
1068where
1069 R: Send + Sync + std::fmt::Debug + 'static,
1070{
1071 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot_type::DeleteSlotTypeError, R>) -> Self {
1072 match err {
1073 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1074 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1075 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1076 source: err.into(),
1077 }),
1078 }
1079 }
1080}
1081impl From<crate::operation::delete_slot_type::DeleteSlotTypeError> for Error {
1082 fn from(err: crate::operation::delete_slot_type::DeleteSlotTypeError) -> Self {
1083 match err {
1084 crate::operation::delete_slot_type::DeleteSlotTypeError::ConflictException(inner) => Error::ConflictException(inner),
1085 crate::operation::delete_slot_type::DeleteSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
1086 crate::operation::delete_slot_type::DeleteSlotTypeError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
1087 crate::operation::delete_slot_type::DeleteSlotTypeError::ServiceQuotaExceededException(inner) => {
1088 Error::ServiceQuotaExceededException(inner)
1089 }
1090 crate::operation::delete_slot_type::DeleteSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1091 crate::operation::delete_slot_type::DeleteSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
1092 crate::operation::delete_slot_type::DeleteSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
1093 }
1094 }
1095}
1096impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_set::DeleteTestSetError, R>> for Error
1097where
1098 R: Send + Sync + std::fmt::Debug + 'static,
1099{
1100 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_set::DeleteTestSetError, R>) -> Self {
1101 match err {
1102 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1103 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1104 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1105 source: err.into(),
1106 }),
1107 }
1108 }
1109}
1110impl From<crate::operation::delete_test_set::DeleteTestSetError> for Error {
1111 fn from(err: crate::operation::delete_test_set::DeleteTestSetError) -> Self {
1112 match err {
1113 crate::operation::delete_test_set::DeleteTestSetError::ConflictException(inner) => Error::ConflictException(inner),
1114 crate::operation::delete_test_set::DeleteTestSetError::InternalServerException(inner) => Error::InternalServerException(inner),
1115 crate::operation::delete_test_set::DeleteTestSetError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
1116 crate::operation::delete_test_set::DeleteTestSetError::ServiceQuotaExceededException(inner) => {
1117 Error::ServiceQuotaExceededException(inner)
1118 }
1119 crate::operation::delete_test_set::DeleteTestSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1120 crate::operation::delete_test_set::DeleteTestSetError::ValidationException(inner) => Error::ValidationException(inner),
1121 crate::operation::delete_test_set::DeleteTestSetError::Unhandled(inner) => Error::Unhandled(inner),
1122 }
1123 }
1124}
1125impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_utterances::DeleteUtterancesError, R>> for Error
1126where
1127 R: Send + Sync + std::fmt::Debug + 'static,
1128{
1129 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_utterances::DeleteUtterancesError, R>) -> Self {
1130 match err {
1131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1134 source: err.into(),
1135 }),
1136 }
1137 }
1138}
1139impl From<crate::operation::delete_utterances::DeleteUtterancesError> for Error {
1140 fn from(err: crate::operation::delete_utterances::DeleteUtterancesError) -> Self {
1141 match err {
1142 crate::operation::delete_utterances::DeleteUtterancesError::InternalServerException(inner) => Error::InternalServerException(inner),
1143 crate::operation::delete_utterances::DeleteUtterancesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1144 crate::operation::delete_utterances::DeleteUtterancesError::ValidationException(inner) => Error::ValidationException(inner),
1145 crate::operation::delete_utterances::DeleteUtterancesError::Unhandled(inner) => Error::Unhandled(inner),
1146 }
1147 }
1148}
1149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot::DescribeBotError, R>> for Error
1150where
1151 R: Send + Sync + std::fmt::Debug + 'static,
1152{
1153 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot::DescribeBotError, R>) -> Self {
1154 match err {
1155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1158 source: err.into(),
1159 }),
1160 }
1161 }
1162}
1163impl From<crate::operation::describe_bot::DescribeBotError> for Error {
1164 fn from(err: crate::operation::describe_bot::DescribeBotError) -> Self {
1165 match err {
1166 crate::operation::describe_bot::DescribeBotError::InternalServerException(inner) => Error::InternalServerException(inner),
1167 crate::operation::describe_bot::DescribeBotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1168 crate::operation::describe_bot::DescribeBotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1169 crate::operation::describe_bot::DescribeBotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1170 crate::operation::describe_bot::DescribeBotError::ValidationException(inner) => Error::ValidationException(inner),
1171 crate::operation::describe_bot::DescribeBotError::Unhandled(inner) => Error::Unhandled(inner),
1172 }
1173 }
1174}
1175impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_alias::DescribeBotAliasError, R>> for Error
1176where
1177 R: Send + Sync + std::fmt::Debug + 'static,
1178{
1179 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_alias::DescribeBotAliasError, R>) -> Self {
1180 match err {
1181 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1182 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1183 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1184 source: err.into(),
1185 }),
1186 }
1187 }
1188}
1189impl From<crate::operation::describe_bot_alias::DescribeBotAliasError> for Error {
1190 fn from(err: crate::operation::describe_bot_alias::DescribeBotAliasError) -> Self {
1191 match err {
1192 crate::operation::describe_bot_alias::DescribeBotAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
1193 crate::operation::describe_bot_alias::DescribeBotAliasError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1194 crate::operation::describe_bot_alias::DescribeBotAliasError::ServiceQuotaExceededException(inner) => {
1195 Error::ServiceQuotaExceededException(inner)
1196 }
1197 crate::operation::describe_bot_alias::DescribeBotAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1198 crate::operation::describe_bot_alias::DescribeBotAliasError::ValidationException(inner) => Error::ValidationException(inner),
1199 crate::operation::describe_bot_alias::DescribeBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
1200 }
1201 }
1202}
1203impl<R>
1204 From<
1205 ::aws_smithy_runtime_api::client::result::SdkError<
1206 crate::operation::describe_bot_analyzer_recommendation::DescribeBotAnalyzerRecommendationError,
1207 R,
1208 >,
1209 > for Error
1210where
1211 R: Send + Sync + std::fmt::Debug + 'static,
1212{
1213 fn from(
1214 err: ::aws_smithy_runtime_api::client::result::SdkError<
1215 crate::operation::describe_bot_analyzer_recommendation::DescribeBotAnalyzerRecommendationError,
1216 R,
1217 >,
1218 ) -> Self {
1219 match err {
1220 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1221 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1222 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1223 source: err.into(),
1224 }),
1225 }
1226 }
1227}
1228impl From<crate::operation::describe_bot_analyzer_recommendation::DescribeBotAnalyzerRecommendationError> for Error {
1229 fn from(err: crate::operation::describe_bot_analyzer_recommendation::DescribeBotAnalyzerRecommendationError) -> Self {
1230 match err {
1231 crate::operation::describe_bot_analyzer_recommendation::DescribeBotAnalyzerRecommendationError::InternalServerException(inner) => {
1232 Error::InternalServerException(inner)
1233 }
1234 crate::operation::describe_bot_analyzer_recommendation::DescribeBotAnalyzerRecommendationError::ResourceNotFoundException(inner) => {
1235 Error::ResourceNotFoundException(inner)
1236 }
1237 crate::operation::describe_bot_analyzer_recommendation::DescribeBotAnalyzerRecommendationError::ThrottlingException(inner) => {
1238 Error::ThrottlingException(inner)
1239 }
1240 crate::operation::describe_bot_analyzer_recommendation::DescribeBotAnalyzerRecommendationError::ValidationException(inner) => {
1241 Error::ValidationException(inner)
1242 }
1243 crate::operation::describe_bot_analyzer_recommendation::DescribeBotAnalyzerRecommendationError::Unhandled(inner) => {
1244 Error::Unhandled(inner)
1245 }
1246 }
1247 }
1248}
1249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_locale::DescribeBotLocaleError, R>> for Error
1250where
1251 R: Send + Sync + std::fmt::Debug + 'static,
1252{
1253 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_locale::DescribeBotLocaleError, R>) -> Self {
1254 match err {
1255 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1256 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1257 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1258 source: err.into(),
1259 }),
1260 }
1261 }
1262}
1263impl From<crate::operation::describe_bot_locale::DescribeBotLocaleError> for Error {
1264 fn from(err: crate::operation::describe_bot_locale::DescribeBotLocaleError) -> Self {
1265 match err {
1266 crate::operation::describe_bot_locale::DescribeBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
1267 crate::operation::describe_bot_locale::DescribeBotLocaleError::ResourceNotFoundException(inner) => {
1268 Error::ResourceNotFoundException(inner)
1269 }
1270 crate::operation::describe_bot_locale::DescribeBotLocaleError::ServiceQuotaExceededException(inner) => {
1271 Error::ServiceQuotaExceededException(inner)
1272 }
1273 crate::operation::describe_bot_locale::DescribeBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1274 crate::operation::describe_bot_locale::DescribeBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
1275 crate::operation::describe_bot_locale::DescribeBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
1276 }
1277 }
1278}
1279impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_recommendation::DescribeBotRecommendationError, R>>
1280 for Error
1281where
1282 R: Send + Sync + std::fmt::Debug + 'static,
1283{
1284 fn from(
1285 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_recommendation::DescribeBotRecommendationError, R>,
1286 ) -> Self {
1287 match err {
1288 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1289 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1290 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1291 source: err.into(),
1292 }),
1293 }
1294 }
1295}
1296impl From<crate::operation::describe_bot_recommendation::DescribeBotRecommendationError> for Error {
1297 fn from(err: crate::operation::describe_bot_recommendation::DescribeBotRecommendationError) -> Self {
1298 match err {
1299 crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::InternalServerException(inner) => {
1300 Error::InternalServerException(inner)
1301 }
1302 crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::ResourceNotFoundException(inner) => {
1303 Error::ResourceNotFoundException(inner)
1304 }
1305 crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::ThrottlingException(inner) => {
1306 Error::ThrottlingException(inner)
1307 }
1308 crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::ValidationException(inner) => {
1309 Error::ValidationException(inner)
1310 }
1311 crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
1312 }
1313 }
1314}
1315impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_replica::DescribeBotReplicaError, R>> for Error
1316where
1317 R: Send + Sync + std::fmt::Debug + 'static,
1318{
1319 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_replica::DescribeBotReplicaError, R>) -> Self {
1320 match err {
1321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1324 source: err.into(),
1325 }),
1326 }
1327 }
1328}
1329impl From<crate::operation::describe_bot_replica::DescribeBotReplicaError> for Error {
1330 fn from(err: crate::operation::describe_bot_replica::DescribeBotReplicaError) -> Self {
1331 match err {
1332 crate::operation::describe_bot_replica::DescribeBotReplicaError::InternalServerException(inner) => Error::InternalServerException(inner),
1333 crate::operation::describe_bot_replica::DescribeBotReplicaError::ResourceNotFoundException(inner) => {
1334 Error::ResourceNotFoundException(inner)
1335 }
1336 crate::operation::describe_bot_replica::DescribeBotReplicaError::ServiceQuotaExceededException(inner) => {
1337 Error::ServiceQuotaExceededException(inner)
1338 }
1339 crate::operation::describe_bot_replica::DescribeBotReplicaError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1340 crate::operation::describe_bot_replica::DescribeBotReplicaError::ValidationException(inner) => Error::ValidationException(inner),
1341 crate::operation::describe_bot_replica::DescribeBotReplicaError::Unhandled(inner) => Error::Unhandled(inner),
1342 }
1343 }
1344}
1345impl<R>
1346 From<
1347 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError, R>,
1348 > for Error
1349where
1350 R: Send + Sync + std::fmt::Debug + 'static,
1351{
1352 fn from(
1353 err: ::aws_smithy_runtime_api::client::result::SdkError<
1354 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError,
1355 R,
1356 >,
1357 ) -> Self {
1358 match err {
1359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1362 source: err.into(),
1363 }),
1364 }
1365 }
1366}
1367impl From<crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError> for Error {
1368 fn from(err: crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError) -> Self {
1369 match err {
1370 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError::InternalServerException(inner) => {
1371 Error::InternalServerException(inner)
1372 }
1373 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError::ResourceNotFoundException(inner) => {
1374 Error::ResourceNotFoundException(inner)
1375 }
1376 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError::ThrottlingException(inner) => {
1377 Error::ThrottlingException(inner)
1378 }
1379 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError::ValidationException(inner) => {
1380 Error::ValidationException(inner)
1381 }
1382 crate::operation::describe_bot_resource_generation::DescribeBotResourceGenerationError::Unhandled(inner) => Error::Unhandled(inner),
1383 }
1384 }
1385}
1386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_version::DescribeBotVersionError, R>> for Error
1387where
1388 R: Send + Sync + std::fmt::Debug + 'static,
1389{
1390 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_bot_version::DescribeBotVersionError, R>) -> Self {
1391 match err {
1392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1395 source: err.into(),
1396 }),
1397 }
1398 }
1399}
1400impl From<crate::operation::describe_bot_version::DescribeBotVersionError> for Error {
1401 fn from(err: crate::operation::describe_bot_version::DescribeBotVersionError) -> Self {
1402 match err {
1403 crate::operation::describe_bot_version::DescribeBotVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
1404 crate::operation::describe_bot_version::DescribeBotVersionError::ResourceNotFoundException(inner) => {
1405 Error::ResourceNotFoundException(inner)
1406 }
1407 crate::operation::describe_bot_version::DescribeBotVersionError::ServiceQuotaExceededException(inner) => {
1408 Error::ServiceQuotaExceededException(inner)
1409 }
1410 crate::operation::describe_bot_version::DescribeBotVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1411 crate::operation::describe_bot_version::DescribeBotVersionError::ValidationException(inner) => Error::ValidationException(inner),
1412 crate::operation::describe_bot_version::DescribeBotVersionError::Unhandled(inner) => Error::Unhandled(inner),
1413 }
1414 }
1415}
1416impl<R>
1417 From<
1418 ::aws_smithy_runtime_api::client::result::SdkError<
1419 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError,
1420 R,
1421 >,
1422 > for Error
1423where
1424 R: Send + Sync + std::fmt::Debug + 'static,
1425{
1426 fn from(
1427 err: ::aws_smithy_runtime_api::client::result::SdkError<
1428 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError,
1429 R,
1430 >,
1431 ) -> Self {
1432 match err {
1433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1436 source: err.into(),
1437 }),
1438 }
1439 }
1440}
1441impl From<crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError> for Error {
1442 fn from(err: crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError) -> Self {
1443 match err {
1444 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::InternalServerException(inner) => {
1445 Error::InternalServerException(inner)
1446 }
1447 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ResourceNotFoundException(inner) => {
1448 Error::ResourceNotFoundException(inner)
1449 }
1450 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ServiceQuotaExceededException(inner) => {
1451 Error::ServiceQuotaExceededException(inner)
1452 }
1453 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ThrottlingException(inner) => {
1454 Error::ThrottlingException(inner)
1455 }
1456 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ValidationException(inner) => {
1457 Error::ValidationException(inner)
1458 }
1459 crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1460 }
1461 }
1462}
1463impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export::DescribeExportError, R>> for Error
1464where
1465 R: Send + Sync + std::fmt::Debug + 'static,
1466{
1467 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export::DescribeExportError, R>) -> Self {
1468 match err {
1469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1472 source: err.into(),
1473 }),
1474 }
1475 }
1476}
1477impl From<crate::operation::describe_export::DescribeExportError> for Error {
1478 fn from(err: crate::operation::describe_export::DescribeExportError) -> Self {
1479 match err {
1480 crate::operation::describe_export::DescribeExportError::InternalServerException(inner) => Error::InternalServerException(inner),
1481 crate::operation::describe_export::DescribeExportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1482 crate::operation::describe_export::DescribeExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1483 crate::operation::describe_export::DescribeExportError::ValidationException(inner) => Error::ValidationException(inner),
1484 crate::operation::describe_export::DescribeExportError::Unhandled(inner) => Error::Unhandled(inner),
1485 }
1486 }
1487}
1488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import::DescribeImportError, R>> for Error
1489where
1490 R: Send + Sync + std::fmt::Debug + 'static,
1491{
1492 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import::DescribeImportError, R>) -> Self {
1493 match err {
1494 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1495 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1496 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1497 source: err.into(),
1498 }),
1499 }
1500 }
1501}
1502impl From<crate::operation::describe_import::DescribeImportError> for Error {
1503 fn from(err: crate::operation::describe_import::DescribeImportError) -> Self {
1504 match err {
1505 crate::operation::describe_import::DescribeImportError::InternalServerException(inner) => Error::InternalServerException(inner),
1506 crate::operation::describe_import::DescribeImportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1507 crate::operation::describe_import::DescribeImportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1508 crate::operation::describe_import::DescribeImportError::ValidationException(inner) => Error::ValidationException(inner),
1509 crate::operation::describe_import::DescribeImportError::Unhandled(inner) => Error::Unhandled(inner),
1510 }
1511 }
1512}
1513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_intent::DescribeIntentError, R>> for Error
1514where
1515 R: Send + Sync + std::fmt::Debug + 'static,
1516{
1517 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_intent::DescribeIntentError, R>) -> Self {
1518 match err {
1519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1522 source: err.into(),
1523 }),
1524 }
1525 }
1526}
1527impl From<crate::operation::describe_intent::DescribeIntentError> for Error {
1528 fn from(err: crate::operation::describe_intent::DescribeIntentError) -> Self {
1529 match err {
1530 crate::operation::describe_intent::DescribeIntentError::InternalServerException(inner) => Error::InternalServerException(inner),
1531 crate::operation::describe_intent::DescribeIntentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1532 crate::operation::describe_intent::DescribeIntentError::ServiceQuotaExceededException(inner) => {
1533 Error::ServiceQuotaExceededException(inner)
1534 }
1535 crate::operation::describe_intent::DescribeIntentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1536 crate::operation::describe_intent::DescribeIntentError::ValidationException(inner) => Error::ValidationException(inner),
1537 crate::operation::describe_intent::DescribeIntentError::Unhandled(inner) => Error::Unhandled(inner),
1538 }
1539 }
1540}
1541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>> for Error
1542where
1543 R: Send + Sync + std::fmt::Debug + 'static,
1544{
1545 fn from(
1546 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>,
1547 ) -> Self {
1548 match err {
1549 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1550 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1551 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1552 source: err.into(),
1553 }),
1554 }
1555 }
1556}
1557impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
1558 fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
1559 match err {
1560 crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerException(inner) => {
1561 Error::InternalServerException(inner)
1562 }
1563 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => {
1564 Error::ResourceNotFoundException(inner)
1565 }
1566 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1567 crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1568 }
1569 }
1570}
1571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slot::DescribeSlotError, R>> for Error
1572where
1573 R: Send + Sync + std::fmt::Debug + 'static,
1574{
1575 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slot::DescribeSlotError, R>) -> Self {
1576 match err {
1577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1580 source: err.into(),
1581 }),
1582 }
1583 }
1584}
1585impl From<crate::operation::describe_slot::DescribeSlotError> for Error {
1586 fn from(err: crate::operation::describe_slot::DescribeSlotError) -> Self {
1587 match err {
1588 crate::operation::describe_slot::DescribeSlotError::InternalServerException(inner) => Error::InternalServerException(inner),
1589 crate::operation::describe_slot::DescribeSlotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1590 crate::operation::describe_slot::DescribeSlotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1591 crate::operation::describe_slot::DescribeSlotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1592 crate::operation::describe_slot::DescribeSlotError::ValidationException(inner) => Error::ValidationException(inner),
1593 crate::operation::describe_slot::DescribeSlotError::Unhandled(inner) => Error::Unhandled(inner),
1594 }
1595 }
1596}
1597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slot_type::DescribeSlotTypeError, R>> for Error
1598where
1599 R: Send + Sync + std::fmt::Debug + 'static,
1600{
1601 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slot_type::DescribeSlotTypeError, R>) -> Self {
1602 match err {
1603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1606 source: err.into(),
1607 }),
1608 }
1609 }
1610}
1611impl From<crate::operation::describe_slot_type::DescribeSlotTypeError> for Error {
1612 fn from(err: crate::operation::describe_slot_type::DescribeSlotTypeError) -> Self {
1613 match err {
1614 crate::operation::describe_slot_type::DescribeSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
1615 crate::operation::describe_slot_type::DescribeSlotTypeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1616 crate::operation::describe_slot_type::DescribeSlotTypeError::ServiceQuotaExceededException(inner) => {
1617 Error::ServiceQuotaExceededException(inner)
1618 }
1619 crate::operation::describe_slot_type::DescribeSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1620 crate::operation::describe_slot_type::DescribeSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
1621 crate::operation::describe_slot_type::DescribeSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
1622 }
1623 }
1624}
1625impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_execution::DescribeTestExecutionError, R>> for Error
1626where
1627 R: Send + Sync + std::fmt::Debug + 'static,
1628{
1629 fn from(
1630 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_execution::DescribeTestExecutionError, R>,
1631 ) -> Self {
1632 match err {
1633 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1634 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1635 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1636 source: err.into(),
1637 }),
1638 }
1639 }
1640}
1641impl From<crate::operation::describe_test_execution::DescribeTestExecutionError> for Error {
1642 fn from(err: crate::operation::describe_test_execution::DescribeTestExecutionError) -> Self {
1643 match err {
1644 crate::operation::describe_test_execution::DescribeTestExecutionError::InternalServerException(inner) => {
1645 Error::InternalServerException(inner)
1646 }
1647 crate::operation::describe_test_execution::DescribeTestExecutionError::ResourceNotFoundException(inner) => {
1648 Error::ResourceNotFoundException(inner)
1649 }
1650 crate::operation::describe_test_execution::DescribeTestExecutionError::ServiceQuotaExceededException(inner) => {
1651 Error::ServiceQuotaExceededException(inner)
1652 }
1653 crate::operation::describe_test_execution::DescribeTestExecutionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1654 crate::operation::describe_test_execution::DescribeTestExecutionError::ValidationException(inner) => Error::ValidationException(inner),
1655 crate::operation::describe_test_execution::DescribeTestExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1656 }
1657 }
1658}
1659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_set::DescribeTestSetError, R>> for Error
1660where
1661 R: Send + Sync + std::fmt::Debug + 'static,
1662{
1663 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_set::DescribeTestSetError, R>) -> Self {
1664 match err {
1665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1668 source: err.into(),
1669 }),
1670 }
1671 }
1672}
1673impl From<crate::operation::describe_test_set::DescribeTestSetError> for Error {
1674 fn from(err: crate::operation::describe_test_set::DescribeTestSetError) -> Self {
1675 match err {
1676 crate::operation::describe_test_set::DescribeTestSetError::InternalServerException(inner) => Error::InternalServerException(inner),
1677 crate::operation::describe_test_set::DescribeTestSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1678 crate::operation::describe_test_set::DescribeTestSetError::ServiceQuotaExceededException(inner) => {
1679 Error::ServiceQuotaExceededException(inner)
1680 }
1681 crate::operation::describe_test_set::DescribeTestSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1682 crate::operation::describe_test_set::DescribeTestSetError::ValidationException(inner) => Error::ValidationException(inner),
1683 crate::operation::describe_test_set::DescribeTestSetError::Unhandled(inner) => Error::Unhandled(inner),
1684 }
1685 }
1686}
1687impl<R>
1688 From<
1689 ::aws_smithy_runtime_api::client::result::SdkError<
1690 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError,
1691 R,
1692 >,
1693 > for Error
1694where
1695 R: Send + Sync + std::fmt::Debug + 'static,
1696{
1697 fn from(
1698 err: ::aws_smithy_runtime_api::client::result::SdkError<
1699 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError,
1700 R,
1701 >,
1702 ) -> Self {
1703 match err {
1704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1707 source: err.into(),
1708 }),
1709 }
1710 }
1711}
1712impl From<crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError> for Error {
1713 fn from(err: crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError) -> Self {
1714 match err {
1715 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::InternalServerException(inner) => {
1716 Error::InternalServerException(inner)
1717 }
1718 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::ResourceNotFoundException(inner) => {
1719 Error::ResourceNotFoundException(inner)
1720 }
1721 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::ServiceQuotaExceededException(inner) => {
1722 Error::ServiceQuotaExceededException(inner)
1723 }
1724 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::ThrottlingException(inner) => {
1725 Error::ThrottlingException(inner)
1726 }
1727 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::ValidationException(inner) => {
1728 Error::ValidationException(inner)
1729 }
1730 crate::operation::describe_test_set_discrepancy_report::DescribeTestSetDiscrepancyReportError::Unhandled(inner) => {
1731 Error::Unhandled(inner)
1732 }
1733 }
1734 }
1735}
1736impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_set_generation::DescribeTestSetGenerationError, R>>
1737 for Error
1738where
1739 R: Send + Sync + std::fmt::Debug + 'static,
1740{
1741 fn from(
1742 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_set_generation::DescribeTestSetGenerationError, R>,
1743 ) -> Self {
1744 match err {
1745 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1746 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1747 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1748 source: err.into(),
1749 }),
1750 }
1751 }
1752}
1753impl From<crate::operation::describe_test_set_generation::DescribeTestSetGenerationError> for Error {
1754 fn from(err: crate::operation::describe_test_set_generation::DescribeTestSetGenerationError) -> Self {
1755 match err {
1756 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::InternalServerException(inner) => {
1757 Error::InternalServerException(inner)
1758 }
1759 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::ResourceNotFoundException(inner) => {
1760 Error::ResourceNotFoundException(inner)
1761 }
1762 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::ServiceQuotaExceededException(inner) => {
1763 Error::ServiceQuotaExceededException(inner)
1764 }
1765 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::ThrottlingException(inner) => {
1766 Error::ThrottlingException(inner)
1767 }
1768 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::ValidationException(inner) => {
1769 Error::ValidationException(inner)
1770 }
1771 crate::operation::describe_test_set_generation::DescribeTestSetGenerationError::Unhandled(inner) => Error::Unhandled(inner),
1772 }
1773 }
1774}
1775impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_bot_element::GenerateBotElementError, R>> for Error
1776where
1777 R: Send + Sync + std::fmt::Debug + 'static,
1778{
1779 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_bot_element::GenerateBotElementError, R>) -> Self {
1780 match err {
1781 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1782 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1783 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1784 source: err.into(),
1785 }),
1786 }
1787 }
1788}
1789impl From<crate::operation::generate_bot_element::GenerateBotElementError> for Error {
1790 fn from(err: crate::operation::generate_bot_element::GenerateBotElementError) -> Self {
1791 match err {
1792 crate::operation::generate_bot_element::GenerateBotElementError::ConflictException(inner) => Error::ConflictException(inner),
1793 crate::operation::generate_bot_element::GenerateBotElementError::InternalServerException(inner) => Error::InternalServerException(inner),
1794 crate::operation::generate_bot_element::GenerateBotElementError::PreconditionFailedException(inner) => {
1795 Error::PreconditionFailedException(inner)
1796 }
1797 crate::operation::generate_bot_element::GenerateBotElementError::ResourceNotFoundException(inner) => {
1798 Error::ResourceNotFoundException(inner)
1799 }
1800 crate::operation::generate_bot_element::GenerateBotElementError::ServiceQuotaExceededException(inner) => {
1801 Error::ServiceQuotaExceededException(inner)
1802 }
1803 crate::operation::generate_bot_element::GenerateBotElementError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1804 crate::operation::generate_bot_element::GenerateBotElementError::ValidationException(inner) => Error::ValidationException(inner),
1805 crate::operation::generate_bot_element::GenerateBotElementError::Unhandled(inner) => Error::Unhandled(inner),
1806 }
1807 }
1808}
1809impl<R>
1810 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError, R>>
1811 for Error
1812where
1813 R: Send + Sync + std::fmt::Debug + 'static,
1814{
1815 fn from(
1816 err: ::aws_smithy_runtime_api::client::result::SdkError<
1817 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError,
1818 R,
1819 >,
1820 ) -> Self {
1821 match err {
1822 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1823 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1824 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1825 source: err.into(),
1826 }),
1827 }
1828 }
1829}
1830impl From<crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError> for Error {
1831 fn from(err: crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError) -> Self {
1832 match err {
1833 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::InternalServerException(inner) => {
1834 Error::InternalServerException(inner)
1835 }
1836 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::ResourceNotFoundException(inner) => {
1837 Error::ResourceNotFoundException(inner)
1838 }
1839 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::ServiceQuotaExceededException(inner) => {
1840 Error::ServiceQuotaExceededException(inner)
1841 }
1842 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::ThrottlingException(inner) => {
1843 Error::ThrottlingException(inner)
1844 }
1845 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::ValidationException(inner) => {
1846 Error::ValidationException(inner)
1847 }
1848 crate::operation::get_test_execution_artifacts_url::GetTestExecutionArtifactsUrlError::Unhandled(inner) => Error::Unhandled(inner),
1849 }
1850 }
1851}
1852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError, R>>
1853 for Error
1854where
1855 R: Send + Sync + std::fmt::Debug + 'static,
1856{
1857 fn from(
1858 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError, R>,
1859 ) -> Self {
1860 match err {
1861 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1862 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1863 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1864 source: err.into(),
1865 }),
1866 }
1867 }
1868}
1869impl From<crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError> for Error {
1870 fn from(err: crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError) -> Self {
1871 match err {
1872 crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::InternalServerException(inner) => {
1873 Error::InternalServerException(inner)
1874 }
1875 crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::PreconditionFailedException(inner) => {
1876 Error::PreconditionFailedException(inner)
1877 }
1878 crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::ThrottlingException(inner) => {
1879 Error::ThrottlingException(inner)
1880 }
1881 crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::ValidationException(inner) => {
1882 Error::ValidationException(inner)
1883 }
1884 crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::Unhandled(inner) => Error::Unhandled(inner),
1885 }
1886 }
1887}
1888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_aliases::ListBotAliasesError, R>> for Error
1889where
1890 R: Send + Sync + std::fmt::Debug + 'static,
1891{
1892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_aliases::ListBotAliasesError, R>) -> Self {
1893 match err {
1894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1897 source: err.into(),
1898 }),
1899 }
1900 }
1901}
1902impl From<crate::operation::list_bot_aliases::ListBotAliasesError> for Error {
1903 fn from(err: crate::operation::list_bot_aliases::ListBotAliasesError) -> Self {
1904 match err {
1905 crate::operation::list_bot_aliases::ListBotAliasesError::InternalServerException(inner) => Error::InternalServerException(inner),
1906 crate::operation::list_bot_aliases::ListBotAliasesError::ServiceQuotaExceededException(inner) => {
1907 Error::ServiceQuotaExceededException(inner)
1908 }
1909 crate::operation::list_bot_aliases::ListBotAliasesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1910 crate::operation::list_bot_aliases::ListBotAliasesError::ValidationException(inner) => Error::ValidationException(inner),
1911 crate::operation::list_bot_aliases::ListBotAliasesError::Unhandled(inner) => Error::Unhandled(inner),
1912 }
1913 }
1914}
1915impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError, R>> for Error
1916where
1917 R: Send + Sync + std::fmt::Debug + 'static,
1918{
1919 fn from(
1920 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError, R>,
1921 ) -> Self {
1922 match err {
1923 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1924 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1925 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1926 source: err.into(),
1927 }),
1928 }
1929 }
1930}
1931impl From<crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError> for Error {
1932 fn from(err: crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError) -> Self {
1933 match err {
1934 crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError::InternalServerException(inner) => {
1935 Error::InternalServerException(inner)
1936 }
1937 crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError::ServiceQuotaExceededException(inner) => {
1938 Error::ServiceQuotaExceededException(inner)
1939 }
1940 crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1941 crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError::ValidationException(inner) => Error::ValidationException(inner),
1942 crate::operation::list_bot_alias_replicas::ListBotAliasReplicasError::Unhandled(inner) => Error::Unhandled(inner),
1943 }
1944 }
1945}
1946impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_analyzer_history::ListBotAnalyzerHistoryError, R>>
1947 for Error
1948where
1949 R: Send + Sync + std::fmt::Debug + 'static,
1950{
1951 fn from(
1952 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_analyzer_history::ListBotAnalyzerHistoryError, R>,
1953 ) -> Self {
1954 match err {
1955 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1956 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1957 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1958 source: err.into(),
1959 }),
1960 }
1961 }
1962}
1963impl From<crate::operation::list_bot_analyzer_history::ListBotAnalyzerHistoryError> for Error {
1964 fn from(err: crate::operation::list_bot_analyzer_history::ListBotAnalyzerHistoryError) -> Self {
1965 match err {
1966 crate::operation::list_bot_analyzer_history::ListBotAnalyzerHistoryError::InternalServerException(inner) => {
1967 Error::InternalServerException(inner)
1968 }
1969 crate::operation::list_bot_analyzer_history::ListBotAnalyzerHistoryError::ResourceNotFoundException(inner) => {
1970 Error::ResourceNotFoundException(inner)
1971 }
1972 crate::operation::list_bot_analyzer_history::ListBotAnalyzerHistoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1973 crate::operation::list_bot_analyzer_history::ListBotAnalyzerHistoryError::ValidationException(inner) => Error::ValidationException(inner),
1974 crate::operation::list_bot_analyzer_history::ListBotAnalyzerHistoryError::Unhandled(inner) => Error::Unhandled(inner),
1975 }
1976 }
1977}
1978impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_locales::ListBotLocalesError, R>> for Error
1979where
1980 R: Send + Sync + std::fmt::Debug + 'static,
1981{
1982 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_locales::ListBotLocalesError, R>) -> Self {
1983 match err {
1984 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1985 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1986 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1987 source: err.into(),
1988 }),
1989 }
1990 }
1991}
1992impl From<crate::operation::list_bot_locales::ListBotLocalesError> for Error {
1993 fn from(err: crate::operation::list_bot_locales::ListBotLocalesError) -> Self {
1994 match err {
1995 crate::operation::list_bot_locales::ListBotLocalesError::InternalServerException(inner) => Error::InternalServerException(inner),
1996 crate::operation::list_bot_locales::ListBotLocalesError::ServiceQuotaExceededException(inner) => {
1997 Error::ServiceQuotaExceededException(inner)
1998 }
1999 crate::operation::list_bot_locales::ListBotLocalesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2000 crate::operation::list_bot_locales::ListBotLocalesError::ValidationException(inner) => Error::ValidationException(inner),
2001 crate::operation::list_bot_locales::ListBotLocalesError::Unhandled(inner) => Error::Unhandled(inner),
2002 }
2003 }
2004}
2005impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_recommendations::ListBotRecommendationsError, R>> for Error
2006where
2007 R: Send + Sync + std::fmt::Debug + 'static,
2008{
2009 fn from(
2010 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_recommendations::ListBotRecommendationsError, R>,
2011 ) -> Self {
2012 match err {
2013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2016 source: err.into(),
2017 }),
2018 }
2019 }
2020}
2021impl From<crate::operation::list_bot_recommendations::ListBotRecommendationsError> for Error {
2022 fn from(err: crate::operation::list_bot_recommendations::ListBotRecommendationsError) -> Self {
2023 match err {
2024 crate::operation::list_bot_recommendations::ListBotRecommendationsError::InternalServerException(inner) => {
2025 Error::InternalServerException(inner)
2026 }
2027 crate::operation::list_bot_recommendations::ListBotRecommendationsError::ResourceNotFoundException(inner) => {
2028 Error::ResourceNotFoundException(inner)
2029 }
2030 crate::operation::list_bot_recommendations::ListBotRecommendationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2031 crate::operation::list_bot_recommendations::ListBotRecommendationsError::ValidationException(inner) => Error::ValidationException(inner),
2032 crate::operation::list_bot_recommendations::ListBotRecommendationsError::Unhandled(inner) => Error::Unhandled(inner),
2033 }
2034 }
2035}
2036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_replicas::ListBotReplicasError, R>> for Error
2037where
2038 R: Send + Sync + std::fmt::Debug + 'static,
2039{
2040 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_replicas::ListBotReplicasError, R>) -> Self {
2041 match err {
2042 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2043 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2044 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2045 source: err.into(),
2046 }),
2047 }
2048 }
2049}
2050impl From<crate::operation::list_bot_replicas::ListBotReplicasError> for Error {
2051 fn from(err: crate::operation::list_bot_replicas::ListBotReplicasError) -> Self {
2052 match err {
2053 crate::operation::list_bot_replicas::ListBotReplicasError::InternalServerException(inner) => Error::InternalServerException(inner),
2054 crate::operation::list_bot_replicas::ListBotReplicasError::ServiceQuotaExceededException(inner) => {
2055 Error::ServiceQuotaExceededException(inner)
2056 }
2057 crate::operation::list_bot_replicas::ListBotReplicasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2058 crate::operation::list_bot_replicas::ListBotReplicasError::ValidationException(inner) => Error::ValidationException(inner),
2059 crate::operation::list_bot_replicas::ListBotReplicasError::Unhandled(inner) => Error::Unhandled(inner),
2060 }
2061 }
2062}
2063impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError, R>>
2064 for Error
2065where
2066 R: Send + Sync + std::fmt::Debug + 'static,
2067{
2068 fn from(
2069 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError, R>,
2070 ) -> Self {
2071 match err {
2072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2075 source: err.into(),
2076 }),
2077 }
2078 }
2079}
2080impl From<crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError> for Error {
2081 fn from(err: crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError) -> Self {
2082 match err {
2083 crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError::InternalServerException(inner) => {
2084 Error::InternalServerException(inner)
2085 }
2086 crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError::ResourceNotFoundException(inner) => {
2087 Error::ResourceNotFoundException(inner)
2088 }
2089 crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError::ThrottlingException(inner) => {
2090 Error::ThrottlingException(inner)
2091 }
2092 crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError::ValidationException(inner) => {
2093 Error::ValidationException(inner)
2094 }
2095 crate::operation::list_bot_resource_generations::ListBotResourceGenerationsError::Unhandled(inner) => Error::Unhandled(inner),
2096 }
2097 }
2098}
2099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>> for Error
2100where
2101 R: Send + Sync + std::fmt::Debug + 'static,
2102{
2103 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>) -> Self {
2104 match err {
2105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2108 source: err.into(),
2109 }),
2110 }
2111 }
2112}
2113impl From<crate::operation::list_bots::ListBotsError> for Error {
2114 fn from(err: crate::operation::list_bots::ListBotsError) -> Self {
2115 match err {
2116 crate::operation::list_bots::ListBotsError::InternalServerException(inner) => Error::InternalServerException(inner),
2117 crate::operation::list_bots::ListBotsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2118 crate::operation::list_bots::ListBotsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2119 crate::operation::list_bots::ListBotsError::ValidationException(inner) => Error::ValidationException(inner),
2120 crate::operation::list_bots::ListBotsError::Unhandled(inner) => Error::Unhandled(inner),
2121 }
2122 }
2123}
2124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_version_replicas::ListBotVersionReplicasError, R>>
2125 for Error
2126where
2127 R: Send + Sync + std::fmt::Debug + 'static,
2128{
2129 fn from(
2130 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_version_replicas::ListBotVersionReplicasError, R>,
2131 ) -> Self {
2132 match err {
2133 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2134 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2135 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2136 source: err.into(),
2137 }),
2138 }
2139 }
2140}
2141impl From<crate::operation::list_bot_version_replicas::ListBotVersionReplicasError> for Error {
2142 fn from(err: crate::operation::list_bot_version_replicas::ListBotVersionReplicasError) -> Self {
2143 match err {
2144 crate::operation::list_bot_version_replicas::ListBotVersionReplicasError::InternalServerException(inner) => {
2145 Error::InternalServerException(inner)
2146 }
2147 crate::operation::list_bot_version_replicas::ListBotVersionReplicasError::ServiceQuotaExceededException(inner) => {
2148 Error::ServiceQuotaExceededException(inner)
2149 }
2150 crate::operation::list_bot_version_replicas::ListBotVersionReplicasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2151 crate::operation::list_bot_version_replicas::ListBotVersionReplicasError::ValidationException(inner) => Error::ValidationException(inner),
2152 crate::operation::list_bot_version_replicas::ListBotVersionReplicasError::Unhandled(inner) => Error::Unhandled(inner),
2153 }
2154 }
2155}
2156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_versions::ListBotVersionsError, R>> for Error
2157where
2158 R: Send + Sync + std::fmt::Debug + 'static,
2159{
2160 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bot_versions::ListBotVersionsError, R>) -> Self {
2161 match err {
2162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2165 source: err.into(),
2166 }),
2167 }
2168 }
2169}
2170impl From<crate::operation::list_bot_versions::ListBotVersionsError> for Error {
2171 fn from(err: crate::operation::list_bot_versions::ListBotVersionsError) -> Self {
2172 match err {
2173 crate::operation::list_bot_versions::ListBotVersionsError::InternalServerException(inner) => Error::InternalServerException(inner),
2174 crate::operation::list_bot_versions::ListBotVersionsError::ServiceQuotaExceededException(inner) => {
2175 Error::ServiceQuotaExceededException(inner)
2176 }
2177 crate::operation::list_bot_versions::ListBotVersionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2178 crate::operation::list_bot_versions::ListBotVersionsError::ValidationException(inner) => Error::ValidationException(inner),
2179 crate::operation::list_bot_versions::ListBotVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2180 }
2181 }
2182}
2183impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_built_in_intents::ListBuiltInIntentsError, R>> for Error
2184where
2185 R: Send + Sync + std::fmt::Debug + 'static,
2186{
2187 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_built_in_intents::ListBuiltInIntentsError, R>) -> Self {
2188 match err {
2189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2192 source: err.into(),
2193 }),
2194 }
2195 }
2196}
2197impl From<crate::operation::list_built_in_intents::ListBuiltInIntentsError> for Error {
2198 fn from(err: crate::operation::list_built_in_intents::ListBuiltInIntentsError) -> Self {
2199 match err {
2200 crate::operation::list_built_in_intents::ListBuiltInIntentsError::InternalServerException(inner) => Error::InternalServerException(inner),
2201 crate::operation::list_built_in_intents::ListBuiltInIntentsError::ServiceQuotaExceededException(inner) => {
2202 Error::ServiceQuotaExceededException(inner)
2203 }
2204 crate::operation::list_built_in_intents::ListBuiltInIntentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2205 crate::operation::list_built_in_intents::ListBuiltInIntentsError::ValidationException(inner) => Error::ValidationException(inner),
2206 crate::operation::list_built_in_intents::ListBuiltInIntentsError::Unhandled(inner) => Error::Unhandled(inner),
2207 }
2208 }
2209}
2210impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError, R>> for Error
2211where
2212 R: Send + Sync + std::fmt::Debug + 'static,
2213{
2214 fn from(
2215 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError, R>,
2216 ) -> Self {
2217 match err {
2218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2221 source: err.into(),
2222 }),
2223 }
2224 }
2225}
2226impl From<crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError> for Error {
2227 fn from(err: crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError) -> Self {
2228 match err {
2229 crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::InternalServerException(inner) => {
2230 Error::InternalServerException(inner)
2231 }
2232 crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::ServiceQuotaExceededException(inner) => {
2233 Error::ServiceQuotaExceededException(inner)
2234 }
2235 crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2236 crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::ValidationException(inner) => Error::ValidationException(inner),
2237 crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::Unhandled(inner) => Error::Unhandled(inner),
2238 }
2239 }
2240}
2241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError, R>>
2242 for Error
2243where
2244 R: Send + Sync + std::fmt::Debug + 'static,
2245{
2246 fn from(
2247 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError, R>,
2248 ) -> Self {
2249 match err {
2250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2253 source: err.into(),
2254 }),
2255 }
2256 }
2257}
2258impl From<crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError> for Error {
2259 fn from(err: crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError) -> Self {
2260 match err {
2261 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::InternalServerException(inner) => {
2262 Error::InternalServerException(inner)
2263 }
2264 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ResourceNotFoundException(inner) => {
2265 Error::ResourceNotFoundException(inner)
2266 }
2267 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ServiceQuotaExceededException(inner) => {
2268 Error::ServiceQuotaExceededException(inner)
2269 }
2270 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ThrottlingException(inner) => {
2271 Error::ThrottlingException(inner)
2272 }
2273 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ValidationException(inner) => {
2274 Error::ValidationException(inner)
2275 }
2276 crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::Unhandled(inner) => Error::Unhandled(inner),
2277 }
2278 }
2279}
2280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_exports::ListExportsError, R>> for Error
2281where
2282 R: Send + Sync + std::fmt::Debug + 'static,
2283{
2284 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_exports::ListExportsError, R>) -> Self {
2285 match err {
2286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2289 source: err.into(),
2290 }),
2291 }
2292 }
2293}
2294impl From<crate::operation::list_exports::ListExportsError> for Error {
2295 fn from(err: crate::operation::list_exports::ListExportsError) -> Self {
2296 match err {
2297 crate::operation::list_exports::ListExportsError::InternalServerException(inner) => Error::InternalServerException(inner),
2298 crate::operation::list_exports::ListExportsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2299 crate::operation::list_exports::ListExportsError::ValidationException(inner) => Error::ValidationException(inner),
2300 crate::operation::list_exports::ListExportsError::Unhandled(inner) => Error::Unhandled(inner),
2301 }
2302 }
2303}
2304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_imports::ListImportsError, R>> for Error
2305where
2306 R: Send + Sync + std::fmt::Debug + 'static,
2307{
2308 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_imports::ListImportsError, R>) -> Self {
2309 match err {
2310 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2311 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2312 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2313 source: err.into(),
2314 }),
2315 }
2316 }
2317}
2318impl From<crate::operation::list_imports::ListImportsError> for Error {
2319 fn from(err: crate::operation::list_imports::ListImportsError) -> Self {
2320 match err {
2321 crate::operation::list_imports::ListImportsError::InternalServerException(inner) => Error::InternalServerException(inner),
2322 crate::operation::list_imports::ListImportsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2323 crate::operation::list_imports::ListImportsError::ValidationException(inner) => Error::ValidationException(inner),
2324 crate::operation::list_imports::ListImportsError::Unhandled(inner) => Error::Unhandled(inner),
2325 }
2326 }
2327}
2328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_metrics::ListIntentMetricsError, R>> for Error
2329where
2330 R: Send + Sync + std::fmt::Debug + 'static,
2331{
2332 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_metrics::ListIntentMetricsError, R>) -> 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_intent_metrics::ListIntentMetricsError> for Error {
2343 fn from(err: crate::operation::list_intent_metrics::ListIntentMetricsError) -> Self {
2344 match err {
2345 crate::operation::list_intent_metrics::ListIntentMetricsError::InternalServerException(inner) => Error::InternalServerException(inner),
2346 crate::operation::list_intent_metrics::ListIntentMetricsError::PreconditionFailedException(inner) => {
2347 Error::PreconditionFailedException(inner)
2348 }
2349 crate::operation::list_intent_metrics::ListIntentMetricsError::ServiceQuotaExceededException(inner) => {
2350 Error::ServiceQuotaExceededException(inner)
2351 }
2352 crate::operation::list_intent_metrics::ListIntentMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2353 crate::operation::list_intent_metrics::ListIntentMetricsError::ValidationException(inner) => Error::ValidationException(inner),
2354 crate::operation::list_intent_metrics::ListIntentMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2355 }
2356 }
2357}
2358impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_paths::ListIntentPathsError, R>> for Error
2359where
2360 R: Send + Sync + std::fmt::Debug + 'static,
2361{
2362 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_paths::ListIntentPathsError, R>) -> Self {
2363 match err {
2364 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2365 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2366 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2367 source: err.into(),
2368 }),
2369 }
2370 }
2371}
2372impl From<crate::operation::list_intent_paths::ListIntentPathsError> for Error {
2373 fn from(err: crate::operation::list_intent_paths::ListIntentPathsError) -> Self {
2374 match err {
2375 crate::operation::list_intent_paths::ListIntentPathsError::InternalServerException(inner) => Error::InternalServerException(inner),
2376 crate::operation::list_intent_paths::ListIntentPathsError::PreconditionFailedException(inner) => {
2377 Error::PreconditionFailedException(inner)
2378 }
2379 crate::operation::list_intent_paths::ListIntentPathsError::ServiceQuotaExceededException(inner) => {
2380 Error::ServiceQuotaExceededException(inner)
2381 }
2382 crate::operation::list_intent_paths::ListIntentPathsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2383 crate::operation::list_intent_paths::ListIntentPathsError::ValidationException(inner) => Error::ValidationException(inner),
2384 crate::operation::list_intent_paths::ListIntentPathsError::Unhandled(inner) => Error::Unhandled(inner),
2385 }
2386 }
2387}
2388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intents::ListIntentsError, R>> for Error
2389where
2390 R: Send + Sync + std::fmt::Debug + 'static,
2391{
2392 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intents::ListIntentsError, R>) -> Self {
2393 match err {
2394 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2395 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2396 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2397 source: err.into(),
2398 }),
2399 }
2400 }
2401}
2402impl From<crate::operation::list_intents::ListIntentsError> for Error {
2403 fn from(err: crate::operation::list_intents::ListIntentsError) -> Self {
2404 match err {
2405 crate::operation::list_intents::ListIntentsError::InternalServerException(inner) => Error::InternalServerException(inner),
2406 crate::operation::list_intents::ListIntentsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2407 crate::operation::list_intents::ListIntentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2408 crate::operation::list_intents::ListIntentsError::ValidationException(inner) => Error::ValidationException(inner),
2409 crate::operation::list_intents::ListIntentsError::Unhandled(inner) => Error::Unhandled(inner),
2410 }
2411 }
2412}
2413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError, R>>
2414 for Error
2415where
2416 R: Send + Sync + std::fmt::Debug + 'static,
2417{
2418 fn from(
2419 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError, R>,
2420 ) -> Self {
2421 match err {
2422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2425 source: err.into(),
2426 }),
2427 }
2428 }
2429}
2430impl From<crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError> for Error {
2431 fn from(err: crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError) -> Self {
2432 match err {
2433 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::InternalServerException(inner) => {
2434 Error::InternalServerException(inner)
2435 }
2436 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::PreconditionFailedException(inner) => {
2437 Error::PreconditionFailedException(inner)
2438 }
2439 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::ServiceQuotaExceededException(inner) => {
2440 Error::ServiceQuotaExceededException(inner)
2441 }
2442 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2443 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::ValidationException(inner) => Error::ValidationException(inner),
2444 crate::operation::list_intent_stage_metrics::ListIntentStageMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2445 }
2446 }
2447}
2448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommended_intents::ListRecommendedIntentsError, R>> for Error
2449where
2450 R: Send + Sync + std::fmt::Debug + 'static,
2451{
2452 fn from(
2453 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommended_intents::ListRecommendedIntentsError, R>,
2454 ) -> Self {
2455 match err {
2456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2459 source: err.into(),
2460 }),
2461 }
2462 }
2463}
2464impl From<crate::operation::list_recommended_intents::ListRecommendedIntentsError> for Error {
2465 fn from(err: crate::operation::list_recommended_intents::ListRecommendedIntentsError) -> Self {
2466 match err {
2467 crate::operation::list_recommended_intents::ListRecommendedIntentsError::InternalServerException(inner) => {
2468 Error::InternalServerException(inner)
2469 }
2470 crate::operation::list_recommended_intents::ListRecommendedIntentsError::ResourceNotFoundException(inner) => {
2471 Error::ResourceNotFoundException(inner)
2472 }
2473 crate::operation::list_recommended_intents::ListRecommendedIntentsError::ServiceQuotaExceededException(inner) => {
2474 Error::ServiceQuotaExceededException(inner)
2475 }
2476 crate::operation::list_recommended_intents::ListRecommendedIntentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2477 crate::operation::list_recommended_intents::ListRecommendedIntentsError::ValidationException(inner) => Error::ValidationException(inner),
2478 crate::operation::list_recommended_intents::ListRecommendedIntentsError::Unhandled(inner) => Error::Unhandled(inner),
2479 }
2480 }
2481}
2482impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError, R>>
2483 for Error
2484where
2485 R: Send + Sync + std::fmt::Debug + 'static,
2486{
2487 fn from(
2488 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError, R>,
2489 ) -> Self {
2490 match err {
2491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2494 source: err.into(),
2495 }),
2496 }
2497 }
2498}
2499impl From<crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError> for Error {
2500 fn from(err: crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError) -> Self {
2501 match err {
2502 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::InternalServerException(inner) => {
2503 Error::InternalServerException(inner)
2504 }
2505 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::PreconditionFailedException(inner) => {
2506 Error::PreconditionFailedException(inner)
2507 }
2508 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::ServiceQuotaExceededException(inner) => {
2509 Error::ServiceQuotaExceededException(inner)
2510 }
2511 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::ThrottlingException(inner) => {
2512 Error::ThrottlingException(inner)
2513 }
2514 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::ValidationException(inner) => {
2515 Error::ValidationException(inner)
2516 }
2517 crate::operation::list_session_analytics_data::ListSessionAnalyticsDataError::Unhandled(inner) => Error::Unhandled(inner),
2518 }
2519 }
2520}
2521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_metrics::ListSessionMetricsError, R>> for Error
2522where
2523 R: Send + Sync + std::fmt::Debug + 'static,
2524{
2525 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_metrics::ListSessionMetricsError, R>) -> Self {
2526 match err {
2527 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2528 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2529 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2530 source: err.into(),
2531 }),
2532 }
2533 }
2534}
2535impl From<crate::operation::list_session_metrics::ListSessionMetricsError> for Error {
2536 fn from(err: crate::operation::list_session_metrics::ListSessionMetricsError) -> Self {
2537 match err {
2538 crate::operation::list_session_metrics::ListSessionMetricsError::InternalServerException(inner) => Error::InternalServerException(inner),
2539 crate::operation::list_session_metrics::ListSessionMetricsError::PreconditionFailedException(inner) => {
2540 Error::PreconditionFailedException(inner)
2541 }
2542 crate::operation::list_session_metrics::ListSessionMetricsError::ServiceQuotaExceededException(inner) => {
2543 Error::ServiceQuotaExceededException(inner)
2544 }
2545 crate::operation::list_session_metrics::ListSessionMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2546 crate::operation::list_session_metrics::ListSessionMetricsError::ValidationException(inner) => Error::ValidationException(inner),
2547 crate::operation::list_session_metrics::ListSessionMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2548 }
2549 }
2550}
2551impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_slots::ListSlotsError, R>> for Error
2552where
2553 R: Send + Sync + std::fmt::Debug + 'static,
2554{
2555 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_slots::ListSlotsError, R>) -> Self {
2556 match err {
2557 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2558 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2559 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2560 source: err.into(),
2561 }),
2562 }
2563 }
2564}
2565impl From<crate::operation::list_slots::ListSlotsError> for Error {
2566 fn from(err: crate::operation::list_slots::ListSlotsError) -> Self {
2567 match err {
2568 crate::operation::list_slots::ListSlotsError::InternalServerException(inner) => Error::InternalServerException(inner),
2569 crate::operation::list_slots::ListSlotsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2570 crate::operation::list_slots::ListSlotsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2571 crate::operation::list_slots::ListSlotsError::ValidationException(inner) => Error::ValidationException(inner),
2572 crate::operation::list_slots::ListSlotsError::Unhandled(inner) => Error::Unhandled(inner),
2573 }
2574 }
2575}
2576impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_slot_types::ListSlotTypesError, R>> for Error
2577where
2578 R: Send + Sync + std::fmt::Debug + 'static,
2579{
2580 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_slot_types::ListSlotTypesError, R>) -> Self {
2581 match err {
2582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2585 source: err.into(),
2586 }),
2587 }
2588 }
2589}
2590impl From<crate::operation::list_slot_types::ListSlotTypesError> for Error {
2591 fn from(err: crate::operation::list_slot_types::ListSlotTypesError) -> Self {
2592 match err {
2593 crate::operation::list_slot_types::ListSlotTypesError::InternalServerException(inner) => Error::InternalServerException(inner),
2594 crate::operation::list_slot_types::ListSlotTypesError::ServiceQuotaExceededException(inner) => {
2595 Error::ServiceQuotaExceededException(inner)
2596 }
2597 crate::operation::list_slot_types::ListSlotTypesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2598 crate::operation::list_slot_types::ListSlotTypesError::ValidationException(inner) => Error::ValidationException(inner),
2599 crate::operation::list_slot_types::ListSlotTypesError::Unhandled(inner) => Error::Unhandled(inner),
2600 }
2601 }
2602}
2603impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2604where
2605 R: Send + Sync + std::fmt::Debug + 'static,
2606{
2607 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2608 match err {
2609 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2610 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2611 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2612 source: err.into(),
2613 }),
2614 }
2615 }
2616}
2617impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2618 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2619 match err {
2620 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
2621 Error::InternalServerException(inner)
2622 }
2623 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2624 Error::ResourceNotFoundException(inner)
2625 }
2626 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2627 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2628 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2629 }
2630 }
2631}
2632impl<R>
2633 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError, R>>
2634 for Error
2635where
2636 R: Send + Sync + std::fmt::Debug + 'static,
2637{
2638 fn from(
2639 err: ::aws_smithy_runtime_api::client::result::SdkError<
2640 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError,
2641 R,
2642 >,
2643 ) -> Self {
2644 match err {
2645 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2646 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2647 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2648 source: err.into(),
2649 }),
2650 }
2651 }
2652}
2653impl From<crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError> for Error {
2654 fn from(err: crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError) -> Self {
2655 match err {
2656 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::InternalServerException(inner) => {
2657 Error::InternalServerException(inner)
2658 }
2659 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::ResourceNotFoundException(inner) => {
2660 Error::ResourceNotFoundException(inner)
2661 }
2662 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::ServiceQuotaExceededException(inner) => {
2663 Error::ServiceQuotaExceededException(inner)
2664 }
2665 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::ThrottlingException(inner) => {
2666 Error::ThrottlingException(inner)
2667 }
2668 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::ValidationException(inner) => {
2669 Error::ValidationException(inner)
2670 }
2671 crate::operation::list_test_execution_result_items::ListTestExecutionResultItemsError::Unhandled(inner) => Error::Unhandled(inner),
2672 }
2673 }
2674}
2675impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_executions::ListTestExecutionsError, R>> for Error
2676where
2677 R: Send + Sync + std::fmt::Debug + 'static,
2678{
2679 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_executions::ListTestExecutionsError, R>) -> Self {
2680 match err {
2681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2684 source: err.into(),
2685 }),
2686 }
2687 }
2688}
2689impl From<crate::operation::list_test_executions::ListTestExecutionsError> for Error {
2690 fn from(err: crate::operation::list_test_executions::ListTestExecutionsError) -> Self {
2691 match err {
2692 crate::operation::list_test_executions::ListTestExecutionsError::InternalServerException(inner) => Error::InternalServerException(inner),
2693 crate::operation::list_test_executions::ListTestExecutionsError::ServiceQuotaExceededException(inner) => {
2694 Error::ServiceQuotaExceededException(inner)
2695 }
2696 crate::operation::list_test_executions::ListTestExecutionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2697 crate::operation::list_test_executions::ListTestExecutionsError::ValidationException(inner) => Error::ValidationException(inner),
2698 crate::operation::list_test_executions::ListTestExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
2699 }
2700 }
2701}
2702impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_set_records::ListTestSetRecordsError, R>> for Error
2703where
2704 R: Send + Sync + std::fmt::Debug + 'static,
2705{
2706 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_set_records::ListTestSetRecordsError, R>) -> Self {
2707 match err {
2708 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2709 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2710 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2711 source: err.into(),
2712 }),
2713 }
2714 }
2715}
2716impl From<crate::operation::list_test_set_records::ListTestSetRecordsError> for Error {
2717 fn from(err: crate::operation::list_test_set_records::ListTestSetRecordsError) -> Self {
2718 match err {
2719 crate::operation::list_test_set_records::ListTestSetRecordsError::InternalServerException(inner) => Error::InternalServerException(inner),
2720 crate::operation::list_test_set_records::ListTestSetRecordsError::ResourceNotFoundException(inner) => {
2721 Error::ResourceNotFoundException(inner)
2722 }
2723 crate::operation::list_test_set_records::ListTestSetRecordsError::ServiceQuotaExceededException(inner) => {
2724 Error::ServiceQuotaExceededException(inner)
2725 }
2726 crate::operation::list_test_set_records::ListTestSetRecordsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2727 crate::operation::list_test_set_records::ListTestSetRecordsError::ValidationException(inner) => Error::ValidationException(inner),
2728 crate::operation::list_test_set_records::ListTestSetRecordsError::Unhandled(inner) => Error::Unhandled(inner),
2729 }
2730 }
2731}
2732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_sets::ListTestSetsError, R>> for Error
2733where
2734 R: Send + Sync + std::fmt::Debug + 'static,
2735{
2736 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_sets::ListTestSetsError, R>) -> Self {
2737 match err {
2738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2741 source: err.into(),
2742 }),
2743 }
2744 }
2745}
2746impl From<crate::operation::list_test_sets::ListTestSetsError> for Error {
2747 fn from(err: crate::operation::list_test_sets::ListTestSetsError) -> Self {
2748 match err {
2749 crate::operation::list_test_sets::ListTestSetsError::InternalServerException(inner) => Error::InternalServerException(inner),
2750 crate::operation::list_test_sets::ListTestSetsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2751 crate::operation::list_test_sets::ListTestSetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2752 crate::operation::list_test_sets::ListTestSetsError::ValidationException(inner) => Error::ValidationException(inner),
2753 crate::operation::list_test_sets::ListTestSetsError::Unhandled(inner) => Error::Unhandled(inner),
2754 }
2755 }
2756}
2757impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError, R>>
2758 for Error
2759where
2760 R: Send + Sync + std::fmt::Debug + 'static,
2761{
2762 fn from(
2763 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError, R>,
2764 ) -> Self {
2765 match err {
2766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2769 source: err.into(),
2770 }),
2771 }
2772 }
2773}
2774impl From<crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError> for Error {
2775 fn from(err: crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError) -> Self {
2776 match err {
2777 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::InternalServerException(inner) => {
2778 Error::InternalServerException(inner)
2779 }
2780 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::PreconditionFailedException(inner) => {
2781 Error::PreconditionFailedException(inner)
2782 }
2783 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::ServiceQuotaExceededException(inner) => {
2784 Error::ServiceQuotaExceededException(inner)
2785 }
2786 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::ThrottlingException(inner) => {
2787 Error::ThrottlingException(inner)
2788 }
2789 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::ValidationException(inner) => {
2790 Error::ValidationException(inner)
2791 }
2792 crate::operation::list_utterance_analytics_data::ListUtteranceAnalyticsDataError::Unhandled(inner) => Error::Unhandled(inner),
2793 }
2794 }
2795}
2796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_utterance_metrics::ListUtteranceMetricsError, R>> for Error
2797where
2798 R: Send + Sync + std::fmt::Debug + 'static,
2799{
2800 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_utterance_metrics::ListUtteranceMetricsError, R>) -> Self {
2801 match err {
2802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2805 source: err.into(),
2806 }),
2807 }
2808 }
2809}
2810impl From<crate::operation::list_utterance_metrics::ListUtteranceMetricsError> for Error {
2811 fn from(err: crate::operation::list_utterance_metrics::ListUtteranceMetricsError) -> Self {
2812 match err {
2813 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::InternalServerException(inner) => {
2814 Error::InternalServerException(inner)
2815 }
2816 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::PreconditionFailedException(inner) => {
2817 Error::PreconditionFailedException(inner)
2818 }
2819 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::ServiceQuotaExceededException(inner) => {
2820 Error::ServiceQuotaExceededException(inner)
2821 }
2822 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2823 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::ValidationException(inner) => Error::ValidationException(inner),
2824 crate::operation::list_utterance_metrics::ListUtteranceMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2825 }
2826 }
2827}
2828impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError, R>>
2829 for Error
2830where
2831 R: Send + Sync + std::fmt::Debug + 'static,
2832{
2833 fn from(
2834 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError, R>,
2835 ) -> Self {
2836 match err {
2837 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2838 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2839 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2840 source: err.into(),
2841 }),
2842 }
2843 }
2844}
2845impl From<crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError> for Error {
2846 fn from(err: crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError) -> Self {
2847 match err {
2848 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::InternalServerException(inner) => {
2849 Error::InternalServerException(inner)
2850 }
2851 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ResourceNotFoundException(inner) => {
2852 Error::ResourceNotFoundException(inner)
2853 }
2854 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ServiceQuotaExceededException(inner) => {
2855 Error::ServiceQuotaExceededException(inner)
2856 }
2857 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ThrottlingException(inner) => {
2858 Error::ThrottlingException(inner)
2859 }
2860 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ValidationException(inner) => {
2861 Error::ValidationException(inner)
2862 }
2863 crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::Unhandled(inner) => Error::Unhandled(inner),
2864 }
2865 }
2866}
2867impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bot_analyzer::StartBotAnalyzerError, R>> for Error
2868where
2869 R: Send + Sync + std::fmt::Debug + 'static,
2870{
2871 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bot_analyzer::StartBotAnalyzerError, R>) -> Self {
2872 match err {
2873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2876 source: err.into(),
2877 }),
2878 }
2879 }
2880}
2881impl From<crate::operation::start_bot_analyzer::StartBotAnalyzerError> for Error {
2882 fn from(err: crate::operation::start_bot_analyzer::StartBotAnalyzerError) -> Self {
2883 match err {
2884 crate::operation::start_bot_analyzer::StartBotAnalyzerError::ConflictException(inner) => Error::ConflictException(inner),
2885 crate::operation::start_bot_analyzer::StartBotAnalyzerError::InternalServerException(inner) => Error::InternalServerException(inner),
2886 crate::operation::start_bot_analyzer::StartBotAnalyzerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2887 crate::operation::start_bot_analyzer::StartBotAnalyzerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2888 crate::operation::start_bot_analyzer::StartBotAnalyzerError::ValidationException(inner) => Error::ValidationException(inner),
2889 crate::operation::start_bot_analyzer::StartBotAnalyzerError::Unhandled(inner) => Error::Unhandled(inner),
2890 }
2891 }
2892}
2893impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bot_recommendation::StartBotRecommendationError, R>> for Error
2894where
2895 R: Send + Sync + std::fmt::Debug + 'static,
2896{
2897 fn from(
2898 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bot_recommendation::StartBotRecommendationError, R>,
2899 ) -> Self {
2900 match err {
2901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2904 source: err.into(),
2905 }),
2906 }
2907 }
2908}
2909impl From<crate::operation::start_bot_recommendation::StartBotRecommendationError> for Error {
2910 fn from(err: crate::operation::start_bot_recommendation::StartBotRecommendationError) -> Self {
2911 match err {
2912 crate::operation::start_bot_recommendation::StartBotRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
2913 crate::operation::start_bot_recommendation::StartBotRecommendationError::InternalServerException(inner) => {
2914 Error::InternalServerException(inner)
2915 }
2916 crate::operation::start_bot_recommendation::StartBotRecommendationError::PreconditionFailedException(inner) => {
2917 Error::PreconditionFailedException(inner)
2918 }
2919 crate::operation::start_bot_recommendation::StartBotRecommendationError::ResourceNotFoundException(inner) => {
2920 Error::ResourceNotFoundException(inner)
2921 }
2922 crate::operation::start_bot_recommendation::StartBotRecommendationError::ServiceQuotaExceededException(inner) => {
2923 Error::ServiceQuotaExceededException(inner)
2924 }
2925 crate::operation::start_bot_recommendation::StartBotRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2926 crate::operation::start_bot_recommendation::StartBotRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
2927 crate::operation::start_bot_recommendation::StartBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
2928 }
2929 }
2930}
2931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bot_resource_generation::StartBotResourceGenerationError, R>>
2932 for Error
2933where
2934 R: Send + Sync + std::fmt::Debug + 'static,
2935{
2936 fn from(
2937 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bot_resource_generation::StartBotResourceGenerationError, R>,
2938 ) -> Self {
2939 match err {
2940 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2941 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2942 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2943 source: err.into(),
2944 }),
2945 }
2946 }
2947}
2948impl From<crate::operation::start_bot_resource_generation::StartBotResourceGenerationError> for Error {
2949 fn from(err: crate::operation::start_bot_resource_generation::StartBotResourceGenerationError) -> Self {
2950 match err {
2951 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::ConflictException(inner) => {
2952 Error::ConflictException(inner)
2953 }
2954 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::InternalServerException(inner) => {
2955 Error::InternalServerException(inner)
2956 }
2957 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::PreconditionFailedException(inner) => {
2958 Error::PreconditionFailedException(inner)
2959 }
2960 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::ServiceQuotaExceededException(inner) => {
2961 Error::ServiceQuotaExceededException(inner)
2962 }
2963 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::ThrottlingException(inner) => {
2964 Error::ThrottlingException(inner)
2965 }
2966 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::ValidationException(inner) => {
2967 Error::ValidationException(inner)
2968 }
2969 crate::operation::start_bot_resource_generation::StartBotResourceGenerationError::Unhandled(inner) => Error::Unhandled(inner),
2970 }
2971 }
2972}
2973impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_import::StartImportError, R>> for Error
2974where
2975 R: Send + Sync + std::fmt::Debug + 'static,
2976{
2977 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_import::StartImportError, R>) -> Self {
2978 match err {
2979 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2980 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2981 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2982 source: err.into(),
2983 }),
2984 }
2985 }
2986}
2987impl From<crate::operation::start_import::StartImportError> for Error {
2988 fn from(err: crate::operation::start_import::StartImportError) -> Self {
2989 match err {
2990 crate::operation::start_import::StartImportError::ConflictException(inner) => Error::ConflictException(inner),
2991 crate::operation::start_import::StartImportError::InternalServerException(inner) => Error::InternalServerException(inner),
2992 crate::operation::start_import::StartImportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2993 crate::operation::start_import::StartImportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2994 crate::operation::start_import::StartImportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2995 crate::operation::start_import::StartImportError::ValidationException(inner) => Error::ValidationException(inner),
2996 crate::operation::start_import::StartImportError::Unhandled(inner) => Error::Unhandled(inner),
2997 }
2998 }
2999}
3000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test_execution::StartTestExecutionError, R>> for Error
3001where
3002 R: Send + Sync + std::fmt::Debug + 'static,
3003{
3004 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test_execution::StartTestExecutionError, R>) -> Self {
3005 match err {
3006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3009 source: err.into(),
3010 }),
3011 }
3012 }
3013}
3014impl From<crate::operation::start_test_execution::StartTestExecutionError> for Error {
3015 fn from(err: crate::operation::start_test_execution::StartTestExecutionError) -> Self {
3016 match err {
3017 crate::operation::start_test_execution::StartTestExecutionError::ConflictException(inner) => Error::ConflictException(inner),
3018 crate::operation::start_test_execution::StartTestExecutionError::InternalServerException(inner) => Error::InternalServerException(inner),
3019 crate::operation::start_test_execution::StartTestExecutionError::ResourceNotFoundException(inner) => {
3020 Error::ResourceNotFoundException(inner)
3021 }
3022 crate::operation::start_test_execution::StartTestExecutionError::ServiceQuotaExceededException(inner) => {
3023 Error::ServiceQuotaExceededException(inner)
3024 }
3025 crate::operation::start_test_execution::StartTestExecutionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3026 crate::operation::start_test_execution::StartTestExecutionError::ValidationException(inner) => Error::ValidationException(inner),
3027 crate::operation::start_test_execution::StartTestExecutionError::Unhandled(inner) => Error::Unhandled(inner),
3028 }
3029 }
3030}
3031impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test_set_generation::StartTestSetGenerationError, R>>
3032 for Error
3033where
3034 R: Send + Sync + std::fmt::Debug + 'static,
3035{
3036 fn from(
3037 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test_set_generation::StartTestSetGenerationError, R>,
3038 ) -> 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::start_test_set_generation::StartTestSetGenerationError> for Error {
3049 fn from(err: crate::operation::start_test_set_generation::StartTestSetGenerationError) -> Self {
3050 match err {
3051 crate::operation::start_test_set_generation::StartTestSetGenerationError::ConflictException(inner) => Error::ConflictException(inner),
3052 crate::operation::start_test_set_generation::StartTestSetGenerationError::InternalServerException(inner) => {
3053 Error::InternalServerException(inner)
3054 }
3055 crate::operation::start_test_set_generation::StartTestSetGenerationError::ResourceNotFoundException(inner) => {
3056 Error::ResourceNotFoundException(inner)
3057 }
3058 crate::operation::start_test_set_generation::StartTestSetGenerationError::ServiceQuotaExceededException(inner) => {
3059 Error::ServiceQuotaExceededException(inner)
3060 }
3061 crate::operation::start_test_set_generation::StartTestSetGenerationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3062 crate::operation::start_test_set_generation::StartTestSetGenerationError::ValidationException(inner) => Error::ValidationException(inner),
3063 crate::operation::start_test_set_generation::StartTestSetGenerationError::Unhandled(inner) => Error::Unhandled(inner),
3064 }
3065 }
3066}
3067impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_bot_analyzer::StopBotAnalyzerError, R>> for Error
3068where
3069 R: Send + Sync + std::fmt::Debug + 'static,
3070{
3071 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_bot_analyzer::StopBotAnalyzerError, R>) -> Self {
3072 match err {
3073 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3074 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3075 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3076 source: err.into(),
3077 }),
3078 }
3079 }
3080}
3081impl From<crate::operation::stop_bot_analyzer::StopBotAnalyzerError> for Error {
3082 fn from(err: crate::operation::stop_bot_analyzer::StopBotAnalyzerError) -> Self {
3083 match err {
3084 crate::operation::stop_bot_analyzer::StopBotAnalyzerError::InternalServerException(inner) => Error::InternalServerException(inner),
3085 crate::operation::stop_bot_analyzer::StopBotAnalyzerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3086 crate::operation::stop_bot_analyzer::StopBotAnalyzerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3087 crate::operation::stop_bot_analyzer::StopBotAnalyzerError::ValidationException(inner) => Error::ValidationException(inner),
3088 crate::operation::stop_bot_analyzer::StopBotAnalyzerError::Unhandled(inner) => Error::Unhandled(inner),
3089 }
3090 }
3091}
3092impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_bot_recommendation::StopBotRecommendationError, R>> for Error
3093where
3094 R: Send + Sync + std::fmt::Debug + 'static,
3095{
3096 fn from(
3097 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_bot_recommendation::StopBotRecommendationError, R>,
3098 ) -> Self {
3099 match err {
3100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3103 source: err.into(),
3104 }),
3105 }
3106 }
3107}
3108impl From<crate::operation::stop_bot_recommendation::StopBotRecommendationError> for Error {
3109 fn from(err: crate::operation::stop_bot_recommendation::StopBotRecommendationError) -> Self {
3110 match err {
3111 crate::operation::stop_bot_recommendation::StopBotRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
3112 crate::operation::stop_bot_recommendation::StopBotRecommendationError::InternalServerException(inner) => {
3113 Error::InternalServerException(inner)
3114 }
3115 crate::operation::stop_bot_recommendation::StopBotRecommendationError::PreconditionFailedException(inner) => {
3116 Error::PreconditionFailedException(inner)
3117 }
3118 crate::operation::stop_bot_recommendation::StopBotRecommendationError::ResourceNotFoundException(inner) => {
3119 Error::ResourceNotFoundException(inner)
3120 }
3121 crate::operation::stop_bot_recommendation::StopBotRecommendationError::ServiceQuotaExceededException(inner) => {
3122 Error::ServiceQuotaExceededException(inner)
3123 }
3124 crate::operation::stop_bot_recommendation::StopBotRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3125 crate::operation::stop_bot_recommendation::StopBotRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
3126 crate::operation::stop_bot_recommendation::StopBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
3127 }
3128 }
3129}
3130impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3131where
3132 R: Send + Sync + std::fmt::Debug + 'static,
3133{
3134 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3135 match err {
3136 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3137 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3138 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3139 source: err.into(),
3140 }),
3141 }
3142 }
3143}
3144impl From<crate::operation::tag_resource::TagResourceError> for Error {
3145 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3146 match err {
3147 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3148 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3149 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3150 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3151 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3152 }
3153 }
3154}
3155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3156where
3157 R: Send + Sync + std::fmt::Debug + 'static,
3158{
3159 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3160 match err {
3161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3164 source: err.into(),
3165 }),
3166 }
3167 }
3168}
3169impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3170 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3171 match err {
3172 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3173 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3174 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3175 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3176 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3177 }
3178 }
3179}
3180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>> for Error
3181where
3182 R: Send + Sync + std::fmt::Debug + 'static,
3183{
3184 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>) -> Self {
3185 match err {
3186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3189 source: err.into(),
3190 }),
3191 }
3192 }
3193}
3194impl From<crate::operation::update_bot::UpdateBotError> for Error {
3195 fn from(err: crate::operation::update_bot::UpdateBotError) -> Self {
3196 match err {
3197 crate::operation::update_bot::UpdateBotError::ConflictException(inner) => Error::ConflictException(inner),
3198 crate::operation::update_bot::UpdateBotError::InternalServerException(inner) => Error::InternalServerException(inner),
3199 crate::operation::update_bot::UpdateBotError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3200 crate::operation::update_bot::UpdateBotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3201 crate::operation::update_bot::UpdateBotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3202 crate::operation::update_bot::UpdateBotError::ValidationException(inner) => Error::ValidationException(inner),
3203 crate::operation::update_bot::UpdateBotError::Unhandled(inner) => Error::Unhandled(inner),
3204 }
3205 }
3206}
3207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_alias::UpdateBotAliasError, R>> for Error
3208where
3209 R: Send + Sync + std::fmt::Debug + 'static,
3210{
3211 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_alias::UpdateBotAliasError, R>) -> Self {
3212 match err {
3213 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3214 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3215 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3216 source: err.into(),
3217 }),
3218 }
3219 }
3220}
3221impl From<crate::operation::update_bot_alias::UpdateBotAliasError> for Error {
3222 fn from(err: crate::operation::update_bot_alias::UpdateBotAliasError) -> Self {
3223 match err {
3224 crate::operation::update_bot_alias::UpdateBotAliasError::ConflictException(inner) => Error::ConflictException(inner),
3225 crate::operation::update_bot_alias::UpdateBotAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
3226 crate::operation::update_bot_alias::UpdateBotAliasError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3227 crate::operation::update_bot_alias::UpdateBotAliasError::ServiceQuotaExceededException(inner) => {
3228 Error::ServiceQuotaExceededException(inner)
3229 }
3230 crate::operation::update_bot_alias::UpdateBotAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3231 crate::operation::update_bot_alias::UpdateBotAliasError::ValidationException(inner) => Error::ValidationException(inner),
3232 crate::operation::update_bot_alias::UpdateBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
3233 }
3234 }
3235}
3236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_locale::UpdateBotLocaleError, R>> for Error
3237where
3238 R: Send + Sync + std::fmt::Debug + 'static,
3239{
3240 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_locale::UpdateBotLocaleError, R>) -> Self {
3241 match err {
3242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3245 source: err.into(),
3246 }),
3247 }
3248 }
3249}
3250impl From<crate::operation::update_bot_locale::UpdateBotLocaleError> for Error {
3251 fn from(err: crate::operation::update_bot_locale::UpdateBotLocaleError) -> Self {
3252 match err {
3253 crate::operation::update_bot_locale::UpdateBotLocaleError::ConflictException(inner) => Error::ConflictException(inner),
3254 crate::operation::update_bot_locale::UpdateBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
3255 crate::operation::update_bot_locale::UpdateBotLocaleError::PreconditionFailedException(inner) => {
3256 Error::PreconditionFailedException(inner)
3257 }
3258 crate::operation::update_bot_locale::UpdateBotLocaleError::ServiceQuotaExceededException(inner) => {
3259 Error::ServiceQuotaExceededException(inner)
3260 }
3261 crate::operation::update_bot_locale::UpdateBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3262 crate::operation::update_bot_locale::UpdateBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
3263 crate::operation::update_bot_locale::UpdateBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
3264 }
3265 }
3266}
3267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_recommendation::UpdateBotRecommendationError, R>>
3268 for Error
3269where
3270 R: Send + Sync + std::fmt::Debug + 'static,
3271{
3272 fn from(
3273 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot_recommendation::UpdateBotRecommendationError, R>,
3274 ) -> Self {
3275 match err {
3276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3279 source: err.into(),
3280 }),
3281 }
3282 }
3283}
3284impl From<crate::operation::update_bot_recommendation::UpdateBotRecommendationError> for Error {
3285 fn from(err: crate::operation::update_bot_recommendation::UpdateBotRecommendationError) -> Self {
3286 match err {
3287 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
3288 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::InternalServerException(inner) => {
3289 Error::InternalServerException(inner)
3290 }
3291 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::PreconditionFailedException(inner) => {
3292 Error::PreconditionFailedException(inner)
3293 }
3294 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ResourceNotFoundException(inner) => {
3295 Error::ResourceNotFoundException(inner)
3296 }
3297 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ServiceQuotaExceededException(inner) => {
3298 Error::ServiceQuotaExceededException(inner)
3299 }
3300 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ThrottlingException(inner) => {
3301 Error::ThrottlingException(inner)
3302 }
3303 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ValidationException(inner) => {
3304 Error::ValidationException(inner)
3305 }
3306 crate::operation::update_bot_recommendation::UpdateBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
3307 }
3308 }
3309}
3310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_export::UpdateExportError, R>> for Error
3311where
3312 R: Send + Sync + std::fmt::Debug + 'static,
3313{
3314 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_export::UpdateExportError, R>) -> Self {
3315 match err {
3316 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3317 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3318 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3319 source: err.into(),
3320 }),
3321 }
3322 }
3323}
3324impl From<crate::operation::update_export::UpdateExportError> for Error {
3325 fn from(err: crate::operation::update_export::UpdateExportError) -> Self {
3326 match err {
3327 crate::operation::update_export::UpdateExportError::ConflictException(inner) => Error::ConflictException(inner),
3328 crate::operation::update_export::UpdateExportError::InternalServerException(inner) => Error::InternalServerException(inner),
3329 crate::operation::update_export::UpdateExportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3330 crate::operation::update_export::UpdateExportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3331 crate::operation::update_export::UpdateExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3332 crate::operation::update_export::UpdateExportError::ValidationException(inner) => Error::ValidationException(inner),
3333 crate::operation::update_export::UpdateExportError::Unhandled(inner) => Error::Unhandled(inner),
3334 }
3335 }
3336}
3337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_intent::UpdateIntentError, R>> for Error
3338where
3339 R: Send + Sync + std::fmt::Debug + 'static,
3340{
3341 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_intent::UpdateIntentError, R>) -> Self {
3342 match err {
3343 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3344 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3345 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3346 source: err.into(),
3347 }),
3348 }
3349 }
3350}
3351impl From<crate::operation::update_intent::UpdateIntentError> for Error {
3352 fn from(err: crate::operation::update_intent::UpdateIntentError) -> Self {
3353 match err {
3354 crate::operation::update_intent::UpdateIntentError::ConflictException(inner) => Error::ConflictException(inner),
3355 crate::operation::update_intent::UpdateIntentError::InternalServerException(inner) => Error::InternalServerException(inner),
3356 crate::operation::update_intent::UpdateIntentError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3357 crate::operation::update_intent::UpdateIntentError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3358 crate::operation::update_intent::UpdateIntentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3359 crate::operation::update_intent::UpdateIntentError::ValidationException(inner) => Error::ValidationException(inner),
3360 crate::operation::update_intent::UpdateIntentError::Unhandled(inner) => Error::Unhandled(inner),
3361 }
3362 }
3363}
3364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_policy::UpdateResourcePolicyError, R>> for Error
3365where
3366 R: Send + Sync + std::fmt::Debug + 'static,
3367{
3368 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_policy::UpdateResourcePolicyError, R>) -> Self {
3369 match err {
3370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3373 source: err.into(),
3374 }),
3375 }
3376 }
3377}
3378impl From<crate::operation::update_resource_policy::UpdateResourcePolicyError> for Error {
3379 fn from(err: crate::operation::update_resource_policy::UpdateResourcePolicyError) -> Self {
3380 match err {
3381 crate::operation::update_resource_policy::UpdateResourcePolicyError::InternalServerException(inner) => {
3382 Error::InternalServerException(inner)
3383 }
3384 crate::operation::update_resource_policy::UpdateResourcePolicyError::PreconditionFailedException(inner) => {
3385 Error::PreconditionFailedException(inner)
3386 }
3387 crate::operation::update_resource_policy::UpdateResourcePolicyError::ResourceNotFoundException(inner) => {
3388 Error::ResourceNotFoundException(inner)
3389 }
3390 crate::operation::update_resource_policy::UpdateResourcePolicyError::ServiceQuotaExceededException(inner) => {
3391 Error::ServiceQuotaExceededException(inner)
3392 }
3393 crate::operation::update_resource_policy::UpdateResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3394 crate::operation::update_resource_policy::UpdateResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
3395 crate::operation::update_resource_policy::UpdateResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
3396 }
3397 }
3398}
3399impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_slot::UpdateSlotError, R>> for Error
3400where
3401 R: Send + Sync + std::fmt::Debug + 'static,
3402{
3403 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_slot::UpdateSlotError, R>) -> Self {
3404 match err {
3405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3408 source: err.into(),
3409 }),
3410 }
3411 }
3412}
3413impl From<crate::operation::update_slot::UpdateSlotError> for Error {
3414 fn from(err: crate::operation::update_slot::UpdateSlotError) -> Self {
3415 match err {
3416 crate::operation::update_slot::UpdateSlotError::ConflictException(inner) => Error::ConflictException(inner),
3417 crate::operation::update_slot::UpdateSlotError::InternalServerException(inner) => Error::InternalServerException(inner),
3418 crate::operation::update_slot::UpdateSlotError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3419 crate::operation::update_slot::UpdateSlotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3420 crate::operation::update_slot::UpdateSlotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3421 crate::operation::update_slot::UpdateSlotError::ValidationException(inner) => Error::ValidationException(inner),
3422 crate::operation::update_slot::UpdateSlotError::Unhandled(inner) => Error::Unhandled(inner),
3423 }
3424 }
3425}
3426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_slot_type::UpdateSlotTypeError, R>> for Error
3427where
3428 R: Send + Sync + std::fmt::Debug + 'static,
3429{
3430 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_slot_type::UpdateSlotTypeError, R>) -> Self {
3431 match err {
3432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3435 source: err.into(),
3436 }),
3437 }
3438 }
3439}
3440impl From<crate::operation::update_slot_type::UpdateSlotTypeError> for Error {
3441 fn from(err: crate::operation::update_slot_type::UpdateSlotTypeError) -> Self {
3442 match err {
3443 crate::operation::update_slot_type::UpdateSlotTypeError::ConflictException(inner) => Error::ConflictException(inner),
3444 crate::operation::update_slot_type::UpdateSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
3445 crate::operation::update_slot_type::UpdateSlotTypeError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3446 crate::operation::update_slot_type::UpdateSlotTypeError::ServiceQuotaExceededException(inner) => {
3447 Error::ServiceQuotaExceededException(inner)
3448 }
3449 crate::operation::update_slot_type::UpdateSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3450 crate::operation::update_slot_type::UpdateSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
3451 crate::operation::update_slot_type::UpdateSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
3452 }
3453 }
3454}
3455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_set::UpdateTestSetError, R>> for Error
3456where
3457 R: Send + Sync + std::fmt::Debug + 'static,
3458{
3459 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_set::UpdateTestSetError, R>) -> Self {
3460 match err {
3461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3464 source: err.into(),
3465 }),
3466 }
3467 }
3468}
3469impl From<crate::operation::update_test_set::UpdateTestSetError> for Error {
3470 fn from(err: crate::operation::update_test_set::UpdateTestSetError) -> Self {
3471 match err {
3472 crate::operation::update_test_set::UpdateTestSetError::ConflictException(inner) => Error::ConflictException(inner),
3473 crate::operation::update_test_set::UpdateTestSetError::InternalServerException(inner) => Error::InternalServerException(inner),
3474 crate::operation::update_test_set::UpdateTestSetError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
3475 crate::operation::update_test_set::UpdateTestSetError::ServiceQuotaExceededException(inner) => {
3476 Error::ServiceQuotaExceededException(inner)
3477 }
3478 crate::operation::update_test_set::UpdateTestSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3479 crate::operation::update_test_set::UpdateTestSetError::ValidationException(inner) => Error::ValidationException(inner),
3480 crate::operation::update_test_set::UpdateTestSetError::Unhandled(inner) => Error::Unhandled(inner),
3481 }
3482 }
3483}
3484impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
3485where
3486 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
3487 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
3488{
3489 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
3490 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3491 meta: ::std::default::Default::default(),
3492 source: err.into(),
3493 })
3494 }
3495}
3496impl ::std::error::Error for Error {
3497 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3498 match self {
3499 Error::ConflictException(inner) => inner.source(),
3500 Error::InternalServerException(inner) => inner.source(),
3501 Error::PreconditionFailedException(inner) => inner.source(),
3502 Error::ResourceNotFoundException(inner) => inner.source(),
3503 Error::ServiceQuotaExceededException(inner) => inner.source(),
3504 Error::ThrottlingException(inner) => inner.source(),
3505 Error::ValidationException(inner) => inner.source(),
3506 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3507 }
3508 }
3509}
3510impl ::aws_types::request_id::RequestId for Error {
3511 fn request_id(&self) -> Option<&str> {
3512 match self {
3513 Self::ConflictException(e) => e.request_id(),
3514 Self::InternalServerException(e) => e.request_id(),
3515 Self::PreconditionFailedException(e) => e.request_id(),
3516 Self::ResourceNotFoundException(e) => e.request_id(),
3517 Self::ServiceQuotaExceededException(e) => e.request_id(),
3518 Self::ThrottlingException(e) => e.request_id(),
3519 Self::ValidationException(e) => e.request_id(),
3520 Self::Unhandled(e) => e.meta.request_id(),
3521 }
3522 }
3523}