1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 BadRequestException(crate::types::error::BadRequestException),
10 ConflictException(crate::types::error::ConflictException),
12 ForbiddenException(crate::types::error::ForbiddenException),
14 NotFoundException(crate::types::error::NotFoundException),
16 ResourceLimitExceededException(crate::types::error::ResourceLimitExceededException),
18 ServiceFailureException(crate::types::error::ServiceFailureException),
20 ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
22 ThrottledClientException(crate::types::error::ThrottledClientException),
24 UnauthorizedClientException(crate::types::error::UnauthorizedClientException),
26 UnprocessableEntityException(crate::types::error::UnprocessableEntityException),
28 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
30 variable wildcard pattern and check `.code()`:
31 \
32 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
33 \
34 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
35 Unhandled(crate::error::sealed_unhandled::Unhandled),
36}
37impl ::std::fmt::Display for Error {
38 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39 match self {
40 Error::AccessDeniedException(inner) => inner.fmt(f),
41 Error::BadRequestException(inner) => inner.fmt(f),
42 Error::ConflictException(inner) => inner.fmt(f),
43 Error::ForbiddenException(inner) => inner.fmt(f),
44 Error::NotFoundException(inner) => inner.fmt(f),
45 Error::ResourceLimitExceededException(inner) => inner.fmt(f),
46 Error::ServiceFailureException(inner) => inner.fmt(f),
47 Error::ServiceUnavailableException(inner) => inner.fmt(f),
48 Error::ThrottledClientException(inner) => inner.fmt(f),
49 Error::UnauthorizedClientException(inner) => inner.fmt(f),
50 Error::UnprocessableEntityException(inner) => inner.fmt(f),
51 Error::Unhandled(_) => {
52 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
53 write!(f, "unhandled error ({code})")
54 } else {
55 f.write_str("unhandled error")
56 }
57 }
58 }
59 }
60}
61impl From<::aws_smithy_types::error::operation::BuildError> for Error {
62 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
63 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
64 source: value.into(),
65 meta: ::std::default::Default::default(),
66 })
67 }
68}
69impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
70 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
71 match self {
72 Self::AccessDeniedException(inner) => inner.meta(),
73 Self::BadRequestException(inner) => inner.meta(),
74 Self::ConflictException(inner) => inner.meta(),
75 Self::ForbiddenException(inner) => inner.meta(),
76 Self::NotFoundException(inner) => inner.meta(),
77 Self::ResourceLimitExceededException(inner) => inner.meta(),
78 Self::ServiceFailureException(inner) => inner.meta(),
79 Self::ServiceUnavailableException(inner) => inner.meta(),
80 Self::ThrottledClientException(inner) => inner.meta(),
81 Self::UnauthorizedClientException(inner) => inner.meta(),
82 Self::UnprocessableEntityException(inner) => inner.meta(),
83 Self::Unhandled(inner) => &inner.meta,
84 }
85 }
86}
87impl<R>
88 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError, R>>
89 for Error
90where
91 R: Send + Sync + std::fmt::Debug + 'static,
92{
93 fn from(
94 err: ::aws_smithy_runtime_api::client::result::SdkError<
95 crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError,
96 R,
97 >,
98 ) -> Self {
99 match err {
100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
103 source: err.into(),
104 }),
105 }
106 }
107}
108impl From<crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError> for Error {
109 fn from(err: crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError) -> Self {
110 match err {
111 crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError::AccessDeniedException(inner) => {
112 Error::AccessDeniedException(inner)
113 }
114 crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError::BadRequestException(inner) => {
115 Error::BadRequestException(inner)
116 }
117 crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError::ForbiddenException(inner) => {
118 Error::ForbiddenException(inner)
119 }
120 crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError::NotFoundException(inner) => {
121 Error::NotFoundException(inner)
122 }
123 crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError::ServiceFailureException(inner) => {
124 Error::ServiceFailureException(inner)
125 }
126 crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError::ServiceUnavailableException(inner) => {
127 Error::ServiceUnavailableException(inner)
128 }
129 crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError::ThrottledClientException(inner) => {
130 Error::ThrottledClientException(inner)
131 }
132 crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError::UnauthorizedClientException(inner) => {
133 Error::UnauthorizedClientException(inner)
134 }
135 crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError::Unhandled(inner) => Error::Unhandled(inner),
136 }
137 }
138}
139impl<R>
140 From<
141 ::aws_smithy_runtime_api::client::result::SdkError<
142 crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError,
143 R,
144 >,
145 > for Error
146where
147 R: Send + Sync + std::fmt::Debug + 'static,
148{
149 fn from(
150 err: ::aws_smithy_runtime_api::client::result::SdkError<
151 crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError,
152 R,
153 >,
154 ) -> Self {
155 match err {
156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
159 source: err.into(),
160 }),
161 }
162 }
163}
164impl From<crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError> for Error {
165 fn from(err: crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError) -> Self {
166 match err {
167 crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError::BadRequestException(inner) => Error::BadRequestException(inner),
168 crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError::ForbiddenException(inner) => Error::ForbiddenException(inner),
169 crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError::NotFoundException(inner) => Error::NotFoundException(inner),
170 crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
171 crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
172 crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
173 crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
174 crate::operation::associate_signin_delegate_groups_with_account::AssociateSigninDelegateGroupsWithAccountError::Unhandled(inner) => Error::Unhandled(inner),
175 }
176 }
177}
178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError, R>>
179 for Error
180where
181 R: Send + Sync + std::fmt::Debug + 'static,
182{
183 fn from(
184 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError, R>,
185 ) -> Self {
186 match err {
187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
190 source: err.into(),
191 }),
192 }
193 }
194}
195impl From<crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError> for Error {
196 fn from(err: crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError) -> Self {
197 match err {
198 crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError::BadRequestException(inner) => {
199 Error::BadRequestException(inner)
200 }
201 crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError::ForbiddenException(inner) => {
202 Error::ForbiddenException(inner)
203 }
204 crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError::NotFoundException(inner) => {
205 Error::NotFoundException(inner)
206 }
207 crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError::ServiceFailureException(inner) => {
208 Error::ServiceFailureException(inner)
209 }
210 crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError::ServiceUnavailableException(inner) => {
211 Error::ServiceUnavailableException(inner)
212 }
213 crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError::ThrottledClientException(inner) => {
214 Error::ThrottledClientException(inner)
215 }
216 crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError::UnauthorizedClientException(inner) => {
217 Error::UnauthorizedClientException(inner)
218 }
219 crate::operation::batch_create_room_membership::BatchCreateRoomMembershipError::Unhandled(inner) => Error::Unhandled(inner),
220 }
221 }
222}
223impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError, R>>
224 for Error
225where
226 R: Send + Sync + std::fmt::Debug + 'static,
227{
228 fn from(
229 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError, R>,
230 ) -> Self {
231 match err {
232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
235 source: err.into(),
236 }),
237 }
238 }
239}
240impl From<crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError> for Error {
241 fn from(err: crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError) -> Self {
242 match err {
243 crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError::BadRequestException(inner) => Error::BadRequestException(inner),
244 crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError::ForbiddenException(inner) => Error::ForbiddenException(inner),
245 crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError::NotFoundException(inner) => Error::NotFoundException(inner),
246 crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError::ServiceFailureException(inner) => {
247 Error::ServiceFailureException(inner)
248 }
249 crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError::ServiceUnavailableException(inner) => {
250 Error::ServiceUnavailableException(inner)
251 }
252 crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError::ThrottledClientException(inner) => {
253 Error::ThrottledClientException(inner)
254 }
255 crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError::UnauthorizedClientException(inner) => {
256 Error::UnauthorizedClientException(inner)
257 }
258 crate::operation::batch_delete_phone_number::BatchDeletePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
259 }
260 }
261}
262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_suspend_user::BatchSuspendUserError, R>> for Error
263where
264 R: Send + Sync + std::fmt::Debug + 'static,
265{
266 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_suspend_user::BatchSuspendUserError, R>) -> Self {
267 match err {
268 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
269 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
270 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
271 source: err.into(),
272 }),
273 }
274 }
275}
276impl From<crate::operation::batch_suspend_user::BatchSuspendUserError> for Error {
277 fn from(err: crate::operation::batch_suspend_user::BatchSuspendUserError) -> Self {
278 match err {
279 crate::operation::batch_suspend_user::BatchSuspendUserError::BadRequestException(inner) => Error::BadRequestException(inner),
280 crate::operation::batch_suspend_user::BatchSuspendUserError::ForbiddenException(inner) => Error::ForbiddenException(inner),
281 crate::operation::batch_suspend_user::BatchSuspendUserError::NotFoundException(inner) => Error::NotFoundException(inner),
282 crate::operation::batch_suspend_user::BatchSuspendUserError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
283 crate::operation::batch_suspend_user::BatchSuspendUserError::ServiceUnavailableException(inner) => {
284 Error::ServiceUnavailableException(inner)
285 }
286 crate::operation::batch_suspend_user::BatchSuspendUserError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
287 crate::operation::batch_suspend_user::BatchSuspendUserError::UnauthorizedClientException(inner) => {
288 Error::UnauthorizedClientException(inner)
289 }
290 crate::operation::batch_suspend_user::BatchSuspendUserError::Unhandled(inner) => Error::Unhandled(inner),
291 }
292 }
293}
294impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_unsuspend_user::BatchUnsuspendUserError, R>> for Error
295where
296 R: Send + Sync + std::fmt::Debug + 'static,
297{
298 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_unsuspend_user::BatchUnsuspendUserError, R>) -> Self {
299 match err {
300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
303 source: err.into(),
304 }),
305 }
306 }
307}
308impl From<crate::operation::batch_unsuspend_user::BatchUnsuspendUserError> for Error {
309 fn from(err: crate::operation::batch_unsuspend_user::BatchUnsuspendUserError) -> Self {
310 match err {
311 crate::operation::batch_unsuspend_user::BatchUnsuspendUserError::BadRequestException(inner) => Error::BadRequestException(inner),
312 crate::operation::batch_unsuspend_user::BatchUnsuspendUserError::ForbiddenException(inner) => Error::ForbiddenException(inner),
313 crate::operation::batch_unsuspend_user::BatchUnsuspendUserError::NotFoundException(inner) => Error::NotFoundException(inner),
314 crate::operation::batch_unsuspend_user::BatchUnsuspendUserError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
315 crate::operation::batch_unsuspend_user::BatchUnsuspendUserError::ServiceUnavailableException(inner) => {
316 Error::ServiceUnavailableException(inner)
317 }
318 crate::operation::batch_unsuspend_user::BatchUnsuspendUserError::ThrottledClientException(inner) => {
319 Error::ThrottledClientException(inner)
320 }
321 crate::operation::batch_unsuspend_user::BatchUnsuspendUserError::UnauthorizedClientException(inner) => {
322 Error::UnauthorizedClientException(inner)
323 }
324 crate::operation::batch_unsuspend_user::BatchUnsuspendUserError::Unhandled(inner) => Error::Unhandled(inner),
325 }
326 }
327}
328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError, R>>
329 for Error
330where
331 R: Send + Sync + std::fmt::Debug + 'static,
332{
333 fn from(
334 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError, R>,
335 ) -> Self {
336 match err {
337 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
338 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
339 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
340 source: err.into(),
341 }),
342 }
343 }
344}
345impl From<crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError> for Error {
346 fn from(err: crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError) -> Self {
347 match err {
348 crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError::BadRequestException(inner) => Error::BadRequestException(inner),
349 crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError::ForbiddenException(inner) => Error::ForbiddenException(inner),
350 crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError::NotFoundException(inner) => Error::NotFoundException(inner),
351 crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError::ServiceFailureException(inner) => {
352 Error::ServiceFailureException(inner)
353 }
354 crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError::ServiceUnavailableException(inner) => {
355 Error::ServiceUnavailableException(inner)
356 }
357 crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError::ThrottledClientException(inner) => {
358 Error::ThrottledClientException(inner)
359 }
360 crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError::UnauthorizedClientException(inner) => {
361 Error::UnauthorizedClientException(inner)
362 }
363 crate::operation::batch_update_phone_number::BatchUpdatePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
364 }
365 }
366}
367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_user::BatchUpdateUserError, R>> for Error
368where
369 R: Send + Sync + std::fmt::Debug + 'static,
370{
371 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_user::BatchUpdateUserError, R>) -> Self {
372 match err {
373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
376 source: err.into(),
377 }),
378 }
379 }
380}
381impl From<crate::operation::batch_update_user::BatchUpdateUserError> for Error {
382 fn from(err: crate::operation::batch_update_user::BatchUpdateUserError) -> Self {
383 match err {
384 crate::operation::batch_update_user::BatchUpdateUserError::BadRequestException(inner) => Error::BadRequestException(inner),
385 crate::operation::batch_update_user::BatchUpdateUserError::ForbiddenException(inner) => Error::ForbiddenException(inner),
386 crate::operation::batch_update_user::BatchUpdateUserError::NotFoundException(inner) => Error::NotFoundException(inner),
387 crate::operation::batch_update_user::BatchUpdateUserError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
388 crate::operation::batch_update_user::BatchUpdateUserError::ServiceUnavailableException(inner) => {
389 Error::ServiceUnavailableException(inner)
390 }
391 crate::operation::batch_update_user::BatchUpdateUserError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
392 crate::operation::batch_update_user::BatchUpdateUserError::UnauthorizedClientException(inner) => {
393 Error::UnauthorizedClientException(inner)
394 }
395 crate::operation::batch_update_user::BatchUpdateUserError::Unhandled(inner) => Error::Unhandled(inner),
396 }
397 }
398}
399impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_account::CreateAccountError, R>> for Error
400where
401 R: Send + Sync + std::fmt::Debug + 'static,
402{
403 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_account::CreateAccountError, R>) -> Self {
404 match err {
405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
408 source: err.into(),
409 }),
410 }
411 }
412}
413impl From<crate::operation::create_account::CreateAccountError> for Error {
414 fn from(err: crate::operation::create_account::CreateAccountError) -> Self {
415 match err {
416 crate::operation::create_account::CreateAccountError::BadRequestException(inner) => Error::BadRequestException(inner),
417 crate::operation::create_account::CreateAccountError::ForbiddenException(inner) => Error::ForbiddenException(inner),
418 crate::operation::create_account::CreateAccountError::NotFoundException(inner) => Error::NotFoundException(inner),
419 crate::operation::create_account::CreateAccountError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
420 crate::operation::create_account::CreateAccountError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
421 crate::operation::create_account::CreateAccountError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
422 crate::operation::create_account::CreateAccountError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
423 crate::operation::create_account::CreateAccountError::Unhandled(inner) => Error::Unhandled(inner),
424 }
425 }
426}
427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot::CreateBotError, R>> for Error
428where
429 R: Send + Sync + std::fmt::Debug + 'static,
430{
431 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot::CreateBotError, R>) -> Self {
432 match err {
433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
436 source: err.into(),
437 }),
438 }
439 }
440}
441impl From<crate::operation::create_bot::CreateBotError> for Error {
442 fn from(err: crate::operation::create_bot::CreateBotError) -> Self {
443 match err {
444 crate::operation::create_bot::CreateBotError::BadRequestException(inner) => Error::BadRequestException(inner),
445 crate::operation::create_bot::CreateBotError::ForbiddenException(inner) => Error::ForbiddenException(inner),
446 crate::operation::create_bot::CreateBotError::NotFoundException(inner) => Error::NotFoundException(inner),
447 crate::operation::create_bot::CreateBotError::ResourceLimitExceededException(inner) => Error::ResourceLimitExceededException(inner),
448 crate::operation::create_bot::CreateBotError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
449 crate::operation::create_bot::CreateBotError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
450 crate::operation::create_bot::CreateBotError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
451 crate::operation::create_bot::CreateBotError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
452 crate::operation::create_bot::CreateBotError::Unhandled(inner) => Error::Unhandled(inner),
453 }
454 }
455}
456impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_meeting_dial_out::CreateMeetingDialOutError, R>> for Error
457where
458 R: Send + Sync + std::fmt::Debug + 'static,
459{
460 fn from(
461 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_meeting_dial_out::CreateMeetingDialOutError, R>,
462 ) -> Self {
463 match err {
464 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
465 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
466 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
467 source: err.into(),
468 }),
469 }
470 }
471}
472impl From<crate::operation::create_meeting_dial_out::CreateMeetingDialOutError> for Error {
473 fn from(err: crate::operation::create_meeting_dial_out::CreateMeetingDialOutError) -> Self {
474 match err {
475 crate::operation::create_meeting_dial_out::CreateMeetingDialOutError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
476 crate::operation::create_meeting_dial_out::CreateMeetingDialOutError::BadRequestException(inner) => Error::BadRequestException(inner),
477 crate::operation::create_meeting_dial_out::CreateMeetingDialOutError::ForbiddenException(inner) => Error::ForbiddenException(inner),
478 crate::operation::create_meeting_dial_out::CreateMeetingDialOutError::ResourceLimitExceededException(inner) => {
479 Error::ResourceLimitExceededException(inner)
480 }
481 crate::operation::create_meeting_dial_out::CreateMeetingDialOutError::ServiceFailureException(inner) => {
482 Error::ServiceFailureException(inner)
483 }
484 crate::operation::create_meeting_dial_out::CreateMeetingDialOutError::ServiceUnavailableException(inner) => {
485 Error::ServiceUnavailableException(inner)
486 }
487 crate::operation::create_meeting_dial_out::CreateMeetingDialOutError::ThrottledClientException(inner) => {
488 Error::ThrottledClientException(inner)
489 }
490 crate::operation::create_meeting_dial_out::CreateMeetingDialOutError::UnauthorizedClientException(inner) => {
491 Error::UnauthorizedClientException(inner)
492 }
493 crate::operation::create_meeting_dial_out::CreateMeetingDialOutError::Unhandled(inner) => Error::Unhandled(inner),
494 }
495 }
496}
497impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_phone_number_order::CreatePhoneNumberOrderError, R>>
498 for Error
499where
500 R: Send + Sync + std::fmt::Debug + 'static,
501{
502 fn from(
503 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_phone_number_order::CreatePhoneNumberOrderError, R>,
504 ) -> Self {
505 match err {
506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
509 source: err.into(),
510 }),
511 }
512 }
513}
514impl From<crate::operation::create_phone_number_order::CreatePhoneNumberOrderError> for Error {
515 fn from(err: crate::operation::create_phone_number_order::CreatePhoneNumberOrderError) -> Self {
516 match err {
517 crate::operation::create_phone_number_order::CreatePhoneNumberOrderError::AccessDeniedException(inner) => {
518 Error::AccessDeniedException(inner)
519 }
520 crate::operation::create_phone_number_order::CreatePhoneNumberOrderError::BadRequestException(inner) => Error::BadRequestException(inner),
521 crate::operation::create_phone_number_order::CreatePhoneNumberOrderError::ForbiddenException(inner) => Error::ForbiddenException(inner),
522 crate::operation::create_phone_number_order::CreatePhoneNumberOrderError::ResourceLimitExceededException(inner) => {
523 Error::ResourceLimitExceededException(inner)
524 }
525 crate::operation::create_phone_number_order::CreatePhoneNumberOrderError::ServiceFailureException(inner) => {
526 Error::ServiceFailureException(inner)
527 }
528 crate::operation::create_phone_number_order::CreatePhoneNumberOrderError::ServiceUnavailableException(inner) => {
529 Error::ServiceUnavailableException(inner)
530 }
531 crate::operation::create_phone_number_order::CreatePhoneNumberOrderError::ThrottledClientException(inner) => {
532 Error::ThrottledClientException(inner)
533 }
534 crate::operation::create_phone_number_order::CreatePhoneNumberOrderError::UnauthorizedClientException(inner) => {
535 Error::UnauthorizedClientException(inner)
536 }
537 crate::operation::create_phone_number_order::CreatePhoneNumberOrderError::Unhandled(inner) => Error::Unhandled(inner),
538 }
539 }
540}
541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_room::CreateRoomError, R>> for Error
542where
543 R: Send + Sync + std::fmt::Debug + 'static,
544{
545 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_room::CreateRoomError, R>) -> Self {
546 match err {
547 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
548 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
549 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
550 source: err.into(),
551 }),
552 }
553 }
554}
555impl From<crate::operation::create_room::CreateRoomError> for Error {
556 fn from(err: crate::operation::create_room::CreateRoomError) -> Self {
557 match err {
558 crate::operation::create_room::CreateRoomError::BadRequestException(inner) => Error::BadRequestException(inner),
559 crate::operation::create_room::CreateRoomError::ForbiddenException(inner) => Error::ForbiddenException(inner),
560 crate::operation::create_room::CreateRoomError::NotFoundException(inner) => Error::NotFoundException(inner),
561 crate::operation::create_room::CreateRoomError::ResourceLimitExceededException(inner) => Error::ResourceLimitExceededException(inner),
562 crate::operation::create_room::CreateRoomError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
563 crate::operation::create_room::CreateRoomError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
564 crate::operation::create_room::CreateRoomError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
565 crate::operation::create_room::CreateRoomError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
566 crate::operation::create_room::CreateRoomError::Unhandled(inner) => Error::Unhandled(inner),
567 }
568 }
569}
570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_room_membership::CreateRoomMembershipError, R>> for Error
571where
572 R: Send + Sync + std::fmt::Debug + 'static,
573{
574 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_room_membership::CreateRoomMembershipError, R>) -> Self {
575 match err {
576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
579 source: err.into(),
580 }),
581 }
582 }
583}
584impl From<crate::operation::create_room_membership::CreateRoomMembershipError> for Error {
585 fn from(err: crate::operation::create_room_membership::CreateRoomMembershipError) -> Self {
586 match err {
587 crate::operation::create_room_membership::CreateRoomMembershipError::BadRequestException(inner) => Error::BadRequestException(inner),
588 crate::operation::create_room_membership::CreateRoomMembershipError::ConflictException(inner) => Error::ConflictException(inner),
589 crate::operation::create_room_membership::CreateRoomMembershipError::ForbiddenException(inner) => Error::ForbiddenException(inner),
590 crate::operation::create_room_membership::CreateRoomMembershipError::NotFoundException(inner) => Error::NotFoundException(inner),
591 crate::operation::create_room_membership::CreateRoomMembershipError::ResourceLimitExceededException(inner) => {
592 Error::ResourceLimitExceededException(inner)
593 }
594 crate::operation::create_room_membership::CreateRoomMembershipError::ServiceFailureException(inner) => {
595 Error::ServiceFailureException(inner)
596 }
597 crate::operation::create_room_membership::CreateRoomMembershipError::ServiceUnavailableException(inner) => {
598 Error::ServiceUnavailableException(inner)
599 }
600 crate::operation::create_room_membership::CreateRoomMembershipError::ThrottledClientException(inner) => {
601 Error::ThrottledClientException(inner)
602 }
603 crate::operation::create_room_membership::CreateRoomMembershipError::UnauthorizedClientException(inner) => {
604 Error::UnauthorizedClientException(inner)
605 }
606 crate::operation::create_room_membership::CreateRoomMembershipError::Unhandled(inner) => Error::Unhandled(inner),
607 }
608 }
609}
610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>> for Error
611where
612 R: Send + Sync + std::fmt::Debug + 'static,
613{
614 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>) -> Self {
615 match err {
616 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
617 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
618 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
619 source: err.into(),
620 }),
621 }
622 }
623}
624impl From<crate::operation::create_user::CreateUserError> for Error {
625 fn from(err: crate::operation::create_user::CreateUserError) -> Self {
626 match err {
627 crate::operation::create_user::CreateUserError::BadRequestException(inner) => Error::BadRequestException(inner),
628 crate::operation::create_user::CreateUserError::ConflictException(inner) => Error::ConflictException(inner),
629 crate::operation::create_user::CreateUserError::ForbiddenException(inner) => Error::ForbiddenException(inner),
630 crate::operation::create_user::CreateUserError::NotFoundException(inner) => Error::NotFoundException(inner),
631 crate::operation::create_user::CreateUserError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
632 crate::operation::create_user::CreateUserError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
633 crate::operation::create_user::CreateUserError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
634 crate::operation::create_user::CreateUserError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
635 crate::operation::create_user::CreateUserError::Unhandled(inner) => Error::Unhandled(inner),
636 }
637 }
638}
639impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account::DeleteAccountError, R>> for Error
640where
641 R: Send + Sync + std::fmt::Debug + 'static,
642{
643 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account::DeleteAccountError, R>) -> Self {
644 match err {
645 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
646 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
647 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
648 source: err.into(),
649 }),
650 }
651 }
652}
653impl From<crate::operation::delete_account::DeleteAccountError> for Error {
654 fn from(err: crate::operation::delete_account::DeleteAccountError) -> Self {
655 match err {
656 crate::operation::delete_account::DeleteAccountError::BadRequestException(inner) => Error::BadRequestException(inner),
657 crate::operation::delete_account::DeleteAccountError::ForbiddenException(inner) => Error::ForbiddenException(inner),
658 crate::operation::delete_account::DeleteAccountError::NotFoundException(inner) => Error::NotFoundException(inner),
659 crate::operation::delete_account::DeleteAccountError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
660 crate::operation::delete_account::DeleteAccountError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
661 crate::operation::delete_account::DeleteAccountError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
662 crate::operation::delete_account::DeleteAccountError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
663 crate::operation::delete_account::DeleteAccountError::UnprocessableEntityException(inner) => Error::UnprocessableEntityException(inner),
664 crate::operation::delete_account::DeleteAccountError::Unhandled(inner) => Error::Unhandled(inner),
665 }
666 }
667}
668impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_events_configuration::DeleteEventsConfigurationError, R>>
669 for Error
670where
671 R: Send + Sync + std::fmt::Debug + 'static,
672{
673 fn from(
674 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_events_configuration::DeleteEventsConfigurationError, R>,
675 ) -> Self {
676 match err {
677 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
678 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
679 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
680 source: err.into(),
681 }),
682 }
683 }
684}
685impl From<crate::operation::delete_events_configuration::DeleteEventsConfigurationError> for Error {
686 fn from(err: crate::operation::delete_events_configuration::DeleteEventsConfigurationError) -> Self {
687 match err {
688 crate::operation::delete_events_configuration::DeleteEventsConfigurationError::BadRequestException(inner) => {
689 Error::BadRequestException(inner)
690 }
691 crate::operation::delete_events_configuration::DeleteEventsConfigurationError::ForbiddenException(inner) => {
692 Error::ForbiddenException(inner)
693 }
694 crate::operation::delete_events_configuration::DeleteEventsConfigurationError::ResourceLimitExceededException(inner) => {
695 Error::ResourceLimitExceededException(inner)
696 }
697 crate::operation::delete_events_configuration::DeleteEventsConfigurationError::ServiceFailureException(inner) => {
698 Error::ServiceFailureException(inner)
699 }
700 crate::operation::delete_events_configuration::DeleteEventsConfigurationError::ServiceUnavailableException(inner) => {
701 Error::ServiceUnavailableException(inner)
702 }
703 crate::operation::delete_events_configuration::DeleteEventsConfigurationError::UnauthorizedClientException(inner) => {
704 Error::UnauthorizedClientException(inner)
705 }
706 crate::operation::delete_events_configuration::DeleteEventsConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
707 }
708 }
709}
710impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_phone_number::DeletePhoneNumberError, R>> for Error
711where
712 R: Send + Sync + std::fmt::Debug + 'static,
713{
714 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_phone_number::DeletePhoneNumberError, R>) -> Self {
715 match err {
716 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
717 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
718 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
719 source: err.into(),
720 }),
721 }
722 }
723}
724impl From<crate::operation::delete_phone_number::DeletePhoneNumberError> for Error {
725 fn from(err: crate::operation::delete_phone_number::DeletePhoneNumberError) -> Self {
726 match err {
727 crate::operation::delete_phone_number::DeletePhoneNumberError::BadRequestException(inner) => Error::BadRequestException(inner),
728 crate::operation::delete_phone_number::DeletePhoneNumberError::ForbiddenException(inner) => Error::ForbiddenException(inner),
729 crate::operation::delete_phone_number::DeletePhoneNumberError::NotFoundException(inner) => Error::NotFoundException(inner),
730 crate::operation::delete_phone_number::DeletePhoneNumberError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
731 crate::operation::delete_phone_number::DeletePhoneNumberError::ServiceUnavailableException(inner) => {
732 Error::ServiceUnavailableException(inner)
733 }
734 crate::operation::delete_phone_number::DeletePhoneNumberError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
735 crate::operation::delete_phone_number::DeletePhoneNumberError::UnauthorizedClientException(inner) => {
736 Error::UnauthorizedClientException(inner)
737 }
738 crate::operation::delete_phone_number::DeletePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
739 }
740 }
741}
742impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_room::DeleteRoomError, R>> for Error
743where
744 R: Send + Sync + std::fmt::Debug + 'static,
745{
746 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_room::DeleteRoomError, R>) -> Self {
747 match err {
748 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
749 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
750 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
751 source: err.into(),
752 }),
753 }
754 }
755}
756impl From<crate::operation::delete_room::DeleteRoomError> for Error {
757 fn from(err: crate::operation::delete_room::DeleteRoomError) -> Self {
758 match err {
759 crate::operation::delete_room::DeleteRoomError::BadRequestException(inner) => Error::BadRequestException(inner),
760 crate::operation::delete_room::DeleteRoomError::ForbiddenException(inner) => Error::ForbiddenException(inner),
761 crate::operation::delete_room::DeleteRoomError::NotFoundException(inner) => Error::NotFoundException(inner),
762 crate::operation::delete_room::DeleteRoomError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
763 crate::operation::delete_room::DeleteRoomError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
764 crate::operation::delete_room::DeleteRoomError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
765 crate::operation::delete_room::DeleteRoomError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
766 crate::operation::delete_room::DeleteRoomError::Unhandled(inner) => Error::Unhandled(inner),
767 }
768 }
769}
770impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_room_membership::DeleteRoomMembershipError, R>> for Error
771where
772 R: Send + Sync + std::fmt::Debug + 'static,
773{
774 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_room_membership::DeleteRoomMembershipError, R>) -> Self {
775 match err {
776 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
777 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
778 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
779 source: err.into(),
780 }),
781 }
782 }
783}
784impl From<crate::operation::delete_room_membership::DeleteRoomMembershipError> for Error {
785 fn from(err: crate::operation::delete_room_membership::DeleteRoomMembershipError) -> Self {
786 match err {
787 crate::operation::delete_room_membership::DeleteRoomMembershipError::BadRequestException(inner) => Error::BadRequestException(inner),
788 crate::operation::delete_room_membership::DeleteRoomMembershipError::ForbiddenException(inner) => Error::ForbiddenException(inner),
789 crate::operation::delete_room_membership::DeleteRoomMembershipError::NotFoundException(inner) => Error::NotFoundException(inner),
790 crate::operation::delete_room_membership::DeleteRoomMembershipError::ServiceFailureException(inner) => {
791 Error::ServiceFailureException(inner)
792 }
793 crate::operation::delete_room_membership::DeleteRoomMembershipError::ServiceUnavailableException(inner) => {
794 Error::ServiceUnavailableException(inner)
795 }
796 crate::operation::delete_room_membership::DeleteRoomMembershipError::ThrottledClientException(inner) => {
797 Error::ThrottledClientException(inner)
798 }
799 crate::operation::delete_room_membership::DeleteRoomMembershipError::UnauthorizedClientException(inner) => {
800 Error::UnauthorizedClientException(inner)
801 }
802 crate::operation::delete_room_membership::DeleteRoomMembershipError::Unhandled(inner) => Error::Unhandled(inner),
803 }
804 }
805}
806impl<R>
807 From<
808 ::aws_smithy_runtime_api::client::result::SdkError<
809 crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError,
810 R,
811 >,
812 > for Error
813where
814 R: Send + Sync + std::fmt::Debug + 'static,
815{
816 fn from(
817 err: ::aws_smithy_runtime_api::client::result::SdkError<
818 crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError,
819 R,
820 >,
821 ) -> Self {
822 match err {
823 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
824 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
825 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
826 source: err.into(),
827 }),
828 }
829 }
830}
831impl From<crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError> for Error {
832 fn from(err: crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError) -> Self {
833 match err {
834 crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError::BadRequestException(inner) => {
835 Error::BadRequestException(inner)
836 }
837 crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError::ForbiddenException(inner) => {
838 Error::ForbiddenException(inner)
839 }
840 crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError::NotFoundException(inner) => {
841 Error::NotFoundException(inner)
842 }
843 crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError::ServiceFailureException(inner) => {
844 Error::ServiceFailureException(inner)
845 }
846 crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError::ServiceUnavailableException(inner) => {
847 Error::ServiceUnavailableException(inner)
848 }
849 crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError::ThrottledClientException(inner) => {
850 Error::ThrottledClientException(inner)
851 }
852 crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError::UnauthorizedClientException(inner) => {
853 Error::UnauthorizedClientException(inner)
854 }
855 crate::operation::disassociate_phone_number_from_user::DisassociatePhoneNumberFromUserError::Unhandled(inner) => Error::Unhandled(inner),
856 }
857 }
858}
859impl<R>
860 From<
861 ::aws_smithy_runtime_api::client::result::SdkError<
862 crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError,
863 R,
864 >,
865 > for Error
866where
867 R: Send + Sync + std::fmt::Debug + 'static,
868{
869 fn from(
870 err: ::aws_smithy_runtime_api::client::result::SdkError<
871 crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError,
872 R,
873 >,
874 ) -> Self {
875 match err {
876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
879 source: err.into(),
880 }),
881 }
882 }
883}
884impl From<crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError> for Error {
885 fn from(err: crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError) -> Self {
886 match err {
887 crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError::BadRequestException(inner) => Error::BadRequestException(inner),
888 crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError::ForbiddenException(inner) => Error::ForbiddenException(inner),
889 crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError::NotFoundException(inner) => Error::NotFoundException(inner),
890 crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
891 crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
892 crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
893 crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
894 crate::operation::disassociate_signin_delegate_groups_from_account::DisassociateSigninDelegateGroupsFromAccountError::Unhandled(inner) => Error::Unhandled(inner),
895 }
896 }
897}
898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account::GetAccountError, R>> for Error
899where
900 R: Send + Sync + std::fmt::Debug + 'static,
901{
902 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account::GetAccountError, R>) -> Self {
903 match err {
904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
907 source: err.into(),
908 }),
909 }
910 }
911}
912impl From<crate::operation::get_account::GetAccountError> for Error {
913 fn from(err: crate::operation::get_account::GetAccountError) -> Self {
914 match err {
915 crate::operation::get_account::GetAccountError::BadRequestException(inner) => Error::BadRequestException(inner),
916 crate::operation::get_account::GetAccountError::ForbiddenException(inner) => Error::ForbiddenException(inner),
917 crate::operation::get_account::GetAccountError::NotFoundException(inner) => Error::NotFoundException(inner),
918 crate::operation::get_account::GetAccountError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
919 crate::operation::get_account::GetAccountError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
920 crate::operation::get_account::GetAccountError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
921 crate::operation::get_account::GetAccountError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
922 crate::operation::get_account::GetAccountError::Unhandled(inner) => Error::Unhandled(inner),
923 }
924 }
925}
926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_settings::GetAccountSettingsError, R>> for Error
927where
928 R: Send + Sync + std::fmt::Debug + 'static,
929{
930 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_settings::GetAccountSettingsError, R>) -> Self {
931 match err {
932 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
933 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
934 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
935 source: err.into(),
936 }),
937 }
938 }
939}
940impl From<crate::operation::get_account_settings::GetAccountSettingsError> for Error {
941 fn from(err: crate::operation::get_account_settings::GetAccountSettingsError) -> Self {
942 match err {
943 crate::operation::get_account_settings::GetAccountSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
944 crate::operation::get_account_settings::GetAccountSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
945 crate::operation::get_account_settings::GetAccountSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
946 crate::operation::get_account_settings::GetAccountSettingsError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
947 crate::operation::get_account_settings::GetAccountSettingsError::ServiceUnavailableException(inner) => {
948 Error::ServiceUnavailableException(inner)
949 }
950 crate::operation::get_account_settings::GetAccountSettingsError::ThrottledClientException(inner) => {
951 Error::ThrottledClientException(inner)
952 }
953 crate::operation::get_account_settings::GetAccountSettingsError::UnauthorizedClientException(inner) => {
954 Error::UnauthorizedClientException(inner)
955 }
956 crate::operation::get_account_settings::GetAccountSettingsError::Unhandled(inner) => Error::Unhandled(inner),
957 }
958 }
959}
960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot::GetBotError, R>> for Error
961where
962 R: Send + Sync + std::fmt::Debug + 'static,
963{
964 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot::GetBotError, R>) -> Self {
965 match err {
966 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
967 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
968 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
969 source: err.into(),
970 }),
971 }
972 }
973}
974impl From<crate::operation::get_bot::GetBotError> for Error {
975 fn from(err: crate::operation::get_bot::GetBotError) -> Self {
976 match err {
977 crate::operation::get_bot::GetBotError::BadRequestException(inner) => Error::BadRequestException(inner),
978 crate::operation::get_bot::GetBotError::ForbiddenException(inner) => Error::ForbiddenException(inner),
979 crate::operation::get_bot::GetBotError::NotFoundException(inner) => Error::NotFoundException(inner),
980 crate::operation::get_bot::GetBotError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
981 crate::operation::get_bot::GetBotError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
982 crate::operation::get_bot::GetBotError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
983 crate::operation::get_bot::GetBotError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
984 crate::operation::get_bot::GetBotError::Unhandled(inner) => Error::Unhandled(inner),
985 }
986 }
987}
988impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_events_configuration::GetEventsConfigurationError, R>> for Error
989where
990 R: Send + Sync + std::fmt::Debug + 'static,
991{
992 fn from(
993 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_events_configuration::GetEventsConfigurationError, R>,
994 ) -> Self {
995 match err {
996 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
997 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
998 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
999 source: err.into(),
1000 }),
1001 }
1002 }
1003}
1004impl From<crate::operation::get_events_configuration::GetEventsConfigurationError> for Error {
1005 fn from(err: crate::operation::get_events_configuration::GetEventsConfigurationError) -> Self {
1006 match err {
1007 crate::operation::get_events_configuration::GetEventsConfigurationError::BadRequestException(inner) => Error::BadRequestException(inner),
1008 crate::operation::get_events_configuration::GetEventsConfigurationError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1009 crate::operation::get_events_configuration::GetEventsConfigurationError::NotFoundException(inner) => Error::NotFoundException(inner),
1010 crate::operation::get_events_configuration::GetEventsConfigurationError::ResourceLimitExceededException(inner) => {
1011 Error::ResourceLimitExceededException(inner)
1012 }
1013 crate::operation::get_events_configuration::GetEventsConfigurationError::ServiceFailureException(inner) => {
1014 Error::ServiceFailureException(inner)
1015 }
1016 crate::operation::get_events_configuration::GetEventsConfigurationError::ServiceUnavailableException(inner) => {
1017 Error::ServiceUnavailableException(inner)
1018 }
1019 crate::operation::get_events_configuration::GetEventsConfigurationError::UnauthorizedClientException(inner) => {
1020 Error::UnauthorizedClientException(inner)
1021 }
1022 crate::operation::get_events_configuration::GetEventsConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1023 }
1024 }
1025}
1026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_global_settings::GetGlobalSettingsError, R>> for Error
1027where
1028 R: Send + Sync + std::fmt::Debug + 'static,
1029{
1030 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_global_settings::GetGlobalSettingsError, R>) -> Self {
1031 match err {
1032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1035 source: err.into(),
1036 }),
1037 }
1038 }
1039}
1040impl From<crate::operation::get_global_settings::GetGlobalSettingsError> for Error {
1041 fn from(err: crate::operation::get_global_settings::GetGlobalSettingsError) -> Self {
1042 match err {
1043 crate::operation::get_global_settings::GetGlobalSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
1044 crate::operation::get_global_settings::GetGlobalSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1045 crate::operation::get_global_settings::GetGlobalSettingsError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1046 crate::operation::get_global_settings::GetGlobalSettingsError::ServiceUnavailableException(inner) => {
1047 Error::ServiceUnavailableException(inner)
1048 }
1049 crate::operation::get_global_settings::GetGlobalSettingsError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1050 crate::operation::get_global_settings::GetGlobalSettingsError::UnauthorizedClientException(inner) => {
1051 Error::UnauthorizedClientException(inner)
1052 }
1053 crate::operation::get_global_settings::GetGlobalSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1054 }
1055 }
1056}
1057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_phone_number::GetPhoneNumberError, R>> for Error
1058where
1059 R: Send + Sync + std::fmt::Debug + 'static,
1060{
1061 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_phone_number::GetPhoneNumberError, R>) -> Self {
1062 match err {
1063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1066 source: err.into(),
1067 }),
1068 }
1069 }
1070}
1071impl From<crate::operation::get_phone_number::GetPhoneNumberError> for Error {
1072 fn from(err: crate::operation::get_phone_number::GetPhoneNumberError) -> Self {
1073 match err {
1074 crate::operation::get_phone_number::GetPhoneNumberError::BadRequestException(inner) => Error::BadRequestException(inner),
1075 crate::operation::get_phone_number::GetPhoneNumberError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1076 crate::operation::get_phone_number::GetPhoneNumberError::NotFoundException(inner) => Error::NotFoundException(inner),
1077 crate::operation::get_phone_number::GetPhoneNumberError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1078 crate::operation::get_phone_number::GetPhoneNumberError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1079 crate::operation::get_phone_number::GetPhoneNumberError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1080 crate::operation::get_phone_number::GetPhoneNumberError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
1081 crate::operation::get_phone_number::GetPhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
1082 }
1083 }
1084}
1085impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_phone_number_order::GetPhoneNumberOrderError, R>> for Error
1086where
1087 R: Send + Sync + std::fmt::Debug + 'static,
1088{
1089 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_phone_number_order::GetPhoneNumberOrderError, R>) -> Self {
1090 match err {
1091 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1092 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1093 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1094 source: err.into(),
1095 }),
1096 }
1097 }
1098}
1099impl From<crate::operation::get_phone_number_order::GetPhoneNumberOrderError> for Error {
1100 fn from(err: crate::operation::get_phone_number_order::GetPhoneNumberOrderError) -> Self {
1101 match err {
1102 crate::operation::get_phone_number_order::GetPhoneNumberOrderError::BadRequestException(inner) => Error::BadRequestException(inner),
1103 crate::operation::get_phone_number_order::GetPhoneNumberOrderError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1104 crate::operation::get_phone_number_order::GetPhoneNumberOrderError::NotFoundException(inner) => Error::NotFoundException(inner),
1105 crate::operation::get_phone_number_order::GetPhoneNumberOrderError::ServiceFailureException(inner) => {
1106 Error::ServiceFailureException(inner)
1107 }
1108 crate::operation::get_phone_number_order::GetPhoneNumberOrderError::ServiceUnavailableException(inner) => {
1109 Error::ServiceUnavailableException(inner)
1110 }
1111 crate::operation::get_phone_number_order::GetPhoneNumberOrderError::ThrottledClientException(inner) => {
1112 Error::ThrottledClientException(inner)
1113 }
1114 crate::operation::get_phone_number_order::GetPhoneNumberOrderError::UnauthorizedClientException(inner) => {
1115 Error::UnauthorizedClientException(inner)
1116 }
1117 crate::operation::get_phone_number_order::GetPhoneNumberOrderError::Unhandled(inner) => Error::Unhandled(inner),
1118 }
1119 }
1120}
1121impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError, R>>
1122 for Error
1123where
1124 R: Send + Sync + std::fmt::Debug + 'static,
1125{
1126 fn from(
1127 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError, R>,
1128 ) -> Self {
1129 match err {
1130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1133 source: err.into(),
1134 }),
1135 }
1136 }
1137}
1138impl From<crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError> for Error {
1139 fn from(err: crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError) -> Self {
1140 match err {
1141 crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
1142 crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1143 crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError::ServiceFailureException(inner) => {
1144 Error::ServiceFailureException(inner)
1145 }
1146 crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError::ServiceUnavailableException(inner) => {
1147 Error::ServiceUnavailableException(inner)
1148 }
1149 crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError::ThrottledClientException(inner) => {
1150 Error::ThrottledClientException(inner)
1151 }
1152 crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError::UnauthorizedClientException(inner) => {
1153 Error::UnauthorizedClientException(inner)
1154 }
1155 crate::operation::get_phone_number_settings::GetPhoneNumberSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1156 }
1157 }
1158}
1159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_retention_settings::GetRetentionSettingsError, R>> for Error
1160where
1161 R: Send + Sync + std::fmt::Debug + 'static,
1162{
1163 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_retention_settings::GetRetentionSettingsError, R>) -> Self {
1164 match err {
1165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1168 source: err.into(),
1169 }),
1170 }
1171 }
1172}
1173impl From<crate::operation::get_retention_settings::GetRetentionSettingsError> for Error {
1174 fn from(err: crate::operation::get_retention_settings::GetRetentionSettingsError) -> Self {
1175 match err {
1176 crate::operation::get_retention_settings::GetRetentionSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
1177 crate::operation::get_retention_settings::GetRetentionSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1178 crate::operation::get_retention_settings::GetRetentionSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
1179 crate::operation::get_retention_settings::GetRetentionSettingsError::ServiceFailureException(inner) => {
1180 Error::ServiceFailureException(inner)
1181 }
1182 crate::operation::get_retention_settings::GetRetentionSettingsError::ServiceUnavailableException(inner) => {
1183 Error::ServiceUnavailableException(inner)
1184 }
1185 crate::operation::get_retention_settings::GetRetentionSettingsError::ThrottledClientException(inner) => {
1186 Error::ThrottledClientException(inner)
1187 }
1188 crate::operation::get_retention_settings::GetRetentionSettingsError::UnauthorizedClientException(inner) => {
1189 Error::UnauthorizedClientException(inner)
1190 }
1191 crate::operation::get_retention_settings::GetRetentionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1192 }
1193 }
1194}
1195impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_room::GetRoomError, R>> for Error
1196where
1197 R: Send + Sync + std::fmt::Debug + 'static,
1198{
1199 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_room::GetRoomError, R>) -> Self {
1200 match err {
1201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1204 source: err.into(),
1205 }),
1206 }
1207 }
1208}
1209impl From<crate::operation::get_room::GetRoomError> for Error {
1210 fn from(err: crate::operation::get_room::GetRoomError) -> Self {
1211 match err {
1212 crate::operation::get_room::GetRoomError::BadRequestException(inner) => Error::BadRequestException(inner),
1213 crate::operation::get_room::GetRoomError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1214 crate::operation::get_room::GetRoomError::NotFoundException(inner) => Error::NotFoundException(inner),
1215 crate::operation::get_room::GetRoomError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1216 crate::operation::get_room::GetRoomError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1217 crate::operation::get_room::GetRoomError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1218 crate::operation::get_room::GetRoomError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
1219 crate::operation::get_room::GetRoomError::Unhandled(inner) => Error::Unhandled(inner),
1220 }
1221 }
1222}
1223impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user::GetUserError, R>> for Error
1224where
1225 R: Send + Sync + std::fmt::Debug + 'static,
1226{
1227 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user::GetUserError, R>) -> Self {
1228 match err {
1229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1232 source: err.into(),
1233 }),
1234 }
1235 }
1236}
1237impl From<crate::operation::get_user::GetUserError> for Error {
1238 fn from(err: crate::operation::get_user::GetUserError) -> Self {
1239 match err {
1240 crate::operation::get_user::GetUserError::BadRequestException(inner) => Error::BadRequestException(inner),
1241 crate::operation::get_user::GetUserError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1242 crate::operation::get_user::GetUserError::NotFoundException(inner) => Error::NotFoundException(inner),
1243 crate::operation::get_user::GetUserError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1244 crate::operation::get_user::GetUserError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1245 crate::operation::get_user::GetUserError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1246 crate::operation::get_user::GetUserError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
1247 crate::operation::get_user::GetUserError::Unhandled(inner) => Error::Unhandled(inner),
1248 }
1249 }
1250}
1251impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_settings::GetUserSettingsError, R>> for Error
1252where
1253 R: Send + Sync + std::fmt::Debug + 'static,
1254{
1255 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_settings::GetUserSettingsError, R>) -> Self {
1256 match err {
1257 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1258 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1259 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1260 source: err.into(),
1261 }),
1262 }
1263 }
1264}
1265impl From<crate::operation::get_user_settings::GetUserSettingsError> for Error {
1266 fn from(err: crate::operation::get_user_settings::GetUserSettingsError) -> Self {
1267 match err {
1268 crate::operation::get_user_settings::GetUserSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
1269 crate::operation::get_user_settings::GetUserSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1270 crate::operation::get_user_settings::GetUserSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
1271 crate::operation::get_user_settings::GetUserSettingsError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1272 crate::operation::get_user_settings::GetUserSettingsError::ServiceUnavailableException(inner) => {
1273 Error::ServiceUnavailableException(inner)
1274 }
1275 crate::operation::get_user_settings::GetUserSettingsError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1276 crate::operation::get_user_settings::GetUserSettingsError::UnauthorizedClientException(inner) => {
1277 Error::UnauthorizedClientException(inner)
1278 }
1279 crate::operation::get_user_settings::GetUserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1280 }
1281 }
1282}
1283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invite_users::InviteUsersError, R>> for Error
1284where
1285 R: Send + Sync + std::fmt::Debug + 'static,
1286{
1287 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invite_users::InviteUsersError, R>) -> Self {
1288 match err {
1289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1292 source: err.into(),
1293 }),
1294 }
1295 }
1296}
1297impl From<crate::operation::invite_users::InviteUsersError> for Error {
1298 fn from(err: crate::operation::invite_users::InviteUsersError) -> Self {
1299 match err {
1300 crate::operation::invite_users::InviteUsersError::BadRequestException(inner) => Error::BadRequestException(inner),
1301 crate::operation::invite_users::InviteUsersError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1302 crate::operation::invite_users::InviteUsersError::NotFoundException(inner) => Error::NotFoundException(inner),
1303 crate::operation::invite_users::InviteUsersError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1304 crate::operation::invite_users::InviteUsersError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1305 crate::operation::invite_users::InviteUsersError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1306 crate::operation::invite_users::InviteUsersError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
1307 crate::operation::invite_users::InviteUsersError::Unhandled(inner) => Error::Unhandled(inner),
1308 }
1309 }
1310}
1311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_accounts::ListAccountsError, R>> for Error
1312where
1313 R: Send + Sync + std::fmt::Debug + 'static,
1314{
1315 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_accounts::ListAccountsError, R>) -> Self {
1316 match err {
1317 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1318 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1319 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1320 source: err.into(),
1321 }),
1322 }
1323 }
1324}
1325impl From<crate::operation::list_accounts::ListAccountsError> for Error {
1326 fn from(err: crate::operation::list_accounts::ListAccountsError) -> Self {
1327 match err {
1328 crate::operation::list_accounts::ListAccountsError::BadRequestException(inner) => Error::BadRequestException(inner),
1329 crate::operation::list_accounts::ListAccountsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1330 crate::operation::list_accounts::ListAccountsError::NotFoundException(inner) => Error::NotFoundException(inner),
1331 crate::operation::list_accounts::ListAccountsError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1332 crate::operation::list_accounts::ListAccountsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1333 crate::operation::list_accounts::ListAccountsError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1334 crate::operation::list_accounts::ListAccountsError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
1335 crate::operation::list_accounts::ListAccountsError::Unhandled(inner) => Error::Unhandled(inner),
1336 }
1337 }
1338}
1339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>> for Error
1340where
1341 R: Send + Sync + std::fmt::Debug + 'static,
1342{
1343 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>) -> Self {
1344 match err {
1345 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1346 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1347 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1348 source: err.into(),
1349 }),
1350 }
1351 }
1352}
1353impl From<crate::operation::list_bots::ListBotsError> for Error {
1354 fn from(err: crate::operation::list_bots::ListBotsError) -> Self {
1355 match err {
1356 crate::operation::list_bots::ListBotsError::BadRequestException(inner) => Error::BadRequestException(inner),
1357 crate::operation::list_bots::ListBotsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1358 crate::operation::list_bots::ListBotsError::NotFoundException(inner) => Error::NotFoundException(inner),
1359 crate::operation::list_bots::ListBotsError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1360 crate::operation::list_bots::ListBotsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1361 crate::operation::list_bots::ListBotsError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1362 crate::operation::list_bots::ListBotsError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
1363 crate::operation::list_bots::ListBotsError::Unhandled(inner) => Error::Unhandled(inner),
1364 }
1365 }
1366}
1367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError, R>> for Error
1368where
1369 R: Send + Sync + std::fmt::Debug + 'static,
1370{
1371 fn from(
1372 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError, R>,
1373 ) -> Self {
1374 match err {
1375 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1376 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1377 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1378 source: err.into(),
1379 }),
1380 }
1381 }
1382}
1383impl From<crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError> for Error {
1384 fn from(err: crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError) -> Self {
1385 match err {
1386 crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError::BadRequestException(inner) => Error::BadRequestException(inner),
1387 crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1388 crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError::ServiceFailureException(inner) => {
1389 Error::ServiceFailureException(inner)
1390 }
1391 crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError::ServiceUnavailableException(inner) => {
1392 Error::ServiceUnavailableException(inner)
1393 }
1394 crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError::ThrottledClientException(inner) => {
1395 Error::ThrottledClientException(inner)
1396 }
1397 crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError::UnauthorizedClientException(inner) => {
1398 Error::UnauthorizedClientException(inner)
1399 }
1400 crate::operation::list_phone_number_orders::ListPhoneNumberOrdersError::Unhandled(inner) => Error::Unhandled(inner),
1401 }
1402 }
1403}
1404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_phone_numbers::ListPhoneNumbersError, R>> for Error
1405where
1406 R: Send + Sync + std::fmt::Debug + 'static,
1407{
1408 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_phone_numbers::ListPhoneNumbersError, R>) -> Self {
1409 match err {
1410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1413 source: err.into(),
1414 }),
1415 }
1416 }
1417}
1418impl From<crate::operation::list_phone_numbers::ListPhoneNumbersError> for Error {
1419 fn from(err: crate::operation::list_phone_numbers::ListPhoneNumbersError) -> Self {
1420 match err {
1421 crate::operation::list_phone_numbers::ListPhoneNumbersError::BadRequestException(inner) => Error::BadRequestException(inner),
1422 crate::operation::list_phone_numbers::ListPhoneNumbersError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1423 crate::operation::list_phone_numbers::ListPhoneNumbersError::NotFoundException(inner) => Error::NotFoundException(inner),
1424 crate::operation::list_phone_numbers::ListPhoneNumbersError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1425 crate::operation::list_phone_numbers::ListPhoneNumbersError::ServiceUnavailableException(inner) => {
1426 Error::ServiceUnavailableException(inner)
1427 }
1428 crate::operation::list_phone_numbers::ListPhoneNumbersError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1429 crate::operation::list_phone_numbers::ListPhoneNumbersError::UnauthorizedClientException(inner) => {
1430 Error::UnauthorizedClientException(inner)
1431 }
1432 crate::operation::list_phone_numbers::ListPhoneNumbersError::Unhandled(inner) => Error::Unhandled(inner),
1433 }
1434 }
1435}
1436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_room_memberships::ListRoomMembershipsError, R>> for Error
1437where
1438 R: Send + Sync + std::fmt::Debug + 'static,
1439{
1440 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_room_memberships::ListRoomMembershipsError, R>) -> Self {
1441 match err {
1442 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1443 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1444 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1445 source: err.into(),
1446 }),
1447 }
1448 }
1449}
1450impl From<crate::operation::list_room_memberships::ListRoomMembershipsError> for Error {
1451 fn from(err: crate::operation::list_room_memberships::ListRoomMembershipsError) -> Self {
1452 match err {
1453 crate::operation::list_room_memberships::ListRoomMembershipsError::BadRequestException(inner) => Error::BadRequestException(inner),
1454 crate::operation::list_room_memberships::ListRoomMembershipsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1455 crate::operation::list_room_memberships::ListRoomMembershipsError::NotFoundException(inner) => Error::NotFoundException(inner),
1456 crate::operation::list_room_memberships::ListRoomMembershipsError::ServiceFailureException(inner) => {
1457 Error::ServiceFailureException(inner)
1458 }
1459 crate::operation::list_room_memberships::ListRoomMembershipsError::ServiceUnavailableException(inner) => {
1460 Error::ServiceUnavailableException(inner)
1461 }
1462 crate::operation::list_room_memberships::ListRoomMembershipsError::ThrottledClientException(inner) => {
1463 Error::ThrottledClientException(inner)
1464 }
1465 crate::operation::list_room_memberships::ListRoomMembershipsError::UnauthorizedClientException(inner) => {
1466 Error::UnauthorizedClientException(inner)
1467 }
1468 crate::operation::list_room_memberships::ListRoomMembershipsError::Unhandled(inner) => Error::Unhandled(inner),
1469 }
1470 }
1471}
1472impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rooms::ListRoomsError, R>> for Error
1473where
1474 R: Send + Sync + std::fmt::Debug + 'static,
1475{
1476 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rooms::ListRoomsError, R>) -> Self {
1477 match err {
1478 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1479 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1480 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1481 source: err.into(),
1482 }),
1483 }
1484 }
1485}
1486impl From<crate::operation::list_rooms::ListRoomsError> for Error {
1487 fn from(err: crate::operation::list_rooms::ListRoomsError) -> Self {
1488 match err {
1489 crate::operation::list_rooms::ListRoomsError::BadRequestException(inner) => Error::BadRequestException(inner),
1490 crate::operation::list_rooms::ListRoomsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1491 crate::operation::list_rooms::ListRoomsError::NotFoundException(inner) => Error::NotFoundException(inner),
1492 crate::operation::list_rooms::ListRoomsError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1493 crate::operation::list_rooms::ListRoomsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1494 crate::operation::list_rooms::ListRoomsError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1495 crate::operation::list_rooms::ListRoomsError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
1496 crate::operation::list_rooms::ListRoomsError::Unhandled(inner) => Error::Unhandled(inner),
1497 }
1498 }
1499}
1500impl<R>
1501 From<
1502 ::aws_smithy_runtime_api::client::result::SdkError<
1503 crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError,
1504 R,
1505 >,
1506 > for Error
1507where
1508 R: Send + Sync + std::fmt::Debug + 'static,
1509{
1510 fn from(
1511 err: ::aws_smithy_runtime_api::client::result::SdkError<
1512 crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError,
1513 R,
1514 >,
1515 ) -> Self {
1516 match err {
1517 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1518 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1519 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1520 source: err.into(),
1521 }),
1522 }
1523 }
1524}
1525impl From<crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError> for Error {
1526 fn from(err: crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError) -> Self {
1527 match err {
1528 crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError::AccessDeniedException(inner) => {
1529 Error::AccessDeniedException(inner)
1530 }
1531 crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError::BadRequestException(inner) => {
1532 Error::BadRequestException(inner)
1533 }
1534 crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError::ForbiddenException(inner) => {
1535 Error::ForbiddenException(inner)
1536 }
1537 crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError::ServiceFailureException(inner) => {
1538 Error::ServiceFailureException(inner)
1539 }
1540 crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError::ServiceUnavailableException(inner) => {
1541 Error::ServiceUnavailableException(inner)
1542 }
1543 crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError::ThrottledClientException(inner) => {
1544 Error::ThrottledClientException(inner)
1545 }
1546 crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError::UnauthorizedClientException(inner) => {
1547 Error::UnauthorizedClientException(inner)
1548 }
1549 crate::operation::list_supported_phone_number_countries::ListSupportedPhoneNumberCountriesError::Unhandled(inner) => {
1550 Error::Unhandled(inner)
1551 }
1552 }
1553 }
1554}
1555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>> for Error
1556where
1557 R: Send + Sync + std::fmt::Debug + 'static,
1558{
1559 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>) -> Self {
1560 match err {
1561 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1562 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1563 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1564 source: err.into(),
1565 }),
1566 }
1567 }
1568}
1569impl From<crate::operation::list_users::ListUsersError> for Error {
1570 fn from(err: crate::operation::list_users::ListUsersError) -> Self {
1571 match err {
1572 crate::operation::list_users::ListUsersError::BadRequestException(inner) => Error::BadRequestException(inner),
1573 crate::operation::list_users::ListUsersError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1574 crate::operation::list_users::ListUsersError::NotFoundException(inner) => Error::NotFoundException(inner),
1575 crate::operation::list_users::ListUsersError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1576 crate::operation::list_users::ListUsersError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1577 crate::operation::list_users::ListUsersError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1578 crate::operation::list_users::ListUsersError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
1579 crate::operation::list_users::ListUsersError::Unhandled(inner) => Error::Unhandled(inner),
1580 }
1581 }
1582}
1583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::logout_user::LogoutUserError, R>> for Error
1584where
1585 R: Send + Sync + std::fmt::Debug + 'static,
1586{
1587 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::logout_user::LogoutUserError, R>) -> Self {
1588 match err {
1589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1592 source: err.into(),
1593 }),
1594 }
1595 }
1596}
1597impl From<crate::operation::logout_user::LogoutUserError> for Error {
1598 fn from(err: crate::operation::logout_user::LogoutUserError) -> Self {
1599 match err {
1600 crate::operation::logout_user::LogoutUserError::BadRequestException(inner) => Error::BadRequestException(inner),
1601 crate::operation::logout_user::LogoutUserError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1602 crate::operation::logout_user::LogoutUserError::NotFoundException(inner) => Error::NotFoundException(inner),
1603 crate::operation::logout_user::LogoutUserError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1604 crate::operation::logout_user::LogoutUserError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1605 crate::operation::logout_user::LogoutUserError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1606 crate::operation::logout_user::LogoutUserError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
1607 crate::operation::logout_user::LogoutUserError::Unhandled(inner) => Error::Unhandled(inner),
1608 }
1609 }
1610}
1611impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_events_configuration::PutEventsConfigurationError, R>> for Error
1612where
1613 R: Send + Sync + std::fmt::Debug + 'static,
1614{
1615 fn from(
1616 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_events_configuration::PutEventsConfigurationError, R>,
1617 ) -> Self {
1618 match err {
1619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1622 source: err.into(),
1623 }),
1624 }
1625 }
1626}
1627impl From<crate::operation::put_events_configuration::PutEventsConfigurationError> for Error {
1628 fn from(err: crate::operation::put_events_configuration::PutEventsConfigurationError) -> Self {
1629 match err {
1630 crate::operation::put_events_configuration::PutEventsConfigurationError::BadRequestException(inner) => Error::BadRequestException(inner),
1631 crate::operation::put_events_configuration::PutEventsConfigurationError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1632 crate::operation::put_events_configuration::PutEventsConfigurationError::NotFoundException(inner) => Error::NotFoundException(inner),
1633 crate::operation::put_events_configuration::PutEventsConfigurationError::ResourceLimitExceededException(inner) => {
1634 Error::ResourceLimitExceededException(inner)
1635 }
1636 crate::operation::put_events_configuration::PutEventsConfigurationError::ServiceFailureException(inner) => {
1637 Error::ServiceFailureException(inner)
1638 }
1639 crate::operation::put_events_configuration::PutEventsConfigurationError::ServiceUnavailableException(inner) => {
1640 Error::ServiceUnavailableException(inner)
1641 }
1642 crate::operation::put_events_configuration::PutEventsConfigurationError::UnauthorizedClientException(inner) => {
1643 Error::UnauthorizedClientException(inner)
1644 }
1645 crate::operation::put_events_configuration::PutEventsConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1646 }
1647 }
1648}
1649impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_retention_settings::PutRetentionSettingsError, R>> for Error
1650where
1651 R: Send + Sync + std::fmt::Debug + 'static,
1652{
1653 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_retention_settings::PutRetentionSettingsError, R>) -> Self {
1654 match err {
1655 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1656 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1657 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1658 source: err.into(),
1659 }),
1660 }
1661 }
1662}
1663impl From<crate::operation::put_retention_settings::PutRetentionSettingsError> for Error {
1664 fn from(err: crate::operation::put_retention_settings::PutRetentionSettingsError) -> Self {
1665 match err {
1666 crate::operation::put_retention_settings::PutRetentionSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
1667 crate::operation::put_retention_settings::PutRetentionSettingsError::ConflictException(inner) => Error::ConflictException(inner),
1668 crate::operation::put_retention_settings::PutRetentionSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1669 crate::operation::put_retention_settings::PutRetentionSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
1670 crate::operation::put_retention_settings::PutRetentionSettingsError::ServiceFailureException(inner) => {
1671 Error::ServiceFailureException(inner)
1672 }
1673 crate::operation::put_retention_settings::PutRetentionSettingsError::ServiceUnavailableException(inner) => {
1674 Error::ServiceUnavailableException(inner)
1675 }
1676 crate::operation::put_retention_settings::PutRetentionSettingsError::ThrottledClientException(inner) => {
1677 Error::ThrottledClientException(inner)
1678 }
1679 crate::operation::put_retention_settings::PutRetentionSettingsError::UnauthorizedClientException(inner) => {
1680 Error::UnauthorizedClientException(inner)
1681 }
1682 crate::operation::put_retention_settings::PutRetentionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1683 }
1684 }
1685}
1686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::redact_conversation_message::RedactConversationMessageError, R>>
1687 for Error
1688where
1689 R: Send + Sync + std::fmt::Debug + 'static,
1690{
1691 fn from(
1692 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::redact_conversation_message::RedactConversationMessageError, R>,
1693 ) -> Self {
1694 match err {
1695 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1696 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1697 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1698 source: err.into(),
1699 }),
1700 }
1701 }
1702}
1703impl From<crate::operation::redact_conversation_message::RedactConversationMessageError> for Error {
1704 fn from(err: crate::operation::redact_conversation_message::RedactConversationMessageError) -> Self {
1705 match err {
1706 crate::operation::redact_conversation_message::RedactConversationMessageError::BadRequestException(inner) => {
1707 Error::BadRequestException(inner)
1708 }
1709 crate::operation::redact_conversation_message::RedactConversationMessageError::ForbiddenException(inner) => {
1710 Error::ForbiddenException(inner)
1711 }
1712 crate::operation::redact_conversation_message::RedactConversationMessageError::NotFoundException(inner) => {
1713 Error::NotFoundException(inner)
1714 }
1715 crate::operation::redact_conversation_message::RedactConversationMessageError::ServiceFailureException(inner) => {
1716 Error::ServiceFailureException(inner)
1717 }
1718 crate::operation::redact_conversation_message::RedactConversationMessageError::ServiceUnavailableException(inner) => {
1719 Error::ServiceUnavailableException(inner)
1720 }
1721 crate::operation::redact_conversation_message::RedactConversationMessageError::ThrottledClientException(inner) => {
1722 Error::ThrottledClientException(inner)
1723 }
1724 crate::operation::redact_conversation_message::RedactConversationMessageError::UnauthorizedClientException(inner) => {
1725 Error::UnauthorizedClientException(inner)
1726 }
1727 crate::operation::redact_conversation_message::RedactConversationMessageError::Unhandled(inner) => Error::Unhandled(inner),
1728 }
1729 }
1730}
1731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::redact_room_message::RedactRoomMessageError, R>> for Error
1732where
1733 R: Send + Sync + std::fmt::Debug + 'static,
1734{
1735 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::redact_room_message::RedactRoomMessageError, R>) -> Self {
1736 match err {
1737 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1738 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1739 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1740 source: err.into(),
1741 }),
1742 }
1743 }
1744}
1745impl From<crate::operation::redact_room_message::RedactRoomMessageError> for Error {
1746 fn from(err: crate::operation::redact_room_message::RedactRoomMessageError) -> Self {
1747 match err {
1748 crate::operation::redact_room_message::RedactRoomMessageError::BadRequestException(inner) => Error::BadRequestException(inner),
1749 crate::operation::redact_room_message::RedactRoomMessageError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1750 crate::operation::redact_room_message::RedactRoomMessageError::NotFoundException(inner) => Error::NotFoundException(inner),
1751 crate::operation::redact_room_message::RedactRoomMessageError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1752 crate::operation::redact_room_message::RedactRoomMessageError::ServiceUnavailableException(inner) => {
1753 Error::ServiceUnavailableException(inner)
1754 }
1755 crate::operation::redact_room_message::RedactRoomMessageError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1756 crate::operation::redact_room_message::RedactRoomMessageError::UnauthorizedClientException(inner) => {
1757 Error::UnauthorizedClientException(inner)
1758 }
1759 crate::operation::redact_room_message::RedactRoomMessageError::Unhandled(inner) => Error::Unhandled(inner),
1760 }
1761 }
1762}
1763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::regenerate_security_token::RegenerateSecurityTokenError, R>>
1764 for Error
1765where
1766 R: Send + Sync + std::fmt::Debug + 'static,
1767{
1768 fn from(
1769 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::regenerate_security_token::RegenerateSecurityTokenError, R>,
1770 ) -> Self {
1771 match err {
1772 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1773 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1774 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1775 source: err.into(),
1776 }),
1777 }
1778 }
1779}
1780impl From<crate::operation::regenerate_security_token::RegenerateSecurityTokenError> for Error {
1781 fn from(err: crate::operation::regenerate_security_token::RegenerateSecurityTokenError) -> Self {
1782 match err {
1783 crate::operation::regenerate_security_token::RegenerateSecurityTokenError::BadRequestException(inner) => {
1784 Error::BadRequestException(inner)
1785 }
1786 crate::operation::regenerate_security_token::RegenerateSecurityTokenError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1787 crate::operation::regenerate_security_token::RegenerateSecurityTokenError::NotFoundException(inner) => Error::NotFoundException(inner),
1788 crate::operation::regenerate_security_token::RegenerateSecurityTokenError::ServiceFailureException(inner) => {
1789 Error::ServiceFailureException(inner)
1790 }
1791 crate::operation::regenerate_security_token::RegenerateSecurityTokenError::ServiceUnavailableException(inner) => {
1792 Error::ServiceUnavailableException(inner)
1793 }
1794 crate::operation::regenerate_security_token::RegenerateSecurityTokenError::ThrottledClientException(inner) => {
1795 Error::ThrottledClientException(inner)
1796 }
1797 crate::operation::regenerate_security_token::RegenerateSecurityTokenError::UnauthorizedClientException(inner) => {
1798 Error::UnauthorizedClientException(inner)
1799 }
1800 crate::operation::regenerate_security_token::RegenerateSecurityTokenError::Unhandled(inner) => Error::Unhandled(inner),
1801 }
1802 }
1803}
1804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_personal_pin::ResetPersonalPINError, R>> for Error
1805where
1806 R: Send + Sync + std::fmt::Debug + 'static,
1807{
1808 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_personal_pin::ResetPersonalPINError, R>) -> Self {
1809 match err {
1810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1813 source: err.into(),
1814 }),
1815 }
1816 }
1817}
1818impl From<crate::operation::reset_personal_pin::ResetPersonalPINError> for Error {
1819 fn from(err: crate::operation::reset_personal_pin::ResetPersonalPINError) -> Self {
1820 match err {
1821 crate::operation::reset_personal_pin::ResetPersonalPINError::BadRequestException(inner) => Error::BadRequestException(inner),
1822 crate::operation::reset_personal_pin::ResetPersonalPINError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1823 crate::operation::reset_personal_pin::ResetPersonalPINError::NotFoundException(inner) => Error::NotFoundException(inner),
1824 crate::operation::reset_personal_pin::ResetPersonalPINError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1825 crate::operation::reset_personal_pin::ResetPersonalPINError::ServiceUnavailableException(inner) => {
1826 Error::ServiceUnavailableException(inner)
1827 }
1828 crate::operation::reset_personal_pin::ResetPersonalPINError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1829 crate::operation::reset_personal_pin::ResetPersonalPINError::UnauthorizedClientException(inner) => {
1830 Error::UnauthorizedClientException(inner)
1831 }
1832 crate::operation::reset_personal_pin::ResetPersonalPINError::Unhandled(inner) => Error::Unhandled(inner),
1833 }
1834 }
1835}
1836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_phone_number::RestorePhoneNumberError, R>> for Error
1837where
1838 R: Send + Sync + std::fmt::Debug + 'static,
1839{
1840 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_phone_number::RestorePhoneNumberError, R>) -> Self {
1841 match err {
1842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1845 source: err.into(),
1846 }),
1847 }
1848 }
1849}
1850impl From<crate::operation::restore_phone_number::RestorePhoneNumberError> for Error {
1851 fn from(err: crate::operation::restore_phone_number::RestorePhoneNumberError) -> Self {
1852 match err {
1853 crate::operation::restore_phone_number::RestorePhoneNumberError::BadRequestException(inner) => Error::BadRequestException(inner),
1854 crate::operation::restore_phone_number::RestorePhoneNumberError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1855 crate::operation::restore_phone_number::RestorePhoneNumberError::NotFoundException(inner) => Error::NotFoundException(inner),
1856 crate::operation::restore_phone_number::RestorePhoneNumberError::ResourceLimitExceededException(inner) => {
1857 Error::ResourceLimitExceededException(inner)
1858 }
1859 crate::operation::restore_phone_number::RestorePhoneNumberError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1860 crate::operation::restore_phone_number::RestorePhoneNumberError::ServiceUnavailableException(inner) => {
1861 Error::ServiceUnavailableException(inner)
1862 }
1863 crate::operation::restore_phone_number::RestorePhoneNumberError::ThrottledClientException(inner) => {
1864 Error::ThrottledClientException(inner)
1865 }
1866 crate::operation::restore_phone_number::RestorePhoneNumberError::UnauthorizedClientException(inner) => {
1867 Error::UnauthorizedClientException(inner)
1868 }
1869 crate::operation::restore_phone_number::RestorePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
1870 }
1871 }
1872}
1873impl<R>
1874 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError, R>>
1875 for Error
1876where
1877 R: Send + Sync + std::fmt::Debug + 'static,
1878{
1879 fn from(
1880 err: ::aws_smithy_runtime_api::client::result::SdkError<
1881 crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError,
1882 R,
1883 >,
1884 ) -> Self {
1885 match err {
1886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1889 source: err.into(),
1890 }),
1891 }
1892 }
1893}
1894impl From<crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError> for Error {
1895 fn from(err: crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError) -> Self {
1896 match err {
1897 crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::AccessDeniedException(inner) => {
1898 Error::AccessDeniedException(inner)
1899 }
1900 crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::BadRequestException(inner) => {
1901 Error::BadRequestException(inner)
1902 }
1903 crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::ForbiddenException(inner) => {
1904 Error::ForbiddenException(inner)
1905 }
1906 crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::ServiceFailureException(inner) => {
1907 Error::ServiceFailureException(inner)
1908 }
1909 crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::ServiceUnavailableException(inner) => {
1910 Error::ServiceUnavailableException(inner)
1911 }
1912 crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::ThrottledClientException(inner) => {
1913 Error::ThrottledClientException(inner)
1914 }
1915 crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::UnauthorizedClientException(inner) => {
1916 Error::UnauthorizedClientException(inner)
1917 }
1918 crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::Unhandled(inner) => Error::Unhandled(inner),
1919 }
1920 }
1921}
1922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account::UpdateAccountError, R>> for Error
1923where
1924 R: Send + Sync + std::fmt::Debug + 'static,
1925{
1926 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account::UpdateAccountError, R>) -> Self {
1927 match err {
1928 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1929 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1930 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1931 source: err.into(),
1932 }),
1933 }
1934 }
1935}
1936impl From<crate::operation::update_account::UpdateAccountError> for Error {
1937 fn from(err: crate::operation::update_account::UpdateAccountError) -> Self {
1938 match err {
1939 crate::operation::update_account::UpdateAccountError::BadRequestException(inner) => Error::BadRequestException(inner),
1940 crate::operation::update_account::UpdateAccountError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1941 crate::operation::update_account::UpdateAccountError::NotFoundException(inner) => Error::NotFoundException(inner),
1942 crate::operation::update_account::UpdateAccountError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
1943 crate::operation::update_account::UpdateAccountError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1944 crate::operation::update_account::UpdateAccountError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
1945 crate::operation::update_account::UpdateAccountError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
1946 crate::operation::update_account::UpdateAccountError::Unhandled(inner) => Error::Unhandled(inner),
1947 }
1948 }
1949}
1950impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_settings::UpdateAccountSettingsError, R>> for Error
1951where
1952 R: Send + Sync + std::fmt::Debug + 'static,
1953{
1954 fn from(
1955 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_settings::UpdateAccountSettingsError, R>,
1956 ) -> Self {
1957 match err {
1958 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1959 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1960 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1961 source: err.into(),
1962 }),
1963 }
1964 }
1965}
1966impl From<crate::operation::update_account_settings::UpdateAccountSettingsError> for Error {
1967 fn from(err: crate::operation::update_account_settings::UpdateAccountSettingsError) -> Self {
1968 match err {
1969 crate::operation::update_account_settings::UpdateAccountSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
1970 crate::operation::update_account_settings::UpdateAccountSettingsError::ConflictException(inner) => Error::ConflictException(inner),
1971 crate::operation::update_account_settings::UpdateAccountSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1972 crate::operation::update_account_settings::UpdateAccountSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
1973 crate::operation::update_account_settings::UpdateAccountSettingsError::ServiceFailureException(inner) => {
1974 Error::ServiceFailureException(inner)
1975 }
1976 crate::operation::update_account_settings::UpdateAccountSettingsError::ServiceUnavailableException(inner) => {
1977 Error::ServiceUnavailableException(inner)
1978 }
1979 crate::operation::update_account_settings::UpdateAccountSettingsError::ThrottledClientException(inner) => {
1980 Error::ThrottledClientException(inner)
1981 }
1982 crate::operation::update_account_settings::UpdateAccountSettingsError::UnauthorizedClientException(inner) => {
1983 Error::UnauthorizedClientException(inner)
1984 }
1985 crate::operation::update_account_settings::UpdateAccountSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1986 }
1987 }
1988}
1989impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>> for Error
1990where
1991 R: Send + Sync + std::fmt::Debug + 'static,
1992{
1993 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>) -> Self {
1994 match err {
1995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1998 source: err.into(),
1999 }),
2000 }
2001 }
2002}
2003impl From<crate::operation::update_bot::UpdateBotError> for Error {
2004 fn from(err: crate::operation::update_bot::UpdateBotError) -> Self {
2005 match err {
2006 crate::operation::update_bot::UpdateBotError::BadRequestException(inner) => Error::BadRequestException(inner),
2007 crate::operation::update_bot::UpdateBotError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2008 crate::operation::update_bot::UpdateBotError::NotFoundException(inner) => Error::NotFoundException(inner),
2009 crate::operation::update_bot::UpdateBotError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
2010 crate::operation::update_bot::UpdateBotError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2011 crate::operation::update_bot::UpdateBotError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
2012 crate::operation::update_bot::UpdateBotError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
2013 crate::operation::update_bot::UpdateBotError::Unhandled(inner) => Error::Unhandled(inner),
2014 }
2015 }
2016}
2017impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_settings::UpdateGlobalSettingsError, R>> for Error
2018where
2019 R: Send + Sync + std::fmt::Debug + 'static,
2020{
2021 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_settings::UpdateGlobalSettingsError, R>) -> Self {
2022 match err {
2023 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2024 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2025 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2026 source: err.into(),
2027 }),
2028 }
2029 }
2030}
2031impl From<crate::operation::update_global_settings::UpdateGlobalSettingsError> for Error {
2032 fn from(err: crate::operation::update_global_settings::UpdateGlobalSettingsError) -> Self {
2033 match err {
2034 crate::operation::update_global_settings::UpdateGlobalSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
2035 crate::operation::update_global_settings::UpdateGlobalSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2036 crate::operation::update_global_settings::UpdateGlobalSettingsError::ServiceFailureException(inner) => {
2037 Error::ServiceFailureException(inner)
2038 }
2039 crate::operation::update_global_settings::UpdateGlobalSettingsError::ServiceUnavailableException(inner) => {
2040 Error::ServiceUnavailableException(inner)
2041 }
2042 crate::operation::update_global_settings::UpdateGlobalSettingsError::ThrottledClientException(inner) => {
2043 Error::ThrottledClientException(inner)
2044 }
2045 crate::operation::update_global_settings::UpdateGlobalSettingsError::UnauthorizedClientException(inner) => {
2046 Error::UnauthorizedClientException(inner)
2047 }
2048 crate::operation::update_global_settings::UpdateGlobalSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2049 }
2050 }
2051}
2052impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number::UpdatePhoneNumberError, R>> for Error
2053where
2054 R: Send + Sync + std::fmt::Debug + 'static,
2055{
2056 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number::UpdatePhoneNumberError, R>) -> Self {
2057 match err {
2058 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2059 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2060 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2061 source: err.into(),
2062 }),
2063 }
2064 }
2065}
2066impl From<crate::operation::update_phone_number::UpdatePhoneNumberError> for Error {
2067 fn from(err: crate::operation::update_phone_number::UpdatePhoneNumberError) -> Self {
2068 match err {
2069 crate::operation::update_phone_number::UpdatePhoneNumberError::BadRequestException(inner) => Error::BadRequestException(inner),
2070 crate::operation::update_phone_number::UpdatePhoneNumberError::ConflictException(inner) => Error::ConflictException(inner),
2071 crate::operation::update_phone_number::UpdatePhoneNumberError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2072 crate::operation::update_phone_number::UpdatePhoneNumberError::NotFoundException(inner) => Error::NotFoundException(inner),
2073 crate::operation::update_phone_number::UpdatePhoneNumberError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
2074 crate::operation::update_phone_number::UpdatePhoneNumberError::ServiceUnavailableException(inner) => {
2075 Error::ServiceUnavailableException(inner)
2076 }
2077 crate::operation::update_phone_number::UpdatePhoneNumberError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
2078 crate::operation::update_phone_number::UpdatePhoneNumberError::UnauthorizedClientException(inner) => {
2079 Error::UnauthorizedClientException(inner)
2080 }
2081 crate::operation::update_phone_number::UpdatePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
2082 }
2083 }
2084}
2085impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError, R>>
2086 for Error
2087where
2088 R: Send + Sync + std::fmt::Debug + 'static,
2089{
2090 fn from(
2091 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError, R>,
2092 ) -> Self {
2093 match err {
2094 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2095 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2096 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2097 source: err.into(),
2098 }),
2099 }
2100 }
2101}
2102impl From<crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError> for Error {
2103 fn from(err: crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError) -> Self {
2104 match err {
2105 crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError::BadRequestException(inner) => {
2106 Error::BadRequestException(inner)
2107 }
2108 crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError::ForbiddenException(inner) => {
2109 Error::ForbiddenException(inner)
2110 }
2111 crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError::ServiceFailureException(inner) => {
2112 Error::ServiceFailureException(inner)
2113 }
2114 crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError::ServiceUnavailableException(inner) => {
2115 Error::ServiceUnavailableException(inner)
2116 }
2117 crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError::ThrottledClientException(inner) => {
2118 Error::ThrottledClientException(inner)
2119 }
2120 crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError::UnauthorizedClientException(inner) => {
2121 Error::UnauthorizedClientException(inner)
2122 }
2123 crate::operation::update_phone_number_settings::UpdatePhoneNumberSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2124 }
2125 }
2126}
2127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_room::UpdateRoomError, R>> for Error
2128where
2129 R: Send + Sync + std::fmt::Debug + 'static,
2130{
2131 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_room::UpdateRoomError, R>) -> 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::update_room::UpdateRoomError> for Error {
2142 fn from(err: crate::operation::update_room::UpdateRoomError) -> Self {
2143 match err {
2144 crate::operation::update_room::UpdateRoomError::BadRequestException(inner) => Error::BadRequestException(inner),
2145 crate::operation::update_room::UpdateRoomError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2146 crate::operation::update_room::UpdateRoomError::NotFoundException(inner) => Error::NotFoundException(inner),
2147 crate::operation::update_room::UpdateRoomError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
2148 crate::operation::update_room::UpdateRoomError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2149 crate::operation::update_room::UpdateRoomError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
2150 crate::operation::update_room::UpdateRoomError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
2151 crate::operation::update_room::UpdateRoomError::Unhandled(inner) => Error::Unhandled(inner),
2152 }
2153 }
2154}
2155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_room_membership::UpdateRoomMembershipError, R>> for Error
2156where
2157 R: Send + Sync + std::fmt::Debug + 'static,
2158{
2159 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_room_membership::UpdateRoomMembershipError, R>) -> Self {
2160 match err {
2161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2164 source: err.into(),
2165 }),
2166 }
2167 }
2168}
2169impl From<crate::operation::update_room_membership::UpdateRoomMembershipError> for Error {
2170 fn from(err: crate::operation::update_room_membership::UpdateRoomMembershipError) -> Self {
2171 match err {
2172 crate::operation::update_room_membership::UpdateRoomMembershipError::BadRequestException(inner) => Error::BadRequestException(inner),
2173 crate::operation::update_room_membership::UpdateRoomMembershipError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2174 crate::operation::update_room_membership::UpdateRoomMembershipError::NotFoundException(inner) => Error::NotFoundException(inner),
2175 crate::operation::update_room_membership::UpdateRoomMembershipError::ServiceFailureException(inner) => {
2176 Error::ServiceFailureException(inner)
2177 }
2178 crate::operation::update_room_membership::UpdateRoomMembershipError::ServiceUnavailableException(inner) => {
2179 Error::ServiceUnavailableException(inner)
2180 }
2181 crate::operation::update_room_membership::UpdateRoomMembershipError::ThrottledClientException(inner) => {
2182 Error::ThrottledClientException(inner)
2183 }
2184 crate::operation::update_room_membership::UpdateRoomMembershipError::UnauthorizedClientException(inner) => {
2185 Error::UnauthorizedClientException(inner)
2186 }
2187 crate::operation::update_room_membership::UpdateRoomMembershipError::Unhandled(inner) => Error::Unhandled(inner),
2188 }
2189 }
2190}
2191impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user::UpdateUserError, R>> for Error
2192where
2193 R: Send + Sync + std::fmt::Debug + 'static,
2194{
2195 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user::UpdateUserError, R>) -> Self {
2196 match err {
2197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2200 source: err.into(),
2201 }),
2202 }
2203 }
2204}
2205impl From<crate::operation::update_user::UpdateUserError> for Error {
2206 fn from(err: crate::operation::update_user::UpdateUserError) -> Self {
2207 match err {
2208 crate::operation::update_user::UpdateUserError::BadRequestException(inner) => Error::BadRequestException(inner),
2209 crate::operation::update_user::UpdateUserError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2210 crate::operation::update_user::UpdateUserError::NotFoundException(inner) => Error::NotFoundException(inner),
2211 crate::operation::update_user::UpdateUserError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
2212 crate::operation::update_user::UpdateUserError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2213 crate::operation::update_user::UpdateUserError::ThrottledClientException(inner) => Error::ThrottledClientException(inner),
2214 crate::operation::update_user::UpdateUserError::UnauthorizedClientException(inner) => Error::UnauthorizedClientException(inner),
2215 crate::operation::update_user::UpdateUserError::Unhandled(inner) => Error::Unhandled(inner),
2216 }
2217 }
2218}
2219impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_settings::UpdateUserSettingsError, R>> for Error
2220where
2221 R: Send + Sync + std::fmt::Debug + 'static,
2222{
2223 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_settings::UpdateUserSettingsError, R>) -> Self {
2224 match err {
2225 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2226 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2227 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2228 source: err.into(),
2229 }),
2230 }
2231 }
2232}
2233impl From<crate::operation::update_user_settings::UpdateUserSettingsError> for Error {
2234 fn from(err: crate::operation::update_user_settings::UpdateUserSettingsError) -> Self {
2235 match err {
2236 crate::operation::update_user_settings::UpdateUserSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
2237 crate::operation::update_user_settings::UpdateUserSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2238 crate::operation::update_user_settings::UpdateUserSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
2239 crate::operation::update_user_settings::UpdateUserSettingsError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
2240 crate::operation::update_user_settings::UpdateUserSettingsError::ServiceUnavailableException(inner) => {
2241 Error::ServiceUnavailableException(inner)
2242 }
2243 crate::operation::update_user_settings::UpdateUserSettingsError::ThrottledClientException(inner) => {
2244 Error::ThrottledClientException(inner)
2245 }
2246 crate::operation::update_user_settings::UpdateUserSettingsError::UnauthorizedClientException(inner) => {
2247 Error::UnauthorizedClientException(inner)
2248 }
2249 crate::operation::update_user_settings::UpdateUserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2250 }
2251 }
2252}
2253impl ::std::error::Error for Error {
2254 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2255 match self {
2256 Error::AccessDeniedException(inner) => inner.source(),
2257 Error::BadRequestException(inner) => inner.source(),
2258 Error::ConflictException(inner) => inner.source(),
2259 Error::ForbiddenException(inner) => inner.source(),
2260 Error::NotFoundException(inner) => inner.source(),
2261 Error::ResourceLimitExceededException(inner) => inner.source(),
2262 Error::ServiceFailureException(inner) => inner.source(),
2263 Error::ServiceUnavailableException(inner) => inner.source(),
2264 Error::ThrottledClientException(inner) => inner.source(),
2265 Error::UnauthorizedClientException(inner) => inner.source(),
2266 Error::UnprocessableEntityException(inner) => inner.source(),
2267 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2268 }
2269 }
2270}
2271impl ::aws_types::request_id::RequestId for Error {
2272 fn request_id(&self) -> Option<&str> {
2273 match self {
2274 Self::AccessDeniedException(e) => e.request_id(),
2275 Self::BadRequestException(e) => e.request_id(),
2276 Self::ConflictException(e) => e.request_id(),
2277 Self::ForbiddenException(e) => e.request_id(),
2278 Self::NotFoundException(e) => e.request_id(),
2279 Self::ResourceLimitExceededException(e) => e.request_id(),
2280 Self::ServiceFailureException(e) => e.request_id(),
2281 Self::ServiceUnavailableException(e) => e.request_id(),
2282 Self::ThrottledClientException(e) => e.request_id(),
2283 Self::UnauthorizedClientException(e) => e.request_id(),
2284 Self::UnprocessableEntityException(e) => e.request_id(),
2285 Self::Unhandled(e) => e.meta.request_id(),
2286 }
2287 }
2288}