1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 ContentTooLargeException(crate::types::error::ContentTooLargeException),
12 InternalServerException(crate::types::error::InternalServerException),
14 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
18 ThrottlingException(crate::types::error::ThrottlingException),
20 UnauthorizedException(crate::types::error::UnauthorizedException),
22 ValidationException(crate::types::error::ValidationException),
24 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
26 variable wildcard pattern and check `.code()`:
27 \
28 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
29 \
30 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
31 Unhandled(crate::error::sealed_unhandled::Unhandled),
32}
33impl ::std::fmt::Display for Error {
34 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35 match self {
36 Error::AccessDeniedException(inner) => inner.fmt(f),
37 Error::ConflictException(inner) => inner.fmt(f),
38 Error::ContentTooLargeException(inner) => inner.fmt(f),
39 Error::InternalServerException(inner) => inner.fmt(f),
40 Error::ResourceNotFoundException(inner) => inner.fmt(f),
41 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
42 Error::ThrottlingException(inner) => inner.fmt(f),
43 Error::UnauthorizedException(inner) => inner.fmt(f),
44 Error::ValidationException(inner) => inner.fmt(f),
45 Error::Unhandled(_) => {
46 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
47 write!(f, "unhandled error ({code})")
48 } else {
49 f.write_str("unhandled error")
50 }
51 }
52 }
53 }
54}
55impl From<::aws_smithy_types::error::operation::BuildError> for Error {
56 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
57 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
58 source: value.into(),
59 meta: ::std::default::Default::default(),
60 })
61 }
62}
63impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
64 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
65 match self {
66 Self::AccessDeniedException(inner) => inner.meta(),
67 Self::ConflictException(inner) => inner.meta(),
68 Self::ContentTooLargeException(inner) => inner.meta(),
69 Self::InternalServerException(inner) => inner.meta(),
70 Self::ResourceNotFoundException(inner) => inner.meta(),
71 Self::ServiceQuotaExceededException(inner) => inner.meta(),
72 Self::ThrottlingException(inner) => inner.meta(),
73 Self::UnauthorizedException(inner) => inner.meta(),
74 Self::ValidationException(inner) => inner.meta(),
75 Self::Unhandled(inner) => &inner.meta,
76 }
77 }
78}
79impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_library_item_review::AssociateLibraryItemReviewError, R>>
80 for Error
81where
82 R: Send + Sync + std::fmt::Debug + 'static,
83{
84 fn from(
85 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_library_item_review::AssociateLibraryItemReviewError, R>,
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::associate_library_item_review::AssociateLibraryItemReviewError> for Error {
97 fn from(err: crate::operation::associate_library_item_review::AssociateLibraryItemReviewError) -> Self {
98 match err {
99 crate::operation::associate_library_item_review::AssociateLibraryItemReviewError::AccessDeniedException(inner) => {
100 Error::AccessDeniedException(inner)
101 }
102 crate::operation::associate_library_item_review::AssociateLibraryItemReviewError::ConflictException(inner) => {
103 Error::ConflictException(inner)
104 }
105 crate::operation::associate_library_item_review::AssociateLibraryItemReviewError::InternalServerException(inner) => {
106 Error::InternalServerException(inner)
107 }
108 crate::operation::associate_library_item_review::AssociateLibraryItemReviewError::ResourceNotFoundException(inner) => {
109 Error::ResourceNotFoundException(inner)
110 }
111 crate::operation::associate_library_item_review::AssociateLibraryItemReviewError::ServiceQuotaExceededException(inner) => {
112 Error::ServiceQuotaExceededException(inner)
113 }
114 crate::operation::associate_library_item_review::AssociateLibraryItemReviewError::ThrottlingException(inner) => {
115 Error::ThrottlingException(inner)
116 }
117 crate::operation::associate_library_item_review::AssociateLibraryItemReviewError::UnauthorizedException(inner) => {
118 Error::UnauthorizedException(inner)
119 }
120 crate::operation::associate_library_item_review::AssociateLibraryItemReviewError::ValidationException(inner) => {
121 Error::ValidationException(inner)
122 }
123 crate::operation::associate_library_item_review::AssociateLibraryItemReviewError::Unhandled(inner) => Error::Unhandled(inner),
124 }
125 }
126}
127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_q_app_with_user::AssociateQAppWithUserError, R>> for Error
128where
129 R: Send + Sync + std::fmt::Debug + 'static,
130{
131 fn from(
132 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_q_app_with_user::AssociateQAppWithUserError, R>,
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::associate_q_app_with_user::AssociateQAppWithUserError> for Error {
144 fn from(err: crate::operation::associate_q_app_with_user::AssociateQAppWithUserError) -> Self {
145 match err {
146 crate::operation::associate_q_app_with_user::AssociateQAppWithUserError::AccessDeniedException(inner) => {
147 Error::AccessDeniedException(inner)
148 }
149 crate::operation::associate_q_app_with_user::AssociateQAppWithUserError::InternalServerException(inner) => {
150 Error::InternalServerException(inner)
151 }
152 crate::operation::associate_q_app_with_user::AssociateQAppWithUserError::ResourceNotFoundException(inner) => {
153 Error::ResourceNotFoundException(inner)
154 }
155 crate::operation::associate_q_app_with_user::AssociateQAppWithUserError::ServiceQuotaExceededException(inner) => {
156 Error::ServiceQuotaExceededException(inner)
157 }
158 crate::operation::associate_q_app_with_user::AssociateQAppWithUserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
159 crate::operation::associate_q_app_with_user::AssociateQAppWithUserError::UnauthorizedException(inner) => {
160 Error::UnauthorizedException(inner)
161 }
162 crate::operation::associate_q_app_with_user::AssociateQAppWithUserError::ValidationException(inner) => Error::ValidationException(inner),
163 crate::operation::associate_q_app_with_user::AssociateQAppWithUserError::Unhandled(inner) => Error::Unhandled(inner),
164 }
165 }
166}
167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_category::BatchCreateCategoryError, R>> for Error
168where
169 R: Send + Sync + std::fmt::Debug + 'static,
170{
171 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_category::BatchCreateCategoryError, R>) -> Self {
172 match err {
173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
176 source: err.into(),
177 }),
178 }
179 }
180}
181impl From<crate::operation::batch_create_category::BatchCreateCategoryError> for Error {
182 fn from(err: crate::operation::batch_create_category::BatchCreateCategoryError) -> Self {
183 match err {
184 crate::operation::batch_create_category::BatchCreateCategoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
185 crate::operation::batch_create_category::BatchCreateCategoryError::ConflictException(inner) => Error::ConflictException(inner),
186 crate::operation::batch_create_category::BatchCreateCategoryError::InternalServerException(inner) => {
187 Error::InternalServerException(inner)
188 }
189 crate::operation::batch_create_category::BatchCreateCategoryError::ResourceNotFoundException(inner) => {
190 Error::ResourceNotFoundException(inner)
191 }
192 crate::operation::batch_create_category::BatchCreateCategoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
193 crate::operation::batch_create_category::BatchCreateCategoryError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
194 crate::operation::batch_create_category::BatchCreateCategoryError::ValidationException(inner) => Error::ValidationException(inner),
195 crate::operation::batch_create_category::BatchCreateCategoryError::Unhandled(inner) => Error::Unhandled(inner),
196 }
197 }
198}
199impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_category::BatchDeleteCategoryError, R>> for Error
200where
201 R: Send + Sync + std::fmt::Debug + 'static,
202{
203 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_category::BatchDeleteCategoryError, R>) -> Self {
204 match err {
205 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
206 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
207 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
208 source: err.into(),
209 }),
210 }
211 }
212}
213impl From<crate::operation::batch_delete_category::BatchDeleteCategoryError> for Error {
214 fn from(err: crate::operation::batch_delete_category::BatchDeleteCategoryError) -> Self {
215 match err {
216 crate::operation::batch_delete_category::BatchDeleteCategoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
217 crate::operation::batch_delete_category::BatchDeleteCategoryError::ConflictException(inner) => Error::ConflictException(inner),
218 crate::operation::batch_delete_category::BatchDeleteCategoryError::InternalServerException(inner) => {
219 Error::InternalServerException(inner)
220 }
221 crate::operation::batch_delete_category::BatchDeleteCategoryError::ResourceNotFoundException(inner) => {
222 Error::ResourceNotFoundException(inner)
223 }
224 crate::operation::batch_delete_category::BatchDeleteCategoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
225 crate::operation::batch_delete_category::BatchDeleteCategoryError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
226 crate::operation::batch_delete_category::BatchDeleteCategoryError::ValidationException(inner) => Error::ValidationException(inner),
227 crate::operation::batch_delete_category::BatchDeleteCategoryError::Unhandled(inner) => Error::Unhandled(inner),
228 }
229 }
230}
231impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_category::BatchUpdateCategoryError, R>> for Error
232where
233 R: Send + Sync + std::fmt::Debug + 'static,
234{
235 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_category::BatchUpdateCategoryError, R>) -> Self {
236 match err {
237 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
238 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
239 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
240 source: err.into(),
241 }),
242 }
243 }
244}
245impl From<crate::operation::batch_update_category::BatchUpdateCategoryError> for Error {
246 fn from(err: crate::operation::batch_update_category::BatchUpdateCategoryError) -> Self {
247 match err {
248 crate::operation::batch_update_category::BatchUpdateCategoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
249 crate::operation::batch_update_category::BatchUpdateCategoryError::ConflictException(inner) => Error::ConflictException(inner),
250 crate::operation::batch_update_category::BatchUpdateCategoryError::InternalServerException(inner) => {
251 Error::InternalServerException(inner)
252 }
253 crate::operation::batch_update_category::BatchUpdateCategoryError::ResourceNotFoundException(inner) => {
254 Error::ResourceNotFoundException(inner)
255 }
256 crate::operation::batch_update_category::BatchUpdateCategoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
257 crate::operation::batch_update_category::BatchUpdateCategoryError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
258 crate::operation::batch_update_category::BatchUpdateCategoryError::ValidationException(inner) => Error::ValidationException(inner),
259 crate::operation::batch_update_category::BatchUpdateCategoryError::Unhandled(inner) => Error::Unhandled(inner),
260 }
261 }
262}
263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_library_item::CreateLibraryItemError, R>> for Error
264where
265 R: Send + Sync + std::fmt::Debug + 'static,
266{
267 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_library_item::CreateLibraryItemError, R>) -> Self {
268 match err {
269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
272 source: err.into(),
273 }),
274 }
275 }
276}
277impl From<crate::operation::create_library_item::CreateLibraryItemError> for Error {
278 fn from(err: crate::operation::create_library_item::CreateLibraryItemError) -> Self {
279 match err {
280 crate::operation::create_library_item::CreateLibraryItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
281 crate::operation::create_library_item::CreateLibraryItemError::InternalServerException(inner) => Error::InternalServerException(inner),
282 crate::operation::create_library_item::CreateLibraryItemError::ResourceNotFoundException(inner) => {
283 Error::ResourceNotFoundException(inner)
284 }
285 crate::operation::create_library_item::CreateLibraryItemError::ServiceQuotaExceededException(inner) => {
286 Error::ServiceQuotaExceededException(inner)
287 }
288 crate::operation::create_library_item::CreateLibraryItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
289 crate::operation::create_library_item::CreateLibraryItemError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
290 crate::operation::create_library_item::CreateLibraryItemError::ValidationException(inner) => Error::ValidationException(inner),
291 crate::operation::create_library_item::CreateLibraryItemError::Unhandled(inner) => Error::Unhandled(inner),
292 }
293 }
294}
295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_url::CreatePresignedUrlError, R>> for Error
296where
297 R: Send + Sync + std::fmt::Debug + 'static,
298{
299 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_url::CreatePresignedUrlError, R>) -> Self {
300 match err {
301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
304 source: err.into(),
305 }),
306 }
307 }
308}
309impl From<crate::operation::create_presigned_url::CreatePresignedUrlError> for Error {
310 fn from(err: crate::operation::create_presigned_url::CreatePresignedUrlError) -> Self {
311 match err {
312 crate::operation::create_presigned_url::CreatePresignedUrlError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
313 crate::operation::create_presigned_url::CreatePresignedUrlError::InternalServerException(inner) => Error::InternalServerException(inner),
314 crate::operation::create_presigned_url::CreatePresignedUrlError::ThrottlingException(inner) => Error::ThrottlingException(inner),
315 crate::operation::create_presigned_url::CreatePresignedUrlError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
316 crate::operation::create_presigned_url::CreatePresignedUrlError::ValidationException(inner) => Error::ValidationException(inner),
317 crate::operation::create_presigned_url::CreatePresignedUrlError::Unhandled(inner) => Error::Unhandled(inner),
318 }
319 }
320}
321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_q_app::CreateQAppError, R>> for Error
322where
323 R: Send + Sync + std::fmt::Debug + 'static,
324{
325 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_q_app::CreateQAppError, R>) -> Self {
326 match err {
327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
330 source: err.into(),
331 }),
332 }
333 }
334}
335impl From<crate::operation::create_q_app::CreateQAppError> for Error {
336 fn from(err: crate::operation::create_q_app::CreateQAppError) -> Self {
337 match err {
338 crate::operation::create_q_app::CreateQAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
339 crate::operation::create_q_app::CreateQAppError::ConflictException(inner) => Error::ConflictException(inner),
340 crate::operation::create_q_app::CreateQAppError::ContentTooLargeException(inner) => Error::ContentTooLargeException(inner),
341 crate::operation::create_q_app::CreateQAppError::InternalServerException(inner) => Error::InternalServerException(inner),
342 crate::operation::create_q_app::CreateQAppError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
343 crate::operation::create_q_app::CreateQAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
344 crate::operation::create_q_app::CreateQAppError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
345 crate::operation::create_q_app::CreateQAppError::ValidationException(inner) => Error::ValidationException(inner),
346 crate::operation::create_q_app::CreateQAppError::Unhandled(inner) => Error::Unhandled(inner),
347 }
348 }
349}
350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_library_item::DeleteLibraryItemError, R>> for Error
351where
352 R: Send + Sync + std::fmt::Debug + 'static,
353{
354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_library_item::DeleteLibraryItemError, R>) -> Self {
355 match err {
356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
359 source: err.into(),
360 }),
361 }
362 }
363}
364impl From<crate::operation::delete_library_item::DeleteLibraryItemError> for Error {
365 fn from(err: crate::operation::delete_library_item::DeleteLibraryItemError) -> Self {
366 match err {
367 crate::operation::delete_library_item::DeleteLibraryItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
368 crate::operation::delete_library_item::DeleteLibraryItemError::InternalServerException(inner) => Error::InternalServerException(inner),
369 crate::operation::delete_library_item::DeleteLibraryItemError::ResourceNotFoundException(inner) => {
370 Error::ResourceNotFoundException(inner)
371 }
372 crate::operation::delete_library_item::DeleteLibraryItemError::ServiceQuotaExceededException(inner) => {
373 Error::ServiceQuotaExceededException(inner)
374 }
375 crate::operation::delete_library_item::DeleteLibraryItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
376 crate::operation::delete_library_item::DeleteLibraryItemError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
377 crate::operation::delete_library_item::DeleteLibraryItemError::ValidationException(inner) => Error::ValidationException(inner),
378 crate::operation::delete_library_item::DeleteLibraryItemError::Unhandled(inner) => Error::Unhandled(inner),
379 }
380 }
381}
382impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_q_app::DeleteQAppError, R>> for Error
383where
384 R: Send + Sync + std::fmt::Debug + 'static,
385{
386 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_q_app::DeleteQAppError, R>) -> Self {
387 match err {
388 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
389 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
390 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
391 source: err.into(),
392 }),
393 }
394 }
395}
396impl From<crate::operation::delete_q_app::DeleteQAppError> for Error {
397 fn from(err: crate::operation::delete_q_app::DeleteQAppError) -> Self {
398 match err {
399 crate::operation::delete_q_app::DeleteQAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
400 crate::operation::delete_q_app::DeleteQAppError::InternalServerException(inner) => Error::InternalServerException(inner),
401 crate::operation::delete_q_app::DeleteQAppError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
402 crate::operation::delete_q_app::DeleteQAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
403 crate::operation::delete_q_app::DeleteQAppError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
404 crate::operation::delete_q_app::DeleteQAppError::ValidationException(inner) => Error::ValidationException(inner),
405 crate::operation::delete_q_app::DeleteQAppError::Unhandled(inner) => Error::Unhandled(inner),
406 }
407 }
408}
409impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError, R>>
410 for Error
411where
412 R: Send + Sync + std::fmt::Debug + 'static,
413{
414 fn from(
415 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError, R>,
416 ) -> Self {
417 match err {
418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
421 source: err.into(),
422 }),
423 }
424 }
425}
426impl From<crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError> for Error {
427 fn from(err: crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError) -> Self {
428 match err {
429 crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError::AccessDeniedException(inner) => {
430 Error::AccessDeniedException(inner)
431 }
432 crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError::InternalServerException(inner) => {
433 Error::InternalServerException(inner)
434 }
435 crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError::ResourceNotFoundException(inner) => {
436 Error::ResourceNotFoundException(inner)
437 }
438 crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError::ThrottlingException(inner) => {
439 Error::ThrottlingException(inner)
440 }
441 crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError::UnauthorizedException(inner) => {
442 Error::UnauthorizedException(inner)
443 }
444 crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError::ValidationException(inner) => {
445 Error::ValidationException(inner)
446 }
447 crate::operation::describe_q_app_permissions::DescribeQAppPermissionsError::Unhandled(inner) => Error::Unhandled(inner),
448 }
449 }
450}
451impl<R>
452 From<
453 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError, R>,
454 > for Error
455where
456 R: Send + Sync + std::fmt::Debug + 'static,
457{
458 fn from(
459 err: ::aws_smithy_runtime_api::client::result::SdkError<
460 crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError,
461 R,
462 >,
463 ) -> Self {
464 match err {
465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
468 source: err.into(),
469 }),
470 }
471 }
472}
473impl From<crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError> for Error {
474 fn from(err: crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError) -> Self {
475 match err {
476 crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError::AccessDeniedException(inner) => {
477 Error::AccessDeniedException(inner)
478 }
479 crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError::ConflictException(inner) => {
480 Error::ConflictException(inner)
481 }
482 crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError::InternalServerException(inner) => {
483 Error::InternalServerException(inner)
484 }
485 crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError::ResourceNotFoundException(inner) => {
486 Error::ResourceNotFoundException(inner)
487 }
488 crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError::ServiceQuotaExceededException(inner) => {
489 Error::ServiceQuotaExceededException(inner)
490 }
491 crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError::ThrottlingException(inner) => {
492 Error::ThrottlingException(inner)
493 }
494 crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError::UnauthorizedException(inner) => {
495 Error::UnauthorizedException(inner)
496 }
497 crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError::ValidationException(inner) => {
498 Error::ValidationException(inner)
499 }
500 crate::operation::disassociate_library_item_review::DisassociateLibraryItemReviewError::Unhandled(inner) => Error::Unhandled(inner),
501 }
502 }
503}
504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError, R>>
505 for Error
506where
507 R: Send + Sync + std::fmt::Debug + 'static,
508{
509 fn from(
510 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError, R>,
511 ) -> Self {
512 match err {
513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
516 source: err.into(),
517 }),
518 }
519 }
520}
521impl From<crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError> for Error {
522 fn from(err: crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError) -> Self {
523 match err {
524 crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError::AccessDeniedException(inner) => {
525 Error::AccessDeniedException(inner)
526 }
527 crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError::InternalServerException(inner) => {
528 Error::InternalServerException(inner)
529 }
530 crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError::ResourceNotFoundException(inner) => {
531 Error::ResourceNotFoundException(inner)
532 }
533 crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError::ThrottlingException(inner) => {
534 Error::ThrottlingException(inner)
535 }
536 crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError::UnauthorizedException(inner) => {
537 Error::UnauthorizedException(inner)
538 }
539 crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError::ValidationException(inner) => {
540 Error::ValidationException(inner)
541 }
542 crate::operation::disassociate_q_app_from_user::DisassociateQAppFromUserError::Unhandled(inner) => Error::Unhandled(inner),
543 }
544 }
545}
546impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_q_app_session_data::ExportQAppSessionDataError, R>> for Error
547where
548 R: Send + Sync + std::fmt::Debug + 'static,
549{
550 fn from(
551 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_q_app_session_data::ExportQAppSessionDataError, R>,
552 ) -> Self {
553 match err {
554 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
555 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
556 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
557 source: err.into(),
558 }),
559 }
560 }
561}
562impl From<crate::operation::export_q_app_session_data::ExportQAppSessionDataError> for Error {
563 fn from(err: crate::operation::export_q_app_session_data::ExportQAppSessionDataError) -> Self {
564 match err {
565 crate::operation::export_q_app_session_data::ExportQAppSessionDataError::AccessDeniedException(inner) => {
566 Error::AccessDeniedException(inner)
567 }
568 crate::operation::export_q_app_session_data::ExportQAppSessionDataError::ConflictException(inner) => Error::ConflictException(inner),
569 crate::operation::export_q_app_session_data::ExportQAppSessionDataError::InternalServerException(inner) => {
570 Error::InternalServerException(inner)
571 }
572 crate::operation::export_q_app_session_data::ExportQAppSessionDataError::ResourceNotFoundException(inner) => {
573 Error::ResourceNotFoundException(inner)
574 }
575 crate::operation::export_q_app_session_data::ExportQAppSessionDataError::ServiceQuotaExceededException(inner) => {
576 Error::ServiceQuotaExceededException(inner)
577 }
578 crate::operation::export_q_app_session_data::ExportQAppSessionDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
579 crate::operation::export_q_app_session_data::ExportQAppSessionDataError::UnauthorizedException(inner) => {
580 Error::UnauthorizedException(inner)
581 }
582 crate::operation::export_q_app_session_data::ExportQAppSessionDataError::ValidationException(inner) => Error::ValidationException(inner),
583 crate::operation::export_q_app_session_data::ExportQAppSessionDataError::Unhandled(inner) => Error::Unhandled(inner),
584 }
585 }
586}
587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_library_item::GetLibraryItemError, R>> for Error
588where
589 R: Send + Sync + std::fmt::Debug + 'static,
590{
591 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_library_item::GetLibraryItemError, R>) -> Self {
592 match err {
593 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
594 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
595 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
596 source: err.into(),
597 }),
598 }
599 }
600}
601impl From<crate::operation::get_library_item::GetLibraryItemError> for Error {
602 fn from(err: crate::operation::get_library_item::GetLibraryItemError) -> Self {
603 match err {
604 crate::operation::get_library_item::GetLibraryItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
605 crate::operation::get_library_item::GetLibraryItemError::InternalServerException(inner) => Error::InternalServerException(inner),
606 crate::operation::get_library_item::GetLibraryItemError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
607 crate::operation::get_library_item::GetLibraryItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
608 crate::operation::get_library_item::GetLibraryItemError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
609 crate::operation::get_library_item::GetLibraryItemError::ValidationException(inner) => Error::ValidationException(inner),
610 crate::operation::get_library_item::GetLibraryItemError::Unhandled(inner) => Error::Unhandled(inner),
611 }
612 }
613}
614impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_q_app::GetQAppError, R>> for Error
615where
616 R: Send + Sync + std::fmt::Debug + 'static,
617{
618 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_q_app::GetQAppError, R>) -> Self {
619 match err {
620 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
621 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
622 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
623 source: err.into(),
624 }),
625 }
626 }
627}
628impl From<crate::operation::get_q_app::GetQAppError> for Error {
629 fn from(err: crate::operation::get_q_app::GetQAppError) -> Self {
630 match err {
631 crate::operation::get_q_app::GetQAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
632 crate::operation::get_q_app::GetQAppError::InternalServerException(inner) => Error::InternalServerException(inner),
633 crate::operation::get_q_app::GetQAppError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
634 crate::operation::get_q_app::GetQAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
635 crate::operation::get_q_app::GetQAppError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
636 crate::operation::get_q_app::GetQAppError::ValidationException(inner) => Error::ValidationException(inner),
637 crate::operation::get_q_app::GetQAppError::Unhandled(inner) => Error::Unhandled(inner),
638 }
639 }
640}
641impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_q_app_session::GetQAppSessionError, R>> for Error
642where
643 R: Send + Sync + std::fmt::Debug + 'static,
644{
645 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_q_app_session::GetQAppSessionError, R>) -> Self {
646 match err {
647 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
648 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
649 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
650 source: err.into(),
651 }),
652 }
653 }
654}
655impl From<crate::operation::get_q_app_session::GetQAppSessionError> for Error {
656 fn from(err: crate::operation::get_q_app_session::GetQAppSessionError) -> Self {
657 match err {
658 crate::operation::get_q_app_session::GetQAppSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
659 crate::operation::get_q_app_session::GetQAppSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
660 crate::operation::get_q_app_session::GetQAppSessionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
661 crate::operation::get_q_app_session::GetQAppSessionError::ServiceQuotaExceededException(inner) => {
662 Error::ServiceQuotaExceededException(inner)
663 }
664 crate::operation::get_q_app_session::GetQAppSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
665 crate::operation::get_q_app_session::GetQAppSessionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
666 crate::operation::get_q_app_session::GetQAppSessionError::ValidationException(inner) => Error::ValidationException(inner),
667 crate::operation::get_q_app_session::GetQAppSessionError::Unhandled(inner) => Error::Unhandled(inner),
668 }
669 }
670}
671impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError, R>>
672 for Error
673where
674 R: Send + Sync + std::fmt::Debug + 'static,
675{
676 fn from(
677 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError, R>,
678 ) -> Self {
679 match err {
680 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
681 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
682 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
683 source: err.into(),
684 }),
685 }
686 }
687}
688impl From<crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError> for Error {
689 fn from(err: crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError) -> Self {
690 match err {
691 crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError::AccessDeniedException(inner) => {
692 Error::AccessDeniedException(inner)
693 }
694 crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError::InternalServerException(inner) => {
695 Error::InternalServerException(inner)
696 }
697 crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError::ResourceNotFoundException(inner) => {
698 Error::ResourceNotFoundException(inner)
699 }
700 crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError::ServiceQuotaExceededException(inner) => {
701 Error::ServiceQuotaExceededException(inner)
702 }
703 crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError::ThrottlingException(inner) => {
704 Error::ThrottlingException(inner)
705 }
706 crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError::UnauthorizedException(inner) => {
707 Error::UnauthorizedException(inner)
708 }
709 crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError::ValidationException(inner) => {
710 Error::ValidationException(inner)
711 }
712 crate::operation::get_q_app_session_metadata::GetQAppSessionMetadataError::Unhandled(inner) => Error::Unhandled(inner),
713 }
714 }
715}
716impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_document::ImportDocumentError, R>> for Error
717where
718 R: Send + Sync + std::fmt::Debug + 'static,
719{
720 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_document::ImportDocumentError, R>) -> Self {
721 match err {
722 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
723 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
724 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
725 source: err.into(),
726 }),
727 }
728 }
729}
730impl From<crate::operation::import_document::ImportDocumentError> for Error {
731 fn from(err: crate::operation::import_document::ImportDocumentError) -> Self {
732 match err {
733 crate::operation::import_document::ImportDocumentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
734 crate::operation::import_document::ImportDocumentError::ContentTooLargeException(inner) => Error::ContentTooLargeException(inner),
735 crate::operation::import_document::ImportDocumentError::InternalServerException(inner) => Error::InternalServerException(inner),
736 crate::operation::import_document::ImportDocumentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
737 crate::operation::import_document::ImportDocumentError::ServiceQuotaExceededException(inner) => {
738 Error::ServiceQuotaExceededException(inner)
739 }
740 crate::operation::import_document::ImportDocumentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
741 crate::operation::import_document::ImportDocumentError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
742 crate::operation::import_document::ImportDocumentError::ValidationException(inner) => Error::ValidationException(inner),
743 crate::operation::import_document::ImportDocumentError::Unhandled(inner) => Error::Unhandled(inner),
744 }
745 }
746}
747impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_categories::ListCategoriesError, R>> for Error
748where
749 R: Send + Sync + std::fmt::Debug + 'static,
750{
751 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_categories::ListCategoriesError, R>) -> Self {
752 match err {
753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
756 source: err.into(),
757 }),
758 }
759 }
760}
761impl From<crate::operation::list_categories::ListCategoriesError> for Error {
762 fn from(err: crate::operation::list_categories::ListCategoriesError) -> Self {
763 match err {
764 crate::operation::list_categories::ListCategoriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
765 crate::operation::list_categories::ListCategoriesError::InternalServerException(inner) => Error::InternalServerException(inner),
766 crate::operation::list_categories::ListCategoriesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
767 crate::operation::list_categories::ListCategoriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
768 crate::operation::list_categories::ListCategoriesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
769 crate::operation::list_categories::ListCategoriesError::ValidationException(inner) => Error::ValidationException(inner),
770 crate::operation::list_categories::ListCategoriesError::Unhandled(inner) => Error::Unhandled(inner),
771 }
772 }
773}
774impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_library_items::ListLibraryItemsError, R>> for Error
775where
776 R: Send + Sync + std::fmt::Debug + 'static,
777{
778 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_library_items::ListLibraryItemsError, R>) -> Self {
779 match err {
780 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
781 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
782 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
783 source: err.into(),
784 }),
785 }
786 }
787}
788impl From<crate::operation::list_library_items::ListLibraryItemsError> for Error {
789 fn from(err: crate::operation::list_library_items::ListLibraryItemsError) -> Self {
790 match err {
791 crate::operation::list_library_items::ListLibraryItemsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
792 crate::operation::list_library_items::ListLibraryItemsError::InternalServerException(inner) => Error::InternalServerException(inner),
793 crate::operation::list_library_items::ListLibraryItemsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
794 crate::operation::list_library_items::ListLibraryItemsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
795 crate::operation::list_library_items::ListLibraryItemsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
796 crate::operation::list_library_items::ListLibraryItemsError::ValidationException(inner) => Error::ValidationException(inner),
797 crate::operation::list_library_items::ListLibraryItemsError::Unhandled(inner) => Error::Unhandled(inner),
798 }
799 }
800}
801impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_q_apps::ListQAppsError, R>> for Error
802where
803 R: Send + Sync + std::fmt::Debug + 'static,
804{
805 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_q_apps::ListQAppsError, R>) -> Self {
806 match err {
807 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
808 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
809 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
810 source: err.into(),
811 }),
812 }
813 }
814}
815impl From<crate::operation::list_q_apps::ListQAppsError> for Error {
816 fn from(err: crate::operation::list_q_apps::ListQAppsError) -> Self {
817 match err {
818 crate::operation::list_q_apps::ListQAppsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
819 crate::operation::list_q_apps::ListQAppsError::InternalServerException(inner) => Error::InternalServerException(inner),
820 crate::operation::list_q_apps::ListQAppsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
821 crate::operation::list_q_apps::ListQAppsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
822 crate::operation::list_q_apps::ListQAppsError::ValidationException(inner) => Error::ValidationException(inner),
823 crate::operation::list_q_apps::ListQAppsError::Unhandled(inner) => Error::Unhandled(inner),
824 }
825 }
826}
827impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_q_app_session_data::ListQAppSessionDataError, R>> for Error
828where
829 R: Send + Sync + std::fmt::Debug + 'static,
830{
831 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_q_app_session_data::ListQAppSessionDataError, R>) -> Self {
832 match err {
833 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
834 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
835 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
836 source: err.into(),
837 }),
838 }
839 }
840}
841impl From<crate::operation::list_q_app_session_data::ListQAppSessionDataError> for Error {
842 fn from(err: crate::operation::list_q_app_session_data::ListQAppSessionDataError) -> Self {
843 match err {
844 crate::operation::list_q_app_session_data::ListQAppSessionDataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
845 crate::operation::list_q_app_session_data::ListQAppSessionDataError::InternalServerException(inner) => {
846 Error::InternalServerException(inner)
847 }
848 crate::operation::list_q_app_session_data::ListQAppSessionDataError::ResourceNotFoundException(inner) => {
849 Error::ResourceNotFoundException(inner)
850 }
851 crate::operation::list_q_app_session_data::ListQAppSessionDataError::ServiceQuotaExceededException(inner) => {
852 Error::ServiceQuotaExceededException(inner)
853 }
854 crate::operation::list_q_app_session_data::ListQAppSessionDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
855 crate::operation::list_q_app_session_data::ListQAppSessionDataError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
856 crate::operation::list_q_app_session_data::ListQAppSessionDataError::ValidationException(inner) => Error::ValidationException(inner),
857 crate::operation::list_q_app_session_data::ListQAppSessionDataError::Unhandled(inner) => Error::Unhandled(inner),
858 }
859 }
860}
861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
862where
863 R: Send + Sync + std::fmt::Debug + 'static,
864{
865 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
866 match err {
867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870 source: err.into(),
871 }),
872 }
873 }
874}
875impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
876 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
877 match err {
878 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
879 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
880 Error::InternalServerException(inner)
881 }
882 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
883 Error::ResourceNotFoundException(inner)
884 }
885 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
886 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
887 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
888 }
889 }
890}
891impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::predict_q_app::PredictQAppError, R>> for Error
892where
893 R: Send + Sync + std::fmt::Debug + 'static,
894{
895 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::predict_q_app::PredictQAppError, R>) -> Self {
896 match err {
897 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
898 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
899 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
900 source: err.into(),
901 }),
902 }
903 }
904}
905impl From<crate::operation::predict_q_app::PredictQAppError> for Error {
906 fn from(err: crate::operation::predict_q_app::PredictQAppError) -> Self {
907 match err {
908 crate::operation::predict_q_app::PredictQAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
909 crate::operation::predict_q_app::PredictQAppError::InternalServerException(inner) => Error::InternalServerException(inner),
910 crate::operation::predict_q_app::PredictQAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
911 crate::operation::predict_q_app::PredictQAppError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
912 crate::operation::predict_q_app::PredictQAppError::ValidationException(inner) => Error::ValidationException(inner),
913 crate::operation::predict_q_app::PredictQAppError::Unhandled(inner) => Error::Unhandled(inner),
914 }
915 }
916}
917impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_q_app_session::StartQAppSessionError, R>> for Error
918where
919 R: Send + Sync + std::fmt::Debug + 'static,
920{
921 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_q_app_session::StartQAppSessionError, R>) -> Self {
922 match err {
923 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
924 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
925 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
926 source: err.into(),
927 }),
928 }
929 }
930}
931impl From<crate::operation::start_q_app_session::StartQAppSessionError> for Error {
932 fn from(err: crate::operation::start_q_app_session::StartQAppSessionError) -> Self {
933 match err {
934 crate::operation::start_q_app_session::StartQAppSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
935 crate::operation::start_q_app_session::StartQAppSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
936 crate::operation::start_q_app_session::StartQAppSessionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
937 crate::operation::start_q_app_session::StartQAppSessionError::ServiceQuotaExceededException(inner) => {
938 Error::ServiceQuotaExceededException(inner)
939 }
940 crate::operation::start_q_app_session::StartQAppSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
941 crate::operation::start_q_app_session::StartQAppSessionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
942 crate::operation::start_q_app_session::StartQAppSessionError::ValidationException(inner) => Error::ValidationException(inner),
943 crate::operation::start_q_app_session::StartQAppSessionError::Unhandled(inner) => Error::Unhandled(inner),
944 }
945 }
946}
947impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_q_app_session::StopQAppSessionError, R>> for Error
948where
949 R: Send + Sync + std::fmt::Debug + 'static,
950{
951 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_q_app_session::StopQAppSessionError, R>) -> Self {
952 match err {
953 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
954 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
955 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
956 source: err.into(),
957 }),
958 }
959 }
960}
961impl From<crate::operation::stop_q_app_session::StopQAppSessionError> for Error {
962 fn from(err: crate::operation::stop_q_app_session::StopQAppSessionError) -> Self {
963 match err {
964 crate::operation::stop_q_app_session::StopQAppSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
965 crate::operation::stop_q_app_session::StopQAppSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
966 crate::operation::stop_q_app_session::StopQAppSessionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
967 crate::operation::stop_q_app_session::StopQAppSessionError::ServiceQuotaExceededException(inner) => {
968 Error::ServiceQuotaExceededException(inner)
969 }
970 crate::operation::stop_q_app_session::StopQAppSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
971 crate::operation::stop_q_app_session::StopQAppSessionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
972 crate::operation::stop_q_app_session::StopQAppSessionError::ValidationException(inner) => Error::ValidationException(inner),
973 crate::operation::stop_q_app_session::StopQAppSessionError::Unhandled(inner) => Error::Unhandled(inner),
974 }
975 }
976}
977impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
978where
979 R: Send + Sync + std::fmt::Debug + 'static,
980{
981 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
982 match err {
983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
986 source: err.into(),
987 }),
988 }
989 }
990}
991impl From<crate::operation::tag_resource::TagResourceError> for Error {
992 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
993 match err {
994 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
995 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
996 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
997 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
998 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
999 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1000 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1001 }
1002 }
1003}
1004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1005where
1006 R: Send + Sync + std::fmt::Debug + 'static,
1007{
1008 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1009 match err {
1010 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1011 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1012 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1013 source: err.into(),
1014 }),
1015 }
1016 }
1017}
1018impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1019 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1020 match err {
1021 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1022 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1023 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1024 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1025 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1026 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1027 }
1028 }
1029}
1030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_library_item::UpdateLibraryItemError, R>> for Error
1031where
1032 R: Send + Sync + std::fmt::Debug + 'static,
1033{
1034 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_library_item::UpdateLibraryItemError, R>) -> Self {
1035 match err {
1036 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1037 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1038 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1039 source: err.into(),
1040 }),
1041 }
1042 }
1043}
1044impl From<crate::operation::update_library_item::UpdateLibraryItemError> for Error {
1045 fn from(err: crate::operation::update_library_item::UpdateLibraryItemError) -> Self {
1046 match err {
1047 crate::operation::update_library_item::UpdateLibraryItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1048 crate::operation::update_library_item::UpdateLibraryItemError::ConflictException(inner) => Error::ConflictException(inner),
1049 crate::operation::update_library_item::UpdateLibraryItemError::InternalServerException(inner) => Error::InternalServerException(inner),
1050 crate::operation::update_library_item::UpdateLibraryItemError::ResourceNotFoundException(inner) => {
1051 Error::ResourceNotFoundException(inner)
1052 }
1053 crate::operation::update_library_item::UpdateLibraryItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1054 crate::operation::update_library_item::UpdateLibraryItemError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1055 crate::operation::update_library_item::UpdateLibraryItemError::ValidationException(inner) => Error::ValidationException(inner),
1056 crate::operation::update_library_item::UpdateLibraryItemError::Unhandled(inner) => Error::Unhandled(inner),
1057 }
1058 }
1059}
1060impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError, R>>
1061 for Error
1062where
1063 R: Send + Sync + std::fmt::Debug + 'static,
1064{
1065 fn from(
1066 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError, R>,
1067 ) -> Self {
1068 match err {
1069 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1070 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1071 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1072 source: err.into(),
1073 }),
1074 }
1075 }
1076}
1077impl From<crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError> for Error {
1078 fn from(err: crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError) -> Self {
1079 match err {
1080 crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError::AccessDeniedException(inner) => {
1081 Error::AccessDeniedException(inner)
1082 }
1083 crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError::ConflictException(inner) => {
1084 Error::ConflictException(inner)
1085 }
1086 crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError::InternalServerException(inner) => {
1087 Error::InternalServerException(inner)
1088 }
1089 crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError::ResourceNotFoundException(inner) => {
1090 Error::ResourceNotFoundException(inner)
1091 }
1092 crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError::ThrottlingException(inner) => {
1093 Error::ThrottlingException(inner)
1094 }
1095 crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError::UnauthorizedException(inner) => {
1096 Error::UnauthorizedException(inner)
1097 }
1098 crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError::ValidationException(inner) => {
1099 Error::ValidationException(inner)
1100 }
1101 crate::operation::update_library_item_metadata::UpdateLibraryItemMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1102 }
1103 }
1104}
1105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_q_app::UpdateQAppError, R>> for Error
1106where
1107 R: Send + Sync + std::fmt::Debug + 'static,
1108{
1109 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_q_app::UpdateQAppError, R>) -> Self {
1110 match err {
1111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1114 source: err.into(),
1115 }),
1116 }
1117 }
1118}
1119impl From<crate::operation::update_q_app::UpdateQAppError> for Error {
1120 fn from(err: crate::operation::update_q_app::UpdateQAppError) -> Self {
1121 match err {
1122 crate::operation::update_q_app::UpdateQAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1123 crate::operation::update_q_app::UpdateQAppError::ContentTooLargeException(inner) => Error::ContentTooLargeException(inner),
1124 crate::operation::update_q_app::UpdateQAppError::InternalServerException(inner) => Error::InternalServerException(inner),
1125 crate::operation::update_q_app::UpdateQAppError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1126 crate::operation::update_q_app::UpdateQAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1127 crate::operation::update_q_app::UpdateQAppError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1128 crate::operation::update_q_app::UpdateQAppError::ValidationException(inner) => Error::ValidationException(inner),
1129 crate::operation::update_q_app::UpdateQAppError::Unhandled(inner) => Error::Unhandled(inner),
1130 }
1131 }
1132}
1133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_q_app_permissions::UpdateQAppPermissionsError, R>> for Error
1134where
1135 R: Send + Sync + std::fmt::Debug + 'static,
1136{
1137 fn from(
1138 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_q_app_permissions::UpdateQAppPermissionsError, R>,
1139 ) -> Self {
1140 match err {
1141 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1142 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1143 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1144 source: err.into(),
1145 }),
1146 }
1147 }
1148}
1149impl From<crate::operation::update_q_app_permissions::UpdateQAppPermissionsError> for Error {
1150 fn from(err: crate::operation::update_q_app_permissions::UpdateQAppPermissionsError) -> Self {
1151 match err {
1152 crate::operation::update_q_app_permissions::UpdateQAppPermissionsError::AccessDeniedException(inner) => {
1153 Error::AccessDeniedException(inner)
1154 }
1155 crate::operation::update_q_app_permissions::UpdateQAppPermissionsError::InternalServerException(inner) => {
1156 Error::InternalServerException(inner)
1157 }
1158 crate::operation::update_q_app_permissions::UpdateQAppPermissionsError::ResourceNotFoundException(inner) => {
1159 Error::ResourceNotFoundException(inner)
1160 }
1161 crate::operation::update_q_app_permissions::UpdateQAppPermissionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1162 crate::operation::update_q_app_permissions::UpdateQAppPermissionsError::UnauthorizedException(inner) => {
1163 Error::UnauthorizedException(inner)
1164 }
1165 crate::operation::update_q_app_permissions::UpdateQAppPermissionsError::ValidationException(inner) => Error::ValidationException(inner),
1166 crate::operation::update_q_app_permissions::UpdateQAppPermissionsError::Unhandled(inner) => Error::Unhandled(inner),
1167 }
1168 }
1169}
1170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_q_app_session::UpdateQAppSessionError, R>> for Error
1171where
1172 R: Send + Sync + std::fmt::Debug + 'static,
1173{
1174 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_q_app_session::UpdateQAppSessionError, R>) -> Self {
1175 match err {
1176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1179 source: err.into(),
1180 }),
1181 }
1182 }
1183}
1184impl From<crate::operation::update_q_app_session::UpdateQAppSessionError> for Error {
1185 fn from(err: crate::operation::update_q_app_session::UpdateQAppSessionError) -> Self {
1186 match err {
1187 crate::operation::update_q_app_session::UpdateQAppSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1188 crate::operation::update_q_app_session::UpdateQAppSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
1189 crate::operation::update_q_app_session::UpdateQAppSessionError::ResourceNotFoundException(inner) => {
1190 Error::ResourceNotFoundException(inner)
1191 }
1192 crate::operation::update_q_app_session::UpdateQAppSessionError::ServiceQuotaExceededException(inner) => {
1193 Error::ServiceQuotaExceededException(inner)
1194 }
1195 crate::operation::update_q_app_session::UpdateQAppSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1196 crate::operation::update_q_app_session::UpdateQAppSessionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1197 crate::operation::update_q_app_session::UpdateQAppSessionError::ValidationException(inner) => Error::ValidationException(inner),
1198 crate::operation::update_q_app_session::UpdateQAppSessionError::Unhandled(inner) => Error::Unhandled(inner),
1199 }
1200 }
1201}
1202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError, R>>
1203 for Error
1204where
1205 R: Send + Sync + std::fmt::Debug + 'static,
1206{
1207 fn from(
1208 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError, R>,
1209 ) -> Self {
1210 match err {
1211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1214 source: err.into(),
1215 }),
1216 }
1217 }
1218}
1219impl From<crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError> for Error {
1220 fn from(err: crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError) -> Self {
1221 match err {
1222 crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError::AccessDeniedException(inner) => {
1223 Error::AccessDeniedException(inner)
1224 }
1225 crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError::InternalServerException(inner) => {
1226 Error::InternalServerException(inner)
1227 }
1228 crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError::ResourceNotFoundException(inner) => {
1229 Error::ResourceNotFoundException(inner)
1230 }
1231 crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError::ServiceQuotaExceededException(inner) => {
1232 Error::ServiceQuotaExceededException(inner)
1233 }
1234 crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError::ThrottlingException(inner) => {
1235 Error::ThrottlingException(inner)
1236 }
1237 crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError::UnauthorizedException(inner) => {
1238 Error::UnauthorizedException(inner)
1239 }
1240 crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError::ValidationException(inner) => {
1241 Error::ValidationException(inner)
1242 }
1243 crate::operation::update_q_app_session_metadata::UpdateQAppSessionMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1244 }
1245 }
1246}
1247impl ::std::error::Error for Error {
1248 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1249 match self {
1250 Error::AccessDeniedException(inner) => inner.source(),
1251 Error::ConflictException(inner) => inner.source(),
1252 Error::ContentTooLargeException(inner) => inner.source(),
1253 Error::InternalServerException(inner) => inner.source(),
1254 Error::ResourceNotFoundException(inner) => inner.source(),
1255 Error::ServiceQuotaExceededException(inner) => inner.source(),
1256 Error::ThrottlingException(inner) => inner.source(),
1257 Error::UnauthorizedException(inner) => inner.source(),
1258 Error::ValidationException(inner) => inner.source(),
1259 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1260 }
1261 }
1262}
1263impl ::aws_types::request_id::RequestId for Error {
1264 fn request_id(&self) -> Option<&str> {
1265 match self {
1266 Self::AccessDeniedException(e) => e.request_id(),
1267 Self::ConflictException(e) => e.request_id(),
1268 Self::ContentTooLargeException(e) => e.request_id(),
1269 Self::InternalServerException(e) => e.request_id(),
1270 Self::ResourceNotFoundException(e) => e.request_id(),
1271 Self::ServiceQuotaExceededException(e) => e.request_id(),
1272 Self::ThrottlingException(e) => e.request_id(),
1273 Self::UnauthorizedException(e) => e.request_id(),
1274 Self::ValidationException(e) => e.request_id(),
1275 Self::Unhandled(e) => e.meta.request_id(),
1276 }
1277 }
1278}