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