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 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16 ThrottlingException(crate::types::error::ThrottlingException),
18 ValidationException(crate::types::error::ValidationException),
20 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22 variable wildcard pattern and check `.code()`:
23 \
24 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25 \
26 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27 Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31 match self {
32 Error::AccessDeniedException(inner) => inner.fmt(f),
33 Error::ConflictException(inner) => inner.fmt(f),
34 Error::InternalServerException(inner) => inner.fmt(f),
35 Error::ResourceNotFoundException(inner) => inner.fmt(f),
36 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37 Error::ThrottlingException(inner) => inner.fmt(f),
38 Error::ValidationException(inner) => inner.fmt(f),
39 Error::Unhandled(_) => {
40 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41 write!(f, "unhandled error ({code})")
42 } else {
43 f.write_str("unhandled error")
44 }
45 }
46 }
47 }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52 source: value.into(),
53 meta: ::std::default::Default::default(),
54 })
55 }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59 match self {
60 Self::AccessDeniedException(inner) => inner.meta(),
61 Self::ConflictException(inner) => inner.meta(),
62 Self::InternalServerException(inner) => inner.meta(),
63 Self::ResourceNotFoundException(inner) => inner.meta(),
64 Self::ServiceQuotaExceededException(inner) => inner.meta(),
65 Self::ThrottlingException(inner) => inner.meta(),
66 Self::ValidationException(inner) => inner.meta(),
67 Self::Unhandled(inner) => &inner.meta,
68 }
69 }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError, R>>
72 for Error
73where
74 R: Send + Sync + std::fmt::Debug + 'static,
75{
76 fn from(
77 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError, R>,
78 ) -> Self {
79 match err {
80 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
81 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
82 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
83 source: err.into(),
84 }),
85 }
86 }
87}
88impl From<crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError> for Error {
89 fn from(err: crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError) -> Self {
90 match err {
91 crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError::AccessDeniedException(inner) => {
92 Error::AccessDeniedException(inner)
93 }
94 crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError::ConflictException(inner) => Error::ConflictException(inner),
95 crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError::InternalServerException(inner) => {
96 Error::InternalServerException(inner)
97 }
98 crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError::ResourceNotFoundException(inner) => {
99 Error::ResourceNotFoundException(inner)
100 }
101 crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError::ServiceQuotaExceededException(inner) => {
102 Error::ServiceQuotaExceededException(inner)
103 }
104 crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError::ThrottlingException(inner) => {
105 Error::ThrottlingException(inner)
106 }
107 crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError::ValidationException(inner) => {
108 Error::ValidationException(inner)
109 }
110 crate::operation::associate_tracker_consumer::AssociateTrackerConsumerError::Unhandled(inner) => Error::Unhandled(inner),
111 }
112 }
113}
114impl<R>
115 From<
116 ::aws_smithy_runtime_api::client::result::SdkError<
117 crate::operation::batch_delete_device_position_history::BatchDeleteDevicePositionHistoryError,
118 R,
119 >,
120 > for Error
121where
122 R: Send + Sync + std::fmt::Debug + 'static,
123{
124 fn from(
125 err: ::aws_smithy_runtime_api::client::result::SdkError<
126 crate::operation::batch_delete_device_position_history::BatchDeleteDevicePositionHistoryError,
127 R,
128 >,
129 ) -> Self {
130 match err {
131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
134 source: err.into(),
135 }),
136 }
137 }
138}
139impl From<crate::operation::batch_delete_device_position_history::BatchDeleteDevicePositionHistoryError> for Error {
140 fn from(err: crate::operation::batch_delete_device_position_history::BatchDeleteDevicePositionHistoryError) -> Self {
141 match err {
142 crate::operation::batch_delete_device_position_history::BatchDeleteDevicePositionHistoryError::AccessDeniedException(inner) => {
143 Error::AccessDeniedException(inner)
144 }
145 crate::operation::batch_delete_device_position_history::BatchDeleteDevicePositionHistoryError::InternalServerException(inner) => {
146 Error::InternalServerException(inner)
147 }
148 crate::operation::batch_delete_device_position_history::BatchDeleteDevicePositionHistoryError::ResourceNotFoundException(inner) => {
149 Error::ResourceNotFoundException(inner)
150 }
151 crate::operation::batch_delete_device_position_history::BatchDeleteDevicePositionHistoryError::ThrottlingException(inner) => {
152 Error::ThrottlingException(inner)
153 }
154 crate::operation::batch_delete_device_position_history::BatchDeleteDevicePositionHistoryError::ValidationException(inner) => {
155 Error::ValidationException(inner)
156 }
157 crate::operation::batch_delete_device_position_history::BatchDeleteDevicePositionHistoryError::Unhandled(inner) => {
158 Error::Unhandled(inner)
159 }
160 }
161 }
162}
163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_geofence::BatchDeleteGeofenceError, R>> for Error
164where
165 R: Send + Sync + std::fmt::Debug + 'static,
166{
167 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_geofence::BatchDeleteGeofenceError, R>) -> Self {
168 match err {
169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
172 source: err.into(),
173 }),
174 }
175 }
176}
177impl From<crate::operation::batch_delete_geofence::BatchDeleteGeofenceError> for Error {
178 fn from(err: crate::operation::batch_delete_geofence::BatchDeleteGeofenceError) -> Self {
179 match err {
180 crate::operation::batch_delete_geofence::BatchDeleteGeofenceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
181 crate::operation::batch_delete_geofence::BatchDeleteGeofenceError::InternalServerException(inner) => {
182 Error::InternalServerException(inner)
183 }
184 crate::operation::batch_delete_geofence::BatchDeleteGeofenceError::ResourceNotFoundException(inner) => {
185 Error::ResourceNotFoundException(inner)
186 }
187 crate::operation::batch_delete_geofence::BatchDeleteGeofenceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
188 crate::operation::batch_delete_geofence::BatchDeleteGeofenceError::ValidationException(inner) => Error::ValidationException(inner),
189 crate::operation::batch_delete_geofence::BatchDeleteGeofenceError::Unhandled(inner) => Error::Unhandled(inner),
190 }
191 }
192}
193impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_evaluate_geofences::BatchEvaluateGeofencesError, R>> for Error
194where
195 R: Send + Sync + std::fmt::Debug + 'static,
196{
197 fn from(
198 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_evaluate_geofences::BatchEvaluateGeofencesError, R>,
199 ) -> Self {
200 match err {
201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
204 source: err.into(),
205 }),
206 }
207 }
208}
209impl From<crate::operation::batch_evaluate_geofences::BatchEvaluateGeofencesError> for Error {
210 fn from(err: crate::operation::batch_evaluate_geofences::BatchEvaluateGeofencesError) -> Self {
211 match err {
212 crate::operation::batch_evaluate_geofences::BatchEvaluateGeofencesError::AccessDeniedException(inner) => {
213 Error::AccessDeniedException(inner)
214 }
215 crate::operation::batch_evaluate_geofences::BatchEvaluateGeofencesError::InternalServerException(inner) => {
216 Error::InternalServerException(inner)
217 }
218 crate::operation::batch_evaluate_geofences::BatchEvaluateGeofencesError::ResourceNotFoundException(inner) => {
219 Error::ResourceNotFoundException(inner)
220 }
221 crate::operation::batch_evaluate_geofences::BatchEvaluateGeofencesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
222 crate::operation::batch_evaluate_geofences::BatchEvaluateGeofencesError::ValidationException(inner) => Error::ValidationException(inner),
223 crate::operation::batch_evaluate_geofences::BatchEvaluateGeofencesError::Unhandled(inner) => Error::Unhandled(inner),
224 }
225 }
226}
227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_device_position::BatchGetDevicePositionError, R>>
228 for Error
229where
230 R: Send + Sync + std::fmt::Debug + 'static,
231{
232 fn from(
233 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_device_position::BatchGetDevicePositionError, R>,
234 ) -> Self {
235 match err {
236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
239 source: err.into(),
240 }),
241 }
242 }
243}
244impl From<crate::operation::batch_get_device_position::BatchGetDevicePositionError> for Error {
245 fn from(err: crate::operation::batch_get_device_position::BatchGetDevicePositionError) -> Self {
246 match err {
247 crate::operation::batch_get_device_position::BatchGetDevicePositionError::AccessDeniedException(inner) => {
248 Error::AccessDeniedException(inner)
249 }
250 crate::operation::batch_get_device_position::BatchGetDevicePositionError::InternalServerException(inner) => {
251 Error::InternalServerException(inner)
252 }
253 crate::operation::batch_get_device_position::BatchGetDevicePositionError::ResourceNotFoundException(inner) => {
254 Error::ResourceNotFoundException(inner)
255 }
256 crate::operation::batch_get_device_position::BatchGetDevicePositionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
257 crate::operation::batch_get_device_position::BatchGetDevicePositionError::ValidationException(inner) => Error::ValidationException(inner),
258 crate::operation::batch_get_device_position::BatchGetDevicePositionError::Unhandled(inner) => Error::Unhandled(inner),
259 }
260 }
261}
262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_geofence::BatchPutGeofenceError, 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_put_geofence::BatchPutGeofenceError, 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_put_geofence::BatchPutGeofenceError> for Error {
277 fn from(err: crate::operation::batch_put_geofence::BatchPutGeofenceError) -> Self {
278 match err {
279 crate::operation::batch_put_geofence::BatchPutGeofenceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
280 crate::operation::batch_put_geofence::BatchPutGeofenceError::InternalServerException(inner) => Error::InternalServerException(inner),
281 crate::operation::batch_put_geofence::BatchPutGeofenceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
282 crate::operation::batch_put_geofence::BatchPutGeofenceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
283 crate::operation::batch_put_geofence::BatchPutGeofenceError::ValidationException(inner) => Error::ValidationException(inner),
284 crate::operation::batch_put_geofence::BatchPutGeofenceError::Unhandled(inner) => Error::Unhandled(inner),
285 }
286 }
287}
288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_device_position::BatchUpdateDevicePositionError, R>>
289 for Error
290where
291 R: Send + Sync + std::fmt::Debug + 'static,
292{
293 fn from(
294 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_device_position::BatchUpdateDevicePositionError, R>,
295 ) -> Self {
296 match err {
297 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
298 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
299 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
300 source: err.into(),
301 }),
302 }
303 }
304}
305impl From<crate::operation::batch_update_device_position::BatchUpdateDevicePositionError> for Error {
306 fn from(err: crate::operation::batch_update_device_position::BatchUpdateDevicePositionError) -> Self {
307 match err {
308 crate::operation::batch_update_device_position::BatchUpdateDevicePositionError::AccessDeniedException(inner) => {
309 Error::AccessDeniedException(inner)
310 }
311 crate::operation::batch_update_device_position::BatchUpdateDevicePositionError::InternalServerException(inner) => {
312 Error::InternalServerException(inner)
313 }
314 crate::operation::batch_update_device_position::BatchUpdateDevicePositionError::ResourceNotFoundException(inner) => {
315 Error::ResourceNotFoundException(inner)
316 }
317 crate::operation::batch_update_device_position::BatchUpdateDevicePositionError::ThrottlingException(inner) => {
318 Error::ThrottlingException(inner)
319 }
320 crate::operation::batch_update_device_position::BatchUpdateDevicePositionError::ValidationException(inner) => {
321 Error::ValidationException(inner)
322 }
323 crate::operation::batch_update_device_position::BatchUpdateDevicePositionError::Unhandled(inner) => Error::Unhandled(inner),
324 }
325 }
326}
327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::calculate_route::CalculateRouteError, R>> for Error
328where
329 R: Send + Sync + std::fmt::Debug + 'static,
330{
331 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::calculate_route::CalculateRouteError, R>) -> Self {
332 match err {
333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
336 source: err.into(),
337 }),
338 }
339 }
340}
341impl From<crate::operation::calculate_route::CalculateRouteError> for Error {
342 fn from(err: crate::operation::calculate_route::CalculateRouteError) -> Self {
343 match err {
344 crate::operation::calculate_route::CalculateRouteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
345 crate::operation::calculate_route::CalculateRouteError::InternalServerException(inner) => Error::InternalServerException(inner),
346 crate::operation::calculate_route::CalculateRouteError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
347 crate::operation::calculate_route::CalculateRouteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
348 crate::operation::calculate_route::CalculateRouteError::ValidationException(inner) => Error::ValidationException(inner),
349 crate::operation::calculate_route::CalculateRouteError::Unhandled(inner) => Error::Unhandled(inner),
350 }
351 }
352}
353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::calculate_route_matrix::CalculateRouteMatrixError, R>> for Error
354where
355 R: Send + Sync + std::fmt::Debug + 'static,
356{
357 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::calculate_route_matrix::CalculateRouteMatrixError, R>) -> Self {
358 match err {
359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
362 source: err.into(),
363 }),
364 }
365 }
366}
367impl From<crate::operation::calculate_route_matrix::CalculateRouteMatrixError> for Error {
368 fn from(err: crate::operation::calculate_route_matrix::CalculateRouteMatrixError) -> Self {
369 match err {
370 crate::operation::calculate_route_matrix::CalculateRouteMatrixError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
371 crate::operation::calculate_route_matrix::CalculateRouteMatrixError::InternalServerException(inner) => {
372 Error::InternalServerException(inner)
373 }
374 crate::operation::calculate_route_matrix::CalculateRouteMatrixError::ResourceNotFoundException(inner) => {
375 Error::ResourceNotFoundException(inner)
376 }
377 crate::operation::calculate_route_matrix::CalculateRouteMatrixError::ThrottlingException(inner) => Error::ThrottlingException(inner),
378 crate::operation::calculate_route_matrix::CalculateRouteMatrixError::ValidationException(inner) => Error::ValidationException(inner),
379 crate::operation::calculate_route_matrix::CalculateRouteMatrixError::Unhandled(inner) => Error::Unhandled(inner),
380 }
381 }
382}
383impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_job::CancelJobError, R>> for Error
384where
385 R: Send + Sync + std::fmt::Debug + 'static,
386{
387 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_job::CancelJobError, R>) -> Self {
388 match err {
389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
392 source: err.into(),
393 }),
394 }
395 }
396}
397impl From<crate::operation::cancel_job::CancelJobError> for Error {
398 fn from(err: crate::operation::cancel_job::CancelJobError) -> Self {
399 match err {
400 crate::operation::cancel_job::CancelJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
401 crate::operation::cancel_job::CancelJobError::InternalServerException(inner) => Error::InternalServerException(inner),
402 crate::operation::cancel_job::CancelJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
403 crate::operation::cancel_job::CancelJobError::ValidationException(inner) => Error::ValidationException(inner),
404 crate::operation::cancel_job::CancelJobError::Unhandled(inner) => Error::Unhandled(inner),
405 }
406 }
407}
408impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_geofence_collection::CreateGeofenceCollectionError, R>>
409 for Error
410where
411 R: Send + Sync + std::fmt::Debug + 'static,
412{
413 fn from(
414 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_geofence_collection::CreateGeofenceCollectionError, R>,
415 ) -> Self {
416 match err {
417 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
418 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
419 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
420 source: err.into(),
421 }),
422 }
423 }
424}
425impl From<crate::operation::create_geofence_collection::CreateGeofenceCollectionError> for Error {
426 fn from(err: crate::operation::create_geofence_collection::CreateGeofenceCollectionError) -> Self {
427 match err {
428 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::AccessDeniedException(inner) => {
429 Error::AccessDeniedException(inner)
430 }
431 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::ConflictException(inner) => Error::ConflictException(inner),
432 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::InternalServerException(inner) => {
433 Error::InternalServerException(inner)
434 }
435 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::ServiceQuotaExceededException(inner) => {
436 Error::ServiceQuotaExceededException(inner)
437 }
438 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::ThrottlingException(inner) => {
439 Error::ThrottlingException(inner)
440 }
441 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::ValidationException(inner) => {
442 Error::ValidationException(inner)
443 }
444 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::Unhandled(inner) => Error::Unhandled(inner),
445 }
446 }
447}
448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key::CreateKeyError, 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::create_key::CreateKeyError, 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::create_key::CreateKeyError> for Error {
463 fn from(err: crate::operation::create_key::CreateKeyError) -> Self {
464 match err {
465 crate::operation::create_key::CreateKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
466 crate::operation::create_key::CreateKeyError::ConflictException(inner) => Error::ConflictException(inner),
467 crate::operation::create_key::CreateKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
468 crate::operation::create_key::CreateKeyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
469 crate::operation::create_key::CreateKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
470 crate::operation::create_key::CreateKeyError::ValidationException(inner) => Error::ValidationException(inner),
471 crate::operation::create_key::CreateKeyError::Unhandled(inner) => Error::Unhandled(inner),
472 }
473 }
474}
475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_map::CreateMapError, R>> for Error
476where
477 R: Send + Sync + std::fmt::Debug + 'static,
478{
479 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_map::CreateMapError, R>) -> Self {
480 match err {
481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
484 source: err.into(),
485 }),
486 }
487 }
488}
489impl From<crate::operation::create_map::CreateMapError> for Error {
490 fn from(err: crate::operation::create_map::CreateMapError) -> Self {
491 match err {
492 crate::operation::create_map::CreateMapError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
493 crate::operation::create_map::CreateMapError::ConflictException(inner) => Error::ConflictException(inner),
494 crate::operation::create_map::CreateMapError::InternalServerException(inner) => Error::InternalServerException(inner),
495 crate::operation::create_map::CreateMapError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
496 crate::operation::create_map::CreateMapError::ThrottlingException(inner) => Error::ThrottlingException(inner),
497 crate::operation::create_map::CreateMapError::ValidationException(inner) => Error::ValidationException(inner),
498 crate::operation::create_map::CreateMapError::Unhandled(inner) => Error::Unhandled(inner),
499 }
500 }
501}
502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_place_index::CreatePlaceIndexError, R>> for Error
503where
504 R: Send + Sync + std::fmt::Debug + 'static,
505{
506 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_place_index::CreatePlaceIndexError, R>) -> Self {
507 match err {
508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
511 source: err.into(),
512 }),
513 }
514 }
515}
516impl From<crate::operation::create_place_index::CreatePlaceIndexError> for Error {
517 fn from(err: crate::operation::create_place_index::CreatePlaceIndexError) -> Self {
518 match err {
519 crate::operation::create_place_index::CreatePlaceIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
520 crate::operation::create_place_index::CreatePlaceIndexError::ConflictException(inner) => Error::ConflictException(inner),
521 crate::operation::create_place_index::CreatePlaceIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
522 crate::operation::create_place_index::CreatePlaceIndexError::ServiceQuotaExceededException(inner) => {
523 Error::ServiceQuotaExceededException(inner)
524 }
525 crate::operation::create_place_index::CreatePlaceIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
526 crate::operation::create_place_index::CreatePlaceIndexError::ValidationException(inner) => Error::ValidationException(inner),
527 crate::operation::create_place_index::CreatePlaceIndexError::Unhandled(inner) => Error::Unhandled(inner),
528 }
529 }
530}
531impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_calculator::CreateRouteCalculatorError, R>> for Error
532where
533 R: Send + Sync + std::fmt::Debug + 'static,
534{
535 fn from(
536 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_calculator::CreateRouteCalculatorError, R>,
537 ) -> Self {
538 match err {
539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
542 source: err.into(),
543 }),
544 }
545 }
546}
547impl From<crate::operation::create_route_calculator::CreateRouteCalculatorError> for Error {
548 fn from(err: crate::operation::create_route_calculator::CreateRouteCalculatorError) -> Self {
549 match err {
550 crate::operation::create_route_calculator::CreateRouteCalculatorError::AccessDeniedException(inner) => {
551 Error::AccessDeniedException(inner)
552 }
553 crate::operation::create_route_calculator::CreateRouteCalculatorError::ConflictException(inner) => Error::ConflictException(inner),
554 crate::operation::create_route_calculator::CreateRouteCalculatorError::InternalServerException(inner) => {
555 Error::InternalServerException(inner)
556 }
557 crate::operation::create_route_calculator::CreateRouteCalculatorError::ServiceQuotaExceededException(inner) => {
558 Error::ServiceQuotaExceededException(inner)
559 }
560 crate::operation::create_route_calculator::CreateRouteCalculatorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
561 crate::operation::create_route_calculator::CreateRouteCalculatorError::ValidationException(inner) => Error::ValidationException(inner),
562 crate::operation::create_route_calculator::CreateRouteCalculatorError::Unhandled(inner) => Error::Unhandled(inner),
563 }
564 }
565}
566impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tracker::CreateTrackerError, R>> for Error
567where
568 R: Send + Sync + std::fmt::Debug + 'static,
569{
570 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tracker::CreateTrackerError, R>) -> Self {
571 match err {
572 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
573 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
574 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
575 source: err.into(),
576 }),
577 }
578 }
579}
580impl From<crate::operation::create_tracker::CreateTrackerError> for Error {
581 fn from(err: crate::operation::create_tracker::CreateTrackerError) -> Self {
582 match err {
583 crate::operation::create_tracker::CreateTrackerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
584 crate::operation::create_tracker::CreateTrackerError::ConflictException(inner) => Error::ConflictException(inner),
585 crate::operation::create_tracker::CreateTrackerError::InternalServerException(inner) => Error::InternalServerException(inner),
586 crate::operation::create_tracker::CreateTrackerError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
587 crate::operation::create_tracker::CreateTrackerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
588 crate::operation::create_tracker::CreateTrackerError::ValidationException(inner) => Error::ValidationException(inner),
589 crate::operation::create_tracker::CreateTrackerError::Unhandled(inner) => Error::Unhandled(inner),
590 }
591 }
592}
593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError, R>>
594 for Error
595where
596 R: Send + Sync + std::fmt::Debug + 'static,
597{
598 fn from(
599 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError, R>,
600 ) -> Self {
601 match err {
602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
605 source: err.into(),
606 }),
607 }
608 }
609}
610impl From<crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError> for Error {
611 fn from(err: crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError) -> Self {
612 match err {
613 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::AccessDeniedException(inner) => {
614 Error::AccessDeniedException(inner)
615 }
616 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::InternalServerException(inner) => {
617 Error::InternalServerException(inner)
618 }
619 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::ResourceNotFoundException(inner) => {
620 Error::ResourceNotFoundException(inner)
621 }
622 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::ThrottlingException(inner) => {
623 Error::ThrottlingException(inner)
624 }
625 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::ValidationException(inner) => {
626 Error::ValidationException(inner)
627 }
628 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::Unhandled(inner) => Error::Unhandled(inner),
629 }
630 }
631}
632impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key::DeleteKeyError, R>> for Error
633where
634 R: Send + Sync + std::fmt::Debug + 'static,
635{
636 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key::DeleteKeyError, R>) -> Self {
637 match err {
638 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
639 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
640 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
641 source: err.into(),
642 }),
643 }
644 }
645}
646impl From<crate::operation::delete_key::DeleteKeyError> for Error {
647 fn from(err: crate::operation::delete_key::DeleteKeyError) -> Self {
648 match err {
649 crate::operation::delete_key::DeleteKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
650 crate::operation::delete_key::DeleteKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
651 crate::operation::delete_key::DeleteKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
652 crate::operation::delete_key::DeleteKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
653 crate::operation::delete_key::DeleteKeyError::ValidationException(inner) => Error::ValidationException(inner),
654 crate::operation::delete_key::DeleteKeyError::Unhandled(inner) => Error::Unhandled(inner),
655 }
656 }
657}
658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_map::DeleteMapError, R>> for Error
659where
660 R: Send + Sync + std::fmt::Debug + 'static,
661{
662 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_map::DeleteMapError, R>) -> Self {
663 match err {
664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
667 source: err.into(),
668 }),
669 }
670 }
671}
672impl From<crate::operation::delete_map::DeleteMapError> for Error {
673 fn from(err: crate::operation::delete_map::DeleteMapError) -> Self {
674 match err {
675 crate::operation::delete_map::DeleteMapError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
676 crate::operation::delete_map::DeleteMapError::InternalServerException(inner) => Error::InternalServerException(inner),
677 crate::operation::delete_map::DeleteMapError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
678 crate::operation::delete_map::DeleteMapError::ThrottlingException(inner) => Error::ThrottlingException(inner),
679 crate::operation::delete_map::DeleteMapError::ValidationException(inner) => Error::ValidationException(inner),
680 crate::operation::delete_map::DeleteMapError::Unhandled(inner) => Error::Unhandled(inner),
681 }
682 }
683}
684impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_place_index::DeletePlaceIndexError, R>> for Error
685where
686 R: Send + Sync + std::fmt::Debug + 'static,
687{
688 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_place_index::DeletePlaceIndexError, R>) -> Self {
689 match err {
690 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
691 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
692 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
693 source: err.into(),
694 }),
695 }
696 }
697}
698impl From<crate::operation::delete_place_index::DeletePlaceIndexError> for Error {
699 fn from(err: crate::operation::delete_place_index::DeletePlaceIndexError) -> Self {
700 match err {
701 crate::operation::delete_place_index::DeletePlaceIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
702 crate::operation::delete_place_index::DeletePlaceIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
703 crate::operation::delete_place_index::DeletePlaceIndexError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
704 crate::operation::delete_place_index::DeletePlaceIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
705 crate::operation::delete_place_index::DeletePlaceIndexError::ValidationException(inner) => Error::ValidationException(inner),
706 crate::operation::delete_place_index::DeletePlaceIndexError::Unhandled(inner) => Error::Unhandled(inner),
707 }
708 }
709}
710impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_calculator::DeleteRouteCalculatorError, R>> for Error
711where
712 R: Send + Sync + std::fmt::Debug + 'static,
713{
714 fn from(
715 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_calculator::DeleteRouteCalculatorError, R>,
716 ) -> Self {
717 match err {
718 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
719 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
720 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
721 source: err.into(),
722 }),
723 }
724 }
725}
726impl From<crate::operation::delete_route_calculator::DeleteRouteCalculatorError> for Error {
727 fn from(err: crate::operation::delete_route_calculator::DeleteRouteCalculatorError) -> Self {
728 match err {
729 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::AccessDeniedException(inner) => {
730 Error::AccessDeniedException(inner)
731 }
732 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::InternalServerException(inner) => {
733 Error::InternalServerException(inner)
734 }
735 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::ResourceNotFoundException(inner) => {
736 Error::ResourceNotFoundException(inner)
737 }
738 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
739 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::ValidationException(inner) => Error::ValidationException(inner),
740 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::Unhandled(inner) => Error::Unhandled(inner),
741 }
742 }
743}
744impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tracker::DeleteTrackerError, R>> for Error
745where
746 R: Send + Sync + std::fmt::Debug + 'static,
747{
748 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tracker::DeleteTrackerError, R>) -> Self {
749 match err {
750 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
751 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
752 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
753 source: err.into(),
754 }),
755 }
756 }
757}
758impl From<crate::operation::delete_tracker::DeleteTrackerError> for Error {
759 fn from(err: crate::operation::delete_tracker::DeleteTrackerError) -> Self {
760 match err {
761 crate::operation::delete_tracker::DeleteTrackerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
762 crate::operation::delete_tracker::DeleteTrackerError::InternalServerException(inner) => Error::InternalServerException(inner),
763 crate::operation::delete_tracker::DeleteTrackerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
764 crate::operation::delete_tracker::DeleteTrackerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
765 crate::operation::delete_tracker::DeleteTrackerError::ValidationException(inner) => Error::ValidationException(inner),
766 crate::operation::delete_tracker::DeleteTrackerError::Unhandled(inner) => Error::Unhandled(inner),
767 }
768 }
769}
770impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError, R>>
771 for Error
772where
773 R: Send + Sync + std::fmt::Debug + 'static,
774{
775 fn from(
776 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError, R>,
777 ) -> Self {
778 match err {
779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
782 source: err.into(),
783 }),
784 }
785 }
786}
787impl From<crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError> for Error {
788 fn from(err: crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError) -> Self {
789 match err {
790 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::AccessDeniedException(inner) => {
791 Error::AccessDeniedException(inner)
792 }
793 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::InternalServerException(inner) => {
794 Error::InternalServerException(inner)
795 }
796 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::ResourceNotFoundException(inner) => {
797 Error::ResourceNotFoundException(inner)
798 }
799 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::ThrottlingException(inner) => {
800 Error::ThrottlingException(inner)
801 }
802 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::ValidationException(inner) => {
803 Error::ValidationException(inner)
804 }
805 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::Unhandled(inner) => Error::Unhandled(inner),
806 }
807 }
808}
809impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key::DescribeKeyError, R>> for Error
810where
811 R: Send + Sync + std::fmt::Debug + 'static,
812{
813 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key::DescribeKeyError, R>) -> Self {
814 match err {
815 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
816 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
817 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
818 source: err.into(),
819 }),
820 }
821 }
822}
823impl From<crate::operation::describe_key::DescribeKeyError> for Error {
824 fn from(err: crate::operation::describe_key::DescribeKeyError) -> Self {
825 match err {
826 crate::operation::describe_key::DescribeKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
827 crate::operation::describe_key::DescribeKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
828 crate::operation::describe_key::DescribeKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
829 crate::operation::describe_key::DescribeKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
830 crate::operation::describe_key::DescribeKeyError::ValidationException(inner) => Error::ValidationException(inner),
831 crate::operation::describe_key::DescribeKeyError::Unhandled(inner) => Error::Unhandled(inner),
832 }
833 }
834}
835impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_map::DescribeMapError, R>> for Error
836where
837 R: Send + Sync + std::fmt::Debug + 'static,
838{
839 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_map::DescribeMapError, R>) -> Self {
840 match err {
841 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
842 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
843 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
844 source: err.into(),
845 }),
846 }
847 }
848}
849impl From<crate::operation::describe_map::DescribeMapError> for Error {
850 fn from(err: crate::operation::describe_map::DescribeMapError) -> Self {
851 match err {
852 crate::operation::describe_map::DescribeMapError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
853 crate::operation::describe_map::DescribeMapError::InternalServerException(inner) => Error::InternalServerException(inner),
854 crate::operation::describe_map::DescribeMapError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
855 crate::operation::describe_map::DescribeMapError::ThrottlingException(inner) => Error::ThrottlingException(inner),
856 crate::operation::describe_map::DescribeMapError::ValidationException(inner) => Error::ValidationException(inner),
857 crate::operation::describe_map::DescribeMapError::Unhandled(inner) => Error::Unhandled(inner),
858 }
859 }
860}
861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_place_index::DescribePlaceIndexError, R>> for Error
862where
863 R: Send + Sync + std::fmt::Debug + 'static,
864{
865 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_place_index::DescribePlaceIndexError, R>) -> Self {
866 match err {
867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870 source: err.into(),
871 }),
872 }
873 }
874}
875impl From<crate::operation::describe_place_index::DescribePlaceIndexError> for Error {
876 fn from(err: crate::operation::describe_place_index::DescribePlaceIndexError) -> Self {
877 match err {
878 crate::operation::describe_place_index::DescribePlaceIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
879 crate::operation::describe_place_index::DescribePlaceIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
880 crate::operation::describe_place_index::DescribePlaceIndexError::ResourceNotFoundException(inner) => {
881 Error::ResourceNotFoundException(inner)
882 }
883 crate::operation::describe_place_index::DescribePlaceIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
884 crate::operation::describe_place_index::DescribePlaceIndexError::ValidationException(inner) => Error::ValidationException(inner),
885 crate::operation::describe_place_index::DescribePlaceIndexError::Unhandled(inner) => Error::Unhandled(inner),
886 }
887 }
888}
889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_calculator::DescribeRouteCalculatorError, R>>
890 for Error
891where
892 R: Send + Sync + std::fmt::Debug + 'static,
893{
894 fn from(
895 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_calculator::DescribeRouteCalculatorError, R>,
896 ) -> Self {
897 match err {
898 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
899 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
900 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
901 source: err.into(),
902 }),
903 }
904 }
905}
906impl From<crate::operation::describe_route_calculator::DescribeRouteCalculatorError> for Error {
907 fn from(err: crate::operation::describe_route_calculator::DescribeRouteCalculatorError) -> Self {
908 match err {
909 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::AccessDeniedException(inner) => {
910 Error::AccessDeniedException(inner)
911 }
912 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::InternalServerException(inner) => {
913 Error::InternalServerException(inner)
914 }
915 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::ResourceNotFoundException(inner) => {
916 Error::ResourceNotFoundException(inner)
917 }
918 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::ThrottlingException(inner) => {
919 Error::ThrottlingException(inner)
920 }
921 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::ValidationException(inner) => {
922 Error::ValidationException(inner)
923 }
924 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::Unhandled(inner) => Error::Unhandled(inner),
925 }
926 }
927}
928impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tracker::DescribeTrackerError, R>> for Error
929where
930 R: Send + Sync + std::fmt::Debug + 'static,
931{
932 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tracker::DescribeTrackerError, R>) -> Self {
933 match err {
934 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
935 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
936 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
937 source: err.into(),
938 }),
939 }
940 }
941}
942impl From<crate::operation::describe_tracker::DescribeTrackerError> for Error {
943 fn from(err: crate::operation::describe_tracker::DescribeTrackerError) -> Self {
944 match err {
945 crate::operation::describe_tracker::DescribeTrackerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
946 crate::operation::describe_tracker::DescribeTrackerError::InternalServerException(inner) => Error::InternalServerException(inner),
947 crate::operation::describe_tracker::DescribeTrackerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
948 crate::operation::describe_tracker::DescribeTrackerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
949 crate::operation::describe_tracker::DescribeTrackerError::ValidationException(inner) => Error::ValidationException(inner),
950 crate::operation::describe_tracker::DescribeTrackerError::Unhandled(inner) => Error::Unhandled(inner),
951 }
952 }
953}
954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError, R>>
955 for Error
956where
957 R: Send + Sync + std::fmt::Debug + 'static,
958{
959 fn from(
960 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError, R>,
961 ) -> Self {
962 match err {
963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
966 source: err.into(),
967 }),
968 }
969 }
970}
971impl From<crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError> for Error {
972 fn from(err: crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError) -> Self {
973 match err {
974 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::AccessDeniedException(inner) => {
975 Error::AccessDeniedException(inner)
976 }
977 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::InternalServerException(inner) => {
978 Error::InternalServerException(inner)
979 }
980 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::ResourceNotFoundException(inner) => {
981 Error::ResourceNotFoundException(inner)
982 }
983 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::ThrottlingException(inner) => {
984 Error::ThrottlingException(inner)
985 }
986 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::ValidationException(inner) => {
987 Error::ValidationException(inner)
988 }
989 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::Unhandled(inner) => Error::Unhandled(inner),
990 }
991 }
992}
993impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::forecast_geofence_events::ForecastGeofenceEventsError, R>> for Error
994where
995 R: Send + Sync + std::fmt::Debug + 'static,
996{
997 fn from(
998 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::forecast_geofence_events::ForecastGeofenceEventsError, R>,
999 ) -> Self {
1000 match err {
1001 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1002 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1003 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1004 source: err.into(),
1005 }),
1006 }
1007 }
1008}
1009impl From<crate::operation::forecast_geofence_events::ForecastGeofenceEventsError> for Error {
1010 fn from(err: crate::operation::forecast_geofence_events::ForecastGeofenceEventsError) -> Self {
1011 match err {
1012 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::AccessDeniedException(inner) => {
1013 Error::AccessDeniedException(inner)
1014 }
1015 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::InternalServerException(inner) => {
1016 Error::InternalServerException(inner)
1017 }
1018 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::ResourceNotFoundException(inner) => {
1019 Error::ResourceNotFoundException(inner)
1020 }
1021 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1022 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::ValidationException(inner) => Error::ValidationException(inner),
1023 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::Unhandled(inner) => Error::Unhandled(inner),
1024 }
1025 }
1026}
1027impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_position::GetDevicePositionError, R>> for Error
1028where
1029 R: Send + Sync + std::fmt::Debug + 'static,
1030{
1031 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_position::GetDevicePositionError, R>) -> Self {
1032 match err {
1033 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1034 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1035 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1036 source: err.into(),
1037 }),
1038 }
1039 }
1040}
1041impl From<crate::operation::get_device_position::GetDevicePositionError> for Error {
1042 fn from(err: crate::operation::get_device_position::GetDevicePositionError) -> Self {
1043 match err {
1044 crate::operation::get_device_position::GetDevicePositionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1045 crate::operation::get_device_position::GetDevicePositionError::InternalServerException(inner) => Error::InternalServerException(inner),
1046 crate::operation::get_device_position::GetDevicePositionError::ResourceNotFoundException(inner) => {
1047 Error::ResourceNotFoundException(inner)
1048 }
1049 crate::operation::get_device_position::GetDevicePositionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1050 crate::operation::get_device_position::GetDevicePositionError::ValidationException(inner) => Error::ValidationException(inner),
1051 crate::operation::get_device_position::GetDevicePositionError::Unhandled(inner) => Error::Unhandled(inner),
1052 }
1053 }
1054}
1055impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_position_history::GetDevicePositionHistoryError, R>>
1056 for Error
1057where
1058 R: Send + Sync + std::fmt::Debug + 'static,
1059{
1060 fn from(
1061 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_position_history::GetDevicePositionHistoryError, R>,
1062 ) -> 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::get_device_position_history::GetDevicePositionHistoryError> for Error {
1073 fn from(err: crate::operation::get_device_position_history::GetDevicePositionHistoryError) -> Self {
1074 match err {
1075 crate::operation::get_device_position_history::GetDevicePositionHistoryError::AccessDeniedException(inner) => {
1076 Error::AccessDeniedException(inner)
1077 }
1078 crate::operation::get_device_position_history::GetDevicePositionHistoryError::InternalServerException(inner) => {
1079 Error::InternalServerException(inner)
1080 }
1081 crate::operation::get_device_position_history::GetDevicePositionHistoryError::ResourceNotFoundException(inner) => {
1082 Error::ResourceNotFoundException(inner)
1083 }
1084 crate::operation::get_device_position_history::GetDevicePositionHistoryError::ThrottlingException(inner) => {
1085 Error::ThrottlingException(inner)
1086 }
1087 crate::operation::get_device_position_history::GetDevicePositionHistoryError::ValidationException(inner) => {
1088 Error::ValidationException(inner)
1089 }
1090 crate::operation::get_device_position_history::GetDevicePositionHistoryError::Unhandled(inner) => Error::Unhandled(inner),
1091 }
1092 }
1093}
1094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_geofence::GetGeofenceError, R>> for Error
1095where
1096 R: Send + Sync + std::fmt::Debug + 'static,
1097{
1098 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_geofence::GetGeofenceError, R>) -> Self {
1099 match err {
1100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1103 source: err.into(),
1104 }),
1105 }
1106 }
1107}
1108impl From<crate::operation::get_geofence::GetGeofenceError> for Error {
1109 fn from(err: crate::operation::get_geofence::GetGeofenceError) -> Self {
1110 match err {
1111 crate::operation::get_geofence::GetGeofenceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1112 crate::operation::get_geofence::GetGeofenceError::InternalServerException(inner) => Error::InternalServerException(inner),
1113 crate::operation::get_geofence::GetGeofenceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1114 crate::operation::get_geofence::GetGeofenceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1115 crate::operation::get_geofence::GetGeofenceError::ValidationException(inner) => Error::ValidationException(inner),
1116 crate::operation::get_geofence::GetGeofenceError::Unhandled(inner) => Error::Unhandled(inner),
1117 }
1118 }
1119}
1120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, R>> for Error
1121where
1122 R: Send + Sync + std::fmt::Debug + 'static,
1123{
1124 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, R>) -> Self {
1125 match err {
1126 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1127 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1128 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1129 source: err.into(),
1130 }),
1131 }
1132 }
1133}
1134impl From<crate::operation::get_job::GetJobError> for Error {
1135 fn from(err: crate::operation::get_job::GetJobError) -> Self {
1136 match err {
1137 crate::operation::get_job::GetJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1138 crate::operation::get_job::GetJobError::InternalServerException(inner) => Error::InternalServerException(inner),
1139 crate::operation::get_job::GetJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1140 crate::operation::get_job::GetJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1141 crate::operation::get_job::GetJobError::ValidationException(inner) => Error::ValidationException(inner),
1142 crate::operation::get_job::GetJobError::Unhandled(inner) => Error::Unhandled(inner),
1143 }
1144 }
1145}
1146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_glyphs::GetMapGlyphsError, R>> for Error
1147where
1148 R: Send + Sync + std::fmt::Debug + 'static,
1149{
1150 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_glyphs::GetMapGlyphsError, R>) -> Self {
1151 match err {
1152 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1153 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1154 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1155 source: err.into(),
1156 }),
1157 }
1158 }
1159}
1160impl From<crate::operation::get_map_glyphs::GetMapGlyphsError> for Error {
1161 fn from(err: crate::operation::get_map_glyphs::GetMapGlyphsError) -> Self {
1162 match err {
1163 crate::operation::get_map_glyphs::GetMapGlyphsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1164 crate::operation::get_map_glyphs::GetMapGlyphsError::InternalServerException(inner) => Error::InternalServerException(inner),
1165 crate::operation::get_map_glyphs::GetMapGlyphsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1166 crate::operation::get_map_glyphs::GetMapGlyphsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1167 crate::operation::get_map_glyphs::GetMapGlyphsError::ValidationException(inner) => Error::ValidationException(inner),
1168 crate::operation::get_map_glyphs::GetMapGlyphsError::Unhandled(inner) => Error::Unhandled(inner),
1169 }
1170 }
1171}
1172impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_sprites::GetMapSpritesError, R>> for Error
1173where
1174 R: Send + Sync + std::fmt::Debug + 'static,
1175{
1176 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_sprites::GetMapSpritesError, R>) -> Self {
1177 match err {
1178 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1179 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1180 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1181 source: err.into(),
1182 }),
1183 }
1184 }
1185}
1186impl From<crate::operation::get_map_sprites::GetMapSpritesError> for Error {
1187 fn from(err: crate::operation::get_map_sprites::GetMapSpritesError) -> Self {
1188 match err {
1189 crate::operation::get_map_sprites::GetMapSpritesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1190 crate::operation::get_map_sprites::GetMapSpritesError::InternalServerException(inner) => Error::InternalServerException(inner),
1191 crate::operation::get_map_sprites::GetMapSpritesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1192 crate::operation::get_map_sprites::GetMapSpritesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1193 crate::operation::get_map_sprites::GetMapSpritesError::ValidationException(inner) => Error::ValidationException(inner),
1194 crate::operation::get_map_sprites::GetMapSpritesError::Unhandled(inner) => Error::Unhandled(inner),
1195 }
1196 }
1197}
1198impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError, R>> for Error
1199where
1200 R: Send + Sync + std::fmt::Debug + 'static,
1201{
1202 fn from(
1203 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError, R>,
1204 ) -> Self {
1205 match err {
1206 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1207 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1208 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1209 source: err.into(),
1210 }),
1211 }
1212 }
1213}
1214impl From<crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError> for Error {
1215 fn from(err: crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError) -> Self {
1216 match err {
1217 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::AccessDeniedException(inner) => {
1218 Error::AccessDeniedException(inner)
1219 }
1220 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::InternalServerException(inner) => {
1221 Error::InternalServerException(inner)
1222 }
1223 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::ResourceNotFoundException(inner) => {
1224 Error::ResourceNotFoundException(inner)
1225 }
1226 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1227 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::ValidationException(inner) => Error::ValidationException(inner),
1228 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::Unhandled(inner) => Error::Unhandled(inner),
1229 }
1230 }
1231}
1232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_tile::GetMapTileError, R>> for Error
1233where
1234 R: Send + Sync + std::fmt::Debug + 'static,
1235{
1236 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_tile::GetMapTileError, R>) -> Self {
1237 match err {
1238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1241 source: err.into(),
1242 }),
1243 }
1244 }
1245}
1246impl From<crate::operation::get_map_tile::GetMapTileError> for Error {
1247 fn from(err: crate::operation::get_map_tile::GetMapTileError) -> Self {
1248 match err {
1249 crate::operation::get_map_tile::GetMapTileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1250 crate::operation::get_map_tile::GetMapTileError::InternalServerException(inner) => Error::InternalServerException(inner),
1251 crate::operation::get_map_tile::GetMapTileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1252 crate::operation::get_map_tile::GetMapTileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1253 crate::operation::get_map_tile::GetMapTileError::ValidationException(inner) => Error::ValidationException(inner),
1254 crate::operation::get_map_tile::GetMapTileError::Unhandled(inner) => Error::Unhandled(inner),
1255 }
1256 }
1257}
1258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_place::GetPlaceError, R>> for Error
1259where
1260 R: Send + Sync + std::fmt::Debug + 'static,
1261{
1262 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_place::GetPlaceError, R>) -> Self {
1263 match err {
1264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1267 source: err.into(),
1268 }),
1269 }
1270 }
1271}
1272impl From<crate::operation::get_place::GetPlaceError> for Error {
1273 fn from(err: crate::operation::get_place::GetPlaceError) -> Self {
1274 match err {
1275 crate::operation::get_place::GetPlaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1276 crate::operation::get_place::GetPlaceError::InternalServerException(inner) => Error::InternalServerException(inner),
1277 crate::operation::get_place::GetPlaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1278 crate::operation::get_place::GetPlaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1279 crate::operation::get_place::GetPlaceError::ValidationException(inner) => Error::ValidationException(inner),
1280 crate::operation::get_place::GetPlaceError::Unhandled(inner) => Error::Unhandled(inner),
1281 }
1282 }
1283}
1284impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_positions::ListDevicePositionsError, R>> for Error
1285where
1286 R: Send + Sync + std::fmt::Debug + 'static,
1287{
1288 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_positions::ListDevicePositionsError, R>) -> Self {
1289 match err {
1290 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1291 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1292 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1293 source: err.into(),
1294 }),
1295 }
1296 }
1297}
1298impl From<crate::operation::list_device_positions::ListDevicePositionsError> for Error {
1299 fn from(err: crate::operation::list_device_positions::ListDevicePositionsError) -> Self {
1300 match err {
1301 crate::operation::list_device_positions::ListDevicePositionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1302 crate::operation::list_device_positions::ListDevicePositionsError::InternalServerException(inner) => {
1303 Error::InternalServerException(inner)
1304 }
1305 crate::operation::list_device_positions::ListDevicePositionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1306 crate::operation::list_device_positions::ListDevicePositionsError::ValidationException(inner) => Error::ValidationException(inner),
1307 crate::operation::list_device_positions::ListDevicePositionsError::Unhandled(inner) => Error::Unhandled(inner),
1308 }
1309 }
1310}
1311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_geofence_collections::ListGeofenceCollectionsError, R>>
1312 for Error
1313where
1314 R: Send + Sync + std::fmt::Debug + 'static,
1315{
1316 fn from(
1317 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_geofence_collections::ListGeofenceCollectionsError, R>,
1318 ) -> Self {
1319 match err {
1320 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1321 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1322 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1323 source: err.into(),
1324 }),
1325 }
1326 }
1327}
1328impl From<crate::operation::list_geofence_collections::ListGeofenceCollectionsError> for Error {
1329 fn from(err: crate::operation::list_geofence_collections::ListGeofenceCollectionsError) -> Self {
1330 match err {
1331 crate::operation::list_geofence_collections::ListGeofenceCollectionsError::AccessDeniedException(inner) => {
1332 Error::AccessDeniedException(inner)
1333 }
1334 crate::operation::list_geofence_collections::ListGeofenceCollectionsError::InternalServerException(inner) => {
1335 Error::InternalServerException(inner)
1336 }
1337 crate::operation::list_geofence_collections::ListGeofenceCollectionsError::ThrottlingException(inner) => {
1338 Error::ThrottlingException(inner)
1339 }
1340 crate::operation::list_geofence_collections::ListGeofenceCollectionsError::ValidationException(inner) => {
1341 Error::ValidationException(inner)
1342 }
1343 crate::operation::list_geofence_collections::ListGeofenceCollectionsError::Unhandled(inner) => Error::Unhandled(inner),
1344 }
1345 }
1346}
1347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_geofences::ListGeofencesError, R>> for Error
1348where
1349 R: Send + Sync + std::fmt::Debug + 'static,
1350{
1351 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_geofences::ListGeofencesError, R>) -> Self {
1352 match err {
1353 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1354 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1355 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1356 source: err.into(),
1357 }),
1358 }
1359 }
1360}
1361impl From<crate::operation::list_geofences::ListGeofencesError> for Error {
1362 fn from(err: crate::operation::list_geofences::ListGeofencesError) -> Self {
1363 match err {
1364 crate::operation::list_geofences::ListGeofencesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1365 crate::operation::list_geofences::ListGeofencesError::InternalServerException(inner) => Error::InternalServerException(inner),
1366 crate::operation::list_geofences::ListGeofencesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1367 crate::operation::list_geofences::ListGeofencesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1368 crate::operation::list_geofences::ListGeofencesError::ValidationException(inner) => Error::ValidationException(inner),
1369 crate::operation::list_geofences::ListGeofencesError::Unhandled(inner) => Error::Unhandled(inner),
1370 }
1371 }
1372}
1373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>> for Error
1374where
1375 R: Send + Sync + std::fmt::Debug + 'static,
1376{
1377 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>) -> Self {
1378 match err {
1379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1382 source: err.into(),
1383 }),
1384 }
1385 }
1386}
1387impl From<crate::operation::list_jobs::ListJobsError> for Error {
1388 fn from(err: crate::operation::list_jobs::ListJobsError) -> Self {
1389 match err {
1390 crate::operation::list_jobs::ListJobsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1391 crate::operation::list_jobs::ListJobsError::InternalServerException(inner) => Error::InternalServerException(inner),
1392 crate::operation::list_jobs::ListJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1393 crate::operation::list_jobs::ListJobsError::ValidationException(inner) => Error::ValidationException(inner),
1394 crate::operation::list_jobs::ListJobsError::Unhandled(inner) => Error::Unhandled(inner),
1395 }
1396 }
1397}
1398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_keys::ListKeysError, R>> for Error
1399where
1400 R: Send + Sync + std::fmt::Debug + 'static,
1401{
1402 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_keys::ListKeysError, R>) -> Self {
1403 match err {
1404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1407 source: err.into(),
1408 }),
1409 }
1410 }
1411}
1412impl From<crate::operation::list_keys::ListKeysError> for Error {
1413 fn from(err: crate::operation::list_keys::ListKeysError) -> Self {
1414 match err {
1415 crate::operation::list_keys::ListKeysError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1416 crate::operation::list_keys::ListKeysError::InternalServerException(inner) => Error::InternalServerException(inner),
1417 crate::operation::list_keys::ListKeysError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1418 crate::operation::list_keys::ListKeysError::ValidationException(inner) => Error::ValidationException(inner),
1419 crate::operation::list_keys::ListKeysError::Unhandled(inner) => Error::Unhandled(inner),
1420 }
1421 }
1422}
1423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_maps::ListMapsError, R>> for Error
1424where
1425 R: Send + Sync + std::fmt::Debug + 'static,
1426{
1427 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_maps::ListMapsError, R>) -> Self {
1428 match err {
1429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1432 source: err.into(),
1433 }),
1434 }
1435 }
1436}
1437impl From<crate::operation::list_maps::ListMapsError> for Error {
1438 fn from(err: crate::operation::list_maps::ListMapsError) -> Self {
1439 match err {
1440 crate::operation::list_maps::ListMapsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1441 crate::operation::list_maps::ListMapsError::InternalServerException(inner) => Error::InternalServerException(inner),
1442 crate::operation::list_maps::ListMapsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1443 crate::operation::list_maps::ListMapsError::ValidationException(inner) => Error::ValidationException(inner),
1444 crate::operation::list_maps::ListMapsError::Unhandled(inner) => Error::Unhandled(inner),
1445 }
1446 }
1447}
1448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_place_indexes::ListPlaceIndexesError, R>> for Error
1449where
1450 R: Send + Sync + std::fmt::Debug + 'static,
1451{
1452 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_place_indexes::ListPlaceIndexesError, R>) -> Self {
1453 match err {
1454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1457 source: err.into(),
1458 }),
1459 }
1460 }
1461}
1462impl From<crate::operation::list_place_indexes::ListPlaceIndexesError> for Error {
1463 fn from(err: crate::operation::list_place_indexes::ListPlaceIndexesError) -> Self {
1464 match err {
1465 crate::operation::list_place_indexes::ListPlaceIndexesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1466 crate::operation::list_place_indexes::ListPlaceIndexesError::InternalServerException(inner) => Error::InternalServerException(inner),
1467 crate::operation::list_place_indexes::ListPlaceIndexesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1468 crate::operation::list_place_indexes::ListPlaceIndexesError::ValidationException(inner) => Error::ValidationException(inner),
1469 crate::operation::list_place_indexes::ListPlaceIndexesError::Unhandled(inner) => Error::Unhandled(inner),
1470 }
1471 }
1472}
1473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_route_calculators::ListRouteCalculatorsError, R>> for Error
1474where
1475 R: Send + Sync + std::fmt::Debug + 'static,
1476{
1477 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_route_calculators::ListRouteCalculatorsError, R>) -> Self {
1478 match err {
1479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1482 source: err.into(),
1483 }),
1484 }
1485 }
1486}
1487impl From<crate::operation::list_route_calculators::ListRouteCalculatorsError> for Error {
1488 fn from(err: crate::operation::list_route_calculators::ListRouteCalculatorsError) -> Self {
1489 match err {
1490 crate::operation::list_route_calculators::ListRouteCalculatorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1491 crate::operation::list_route_calculators::ListRouteCalculatorsError::InternalServerException(inner) => {
1492 Error::InternalServerException(inner)
1493 }
1494 crate::operation::list_route_calculators::ListRouteCalculatorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1495 crate::operation::list_route_calculators::ListRouteCalculatorsError::ValidationException(inner) => Error::ValidationException(inner),
1496 crate::operation::list_route_calculators::ListRouteCalculatorsError::Unhandled(inner) => Error::Unhandled(inner),
1497 }
1498 }
1499}
1500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1501where
1502 R: Send + Sync + std::fmt::Debug + 'static,
1503{
1504 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1505 match err {
1506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1509 source: err.into(),
1510 }),
1511 }
1512 }
1513}
1514impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1515 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1516 match err {
1517 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1518 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1519 Error::InternalServerException(inner)
1520 }
1521 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1522 Error::ResourceNotFoundException(inner)
1523 }
1524 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1525 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1526 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1527 }
1528 }
1529}
1530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tracker_consumers::ListTrackerConsumersError, R>> for Error
1531where
1532 R: Send + Sync + std::fmt::Debug + 'static,
1533{
1534 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tracker_consumers::ListTrackerConsumersError, R>) -> Self {
1535 match err {
1536 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1537 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1538 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1539 source: err.into(),
1540 }),
1541 }
1542 }
1543}
1544impl From<crate::operation::list_tracker_consumers::ListTrackerConsumersError> for Error {
1545 fn from(err: crate::operation::list_tracker_consumers::ListTrackerConsumersError) -> Self {
1546 match err {
1547 crate::operation::list_tracker_consumers::ListTrackerConsumersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1548 crate::operation::list_tracker_consumers::ListTrackerConsumersError::InternalServerException(inner) => {
1549 Error::InternalServerException(inner)
1550 }
1551 crate::operation::list_tracker_consumers::ListTrackerConsumersError::ResourceNotFoundException(inner) => {
1552 Error::ResourceNotFoundException(inner)
1553 }
1554 crate::operation::list_tracker_consumers::ListTrackerConsumersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1555 crate::operation::list_tracker_consumers::ListTrackerConsumersError::ValidationException(inner) => Error::ValidationException(inner),
1556 crate::operation::list_tracker_consumers::ListTrackerConsumersError::Unhandled(inner) => Error::Unhandled(inner),
1557 }
1558 }
1559}
1560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trackers::ListTrackersError, R>> for Error
1561where
1562 R: Send + Sync + std::fmt::Debug + 'static,
1563{
1564 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trackers::ListTrackersError, R>) -> Self {
1565 match err {
1566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1569 source: err.into(),
1570 }),
1571 }
1572 }
1573}
1574impl From<crate::operation::list_trackers::ListTrackersError> for Error {
1575 fn from(err: crate::operation::list_trackers::ListTrackersError) -> Self {
1576 match err {
1577 crate::operation::list_trackers::ListTrackersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1578 crate::operation::list_trackers::ListTrackersError::InternalServerException(inner) => Error::InternalServerException(inner),
1579 crate::operation::list_trackers::ListTrackersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1580 crate::operation::list_trackers::ListTrackersError::ValidationException(inner) => Error::ValidationException(inner),
1581 crate::operation::list_trackers::ListTrackersError::Unhandled(inner) => Error::Unhandled(inner),
1582 }
1583 }
1584}
1585impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_geofence::PutGeofenceError, R>> for Error
1586where
1587 R: Send + Sync + std::fmt::Debug + 'static,
1588{
1589 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_geofence::PutGeofenceError, R>) -> Self {
1590 match err {
1591 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1592 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1593 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1594 source: err.into(),
1595 }),
1596 }
1597 }
1598}
1599impl From<crate::operation::put_geofence::PutGeofenceError> for Error {
1600 fn from(err: crate::operation::put_geofence::PutGeofenceError) -> Self {
1601 match err {
1602 crate::operation::put_geofence::PutGeofenceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1603 crate::operation::put_geofence::PutGeofenceError::ConflictException(inner) => Error::ConflictException(inner),
1604 crate::operation::put_geofence::PutGeofenceError::InternalServerException(inner) => Error::InternalServerException(inner),
1605 crate::operation::put_geofence::PutGeofenceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1606 crate::operation::put_geofence::PutGeofenceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1607 crate::operation::put_geofence::PutGeofenceError::ValidationException(inner) => Error::ValidationException(inner),
1608 crate::operation::put_geofence::PutGeofenceError::Unhandled(inner) => Error::Unhandled(inner),
1609 }
1610 }
1611}
1612impl<R>
1613 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError, R>>
1614 for Error
1615where
1616 R: Send + Sync + std::fmt::Debug + 'static,
1617{
1618 fn from(
1619 err: ::aws_smithy_runtime_api::client::result::SdkError<
1620 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError,
1621 R,
1622 >,
1623 ) -> Self {
1624 match err {
1625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1628 source: err.into(),
1629 }),
1630 }
1631 }
1632}
1633impl From<crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError> for Error {
1634 fn from(err: crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError) -> Self {
1635 match err {
1636 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::AccessDeniedException(inner) => {
1637 Error::AccessDeniedException(inner)
1638 }
1639 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::InternalServerException(inner) => {
1640 Error::InternalServerException(inner)
1641 }
1642 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::ResourceNotFoundException(inner) => {
1643 Error::ResourceNotFoundException(inner)
1644 }
1645 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::ThrottlingException(inner) => {
1646 Error::ThrottlingException(inner)
1647 }
1648 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::ValidationException(inner) => {
1649 Error::ValidationException(inner)
1650 }
1651 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::Unhandled(inner) => Error::Unhandled(inner),
1652 }
1653 }
1654}
1655impl<R>
1656 From<
1657 ::aws_smithy_runtime_api::client::result::SdkError<
1658 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError,
1659 R,
1660 >,
1661 > for Error
1662where
1663 R: Send + Sync + std::fmt::Debug + 'static,
1664{
1665 fn from(
1666 err: ::aws_smithy_runtime_api::client::result::SdkError<
1667 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError,
1668 R,
1669 >,
1670 ) -> Self {
1671 match err {
1672 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1673 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1674 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1675 source: err.into(),
1676 }),
1677 }
1678 }
1679}
1680impl From<crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError> for Error {
1681 fn from(err: crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError) -> Self {
1682 match err {
1683 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::AccessDeniedException(inner) => {
1684 Error::AccessDeniedException(inner)
1685 }
1686 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::InternalServerException(inner) => {
1687 Error::InternalServerException(inner)
1688 }
1689 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::ResourceNotFoundException(inner) => {
1690 Error::ResourceNotFoundException(inner)
1691 }
1692 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::ThrottlingException(inner) => {
1693 Error::ThrottlingException(inner)
1694 }
1695 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::ValidationException(inner) => {
1696 Error::ValidationException(inner)
1697 }
1698 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::Unhandled(inner) => Error::Unhandled(inner),
1699 }
1700 }
1701}
1702impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError, R>>
1703 for Error
1704where
1705 R: Send + Sync + std::fmt::Debug + 'static,
1706{
1707 fn from(
1708 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError, R>,
1709 ) -> Self {
1710 match err {
1711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1714 source: err.into(),
1715 }),
1716 }
1717 }
1718}
1719impl From<crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError> for Error {
1720 fn from(err: crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError) -> Self {
1721 match err {
1722 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::AccessDeniedException(inner) => {
1723 Error::AccessDeniedException(inner)
1724 }
1725 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::InternalServerException(inner) => {
1726 Error::InternalServerException(inner)
1727 }
1728 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::ResourceNotFoundException(inner) => {
1729 Error::ResourceNotFoundException(inner)
1730 }
1731 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::ThrottlingException(inner) => {
1732 Error::ThrottlingException(inner)
1733 }
1734 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::ValidationException(inner) => {
1735 Error::ValidationException(inner)
1736 }
1737 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::Unhandled(inner) => Error::Unhandled(inner),
1738 }
1739 }
1740}
1741impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_job::StartJobError, R>> for Error
1742where
1743 R: Send + Sync + std::fmt::Debug + 'static,
1744{
1745 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_job::StartJobError, R>) -> Self {
1746 match err {
1747 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1748 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1749 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1750 source: err.into(),
1751 }),
1752 }
1753 }
1754}
1755impl From<crate::operation::start_job::StartJobError> for Error {
1756 fn from(err: crate::operation::start_job::StartJobError) -> Self {
1757 match err {
1758 crate::operation::start_job::StartJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1759 crate::operation::start_job::StartJobError::InternalServerException(inner) => Error::InternalServerException(inner),
1760 crate::operation::start_job::StartJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1761 crate::operation::start_job::StartJobError::ValidationException(inner) => Error::ValidationException(inner),
1762 crate::operation::start_job::StartJobError::Unhandled(inner) => Error::Unhandled(inner),
1763 }
1764 }
1765}
1766impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1767where
1768 R: Send + Sync + std::fmt::Debug + 'static,
1769{
1770 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> 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::tag_resource::TagResourceError> for Error {
1781 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1782 match err {
1783 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1784 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1785 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1786 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1787 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1788 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1789 }
1790 }
1791}
1792impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1793where
1794 R: Send + Sync + std::fmt::Debug + 'static,
1795{
1796 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1797 match err {
1798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1801 source: err.into(),
1802 }),
1803 }
1804 }
1805}
1806impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1807 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1808 match err {
1809 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1810 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1811 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1812 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1813 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1814 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1815 }
1816 }
1817}
1818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_geofence_collection::UpdateGeofenceCollectionError, R>>
1819 for Error
1820where
1821 R: Send + Sync + std::fmt::Debug + 'static,
1822{
1823 fn from(
1824 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_geofence_collection::UpdateGeofenceCollectionError, R>,
1825 ) -> Self {
1826 match err {
1827 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1828 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1829 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1830 source: err.into(),
1831 }),
1832 }
1833 }
1834}
1835impl From<crate::operation::update_geofence_collection::UpdateGeofenceCollectionError> for Error {
1836 fn from(err: crate::operation::update_geofence_collection::UpdateGeofenceCollectionError) -> Self {
1837 match err {
1838 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::AccessDeniedException(inner) => {
1839 Error::AccessDeniedException(inner)
1840 }
1841 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::InternalServerException(inner) => {
1842 Error::InternalServerException(inner)
1843 }
1844 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::ResourceNotFoundException(inner) => {
1845 Error::ResourceNotFoundException(inner)
1846 }
1847 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::ThrottlingException(inner) => {
1848 Error::ThrottlingException(inner)
1849 }
1850 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::ValidationException(inner) => {
1851 Error::ValidationException(inner)
1852 }
1853 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::Unhandled(inner) => Error::Unhandled(inner),
1854 }
1855 }
1856}
1857impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_key::UpdateKeyError, R>> for Error
1858where
1859 R: Send + Sync + std::fmt::Debug + 'static,
1860{
1861 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_key::UpdateKeyError, R>) -> Self {
1862 match err {
1863 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1864 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1865 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1866 source: err.into(),
1867 }),
1868 }
1869 }
1870}
1871impl From<crate::operation::update_key::UpdateKeyError> for Error {
1872 fn from(err: crate::operation::update_key::UpdateKeyError) -> Self {
1873 match err {
1874 crate::operation::update_key::UpdateKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1875 crate::operation::update_key::UpdateKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
1876 crate::operation::update_key::UpdateKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1877 crate::operation::update_key::UpdateKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1878 crate::operation::update_key::UpdateKeyError::ValidationException(inner) => Error::ValidationException(inner),
1879 crate::operation::update_key::UpdateKeyError::Unhandled(inner) => Error::Unhandled(inner),
1880 }
1881 }
1882}
1883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_map::UpdateMapError, R>> for Error
1884where
1885 R: Send + Sync + std::fmt::Debug + 'static,
1886{
1887 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_map::UpdateMapError, R>) -> Self {
1888 match err {
1889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1892 source: err.into(),
1893 }),
1894 }
1895 }
1896}
1897impl From<crate::operation::update_map::UpdateMapError> for Error {
1898 fn from(err: crate::operation::update_map::UpdateMapError) -> Self {
1899 match err {
1900 crate::operation::update_map::UpdateMapError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1901 crate::operation::update_map::UpdateMapError::InternalServerException(inner) => Error::InternalServerException(inner),
1902 crate::operation::update_map::UpdateMapError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1903 crate::operation::update_map::UpdateMapError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1904 crate::operation::update_map::UpdateMapError::ValidationException(inner) => Error::ValidationException(inner),
1905 crate::operation::update_map::UpdateMapError::Unhandled(inner) => Error::Unhandled(inner),
1906 }
1907 }
1908}
1909impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_place_index::UpdatePlaceIndexError, R>> for Error
1910where
1911 R: Send + Sync + std::fmt::Debug + 'static,
1912{
1913 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_place_index::UpdatePlaceIndexError, R>) -> Self {
1914 match err {
1915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1918 source: err.into(),
1919 }),
1920 }
1921 }
1922}
1923impl From<crate::operation::update_place_index::UpdatePlaceIndexError> for Error {
1924 fn from(err: crate::operation::update_place_index::UpdatePlaceIndexError) -> Self {
1925 match err {
1926 crate::operation::update_place_index::UpdatePlaceIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1927 crate::operation::update_place_index::UpdatePlaceIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
1928 crate::operation::update_place_index::UpdatePlaceIndexError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1929 crate::operation::update_place_index::UpdatePlaceIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1930 crate::operation::update_place_index::UpdatePlaceIndexError::ValidationException(inner) => Error::ValidationException(inner),
1931 crate::operation::update_place_index::UpdatePlaceIndexError::Unhandled(inner) => Error::Unhandled(inner),
1932 }
1933 }
1934}
1935impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route_calculator::UpdateRouteCalculatorError, R>> for Error
1936where
1937 R: Send + Sync + std::fmt::Debug + 'static,
1938{
1939 fn from(
1940 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route_calculator::UpdateRouteCalculatorError, R>,
1941 ) -> Self {
1942 match err {
1943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1946 source: err.into(),
1947 }),
1948 }
1949 }
1950}
1951impl From<crate::operation::update_route_calculator::UpdateRouteCalculatorError> for Error {
1952 fn from(err: crate::operation::update_route_calculator::UpdateRouteCalculatorError) -> Self {
1953 match err {
1954 crate::operation::update_route_calculator::UpdateRouteCalculatorError::AccessDeniedException(inner) => {
1955 Error::AccessDeniedException(inner)
1956 }
1957 crate::operation::update_route_calculator::UpdateRouteCalculatorError::InternalServerException(inner) => {
1958 Error::InternalServerException(inner)
1959 }
1960 crate::operation::update_route_calculator::UpdateRouteCalculatorError::ResourceNotFoundException(inner) => {
1961 Error::ResourceNotFoundException(inner)
1962 }
1963 crate::operation::update_route_calculator::UpdateRouteCalculatorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1964 crate::operation::update_route_calculator::UpdateRouteCalculatorError::ValidationException(inner) => Error::ValidationException(inner),
1965 crate::operation::update_route_calculator::UpdateRouteCalculatorError::Unhandled(inner) => Error::Unhandled(inner),
1966 }
1967 }
1968}
1969impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tracker::UpdateTrackerError, R>> for Error
1970where
1971 R: Send + Sync + std::fmt::Debug + 'static,
1972{
1973 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tracker::UpdateTrackerError, R>) -> Self {
1974 match err {
1975 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1976 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1977 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1978 source: err.into(),
1979 }),
1980 }
1981 }
1982}
1983impl From<crate::operation::update_tracker::UpdateTrackerError> for Error {
1984 fn from(err: crate::operation::update_tracker::UpdateTrackerError) -> Self {
1985 match err {
1986 crate::operation::update_tracker::UpdateTrackerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1987 crate::operation::update_tracker::UpdateTrackerError::InternalServerException(inner) => Error::InternalServerException(inner),
1988 crate::operation::update_tracker::UpdateTrackerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1989 crate::operation::update_tracker::UpdateTrackerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1990 crate::operation::update_tracker::UpdateTrackerError::ValidationException(inner) => Error::ValidationException(inner),
1991 crate::operation::update_tracker::UpdateTrackerError::Unhandled(inner) => Error::Unhandled(inner),
1992 }
1993 }
1994}
1995impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_device_position::VerifyDevicePositionError, R>> for Error
1996where
1997 R: Send + Sync + std::fmt::Debug + 'static,
1998{
1999 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_device_position::VerifyDevicePositionError, R>) -> Self {
2000 match err {
2001 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2002 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2003 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2004 source: err.into(),
2005 }),
2006 }
2007 }
2008}
2009impl From<crate::operation::verify_device_position::VerifyDevicePositionError> for Error {
2010 fn from(err: crate::operation::verify_device_position::VerifyDevicePositionError) -> Self {
2011 match err {
2012 crate::operation::verify_device_position::VerifyDevicePositionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2013 crate::operation::verify_device_position::VerifyDevicePositionError::InternalServerException(inner) => {
2014 Error::InternalServerException(inner)
2015 }
2016 crate::operation::verify_device_position::VerifyDevicePositionError::ResourceNotFoundException(inner) => {
2017 Error::ResourceNotFoundException(inner)
2018 }
2019 crate::operation::verify_device_position::VerifyDevicePositionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2020 crate::operation::verify_device_position::VerifyDevicePositionError::ValidationException(inner) => Error::ValidationException(inner),
2021 crate::operation::verify_device_position::VerifyDevicePositionError::Unhandled(inner) => Error::Unhandled(inner),
2022 }
2023 }
2024}
2025impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2026where
2027 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2028 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2029{
2030 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2031 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2032 meta: ::std::default::Default::default(),
2033 source: err.into(),
2034 })
2035 }
2036}
2037impl ::std::error::Error for Error {
2038 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2039 match self {
2040 Error::AccessDeniedException(inner) => inner.source(),
2041 Error::ConflictException(inner) => inner.source(),
2042 Error::InternalServerException(inner) => inner.source(),
2043 Error::ResourceNotFoundException(inner) => inner.source(),
2044 Error::ServiceQuotaExceededException(inner) => inner.source(),
2045 Error::ThrottlingException(inner) => inner.source(),
2046 Error::ValidationException(inner) => inner.source(),
2047 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2048 }
2049 }
2050}
2051impl ::aws_types::request_id::RequestId for Error {
2052 fn request_id(&self) -> Option<&str> {
2053 match self {
2054 Self::AccessDeniedException(e) => e.request_id(),
2055 Self::ConflictException(e) => e.request_id(),
2056 Self::InternalServerException(e) => e.request_id(),
2057 Self::ResourceNotFoundException(e) => e.request_id(),
2058 Self::ServiceQuotaExceededException(e) => e.request_id(),
2059 Self::ThrottlingException(e) => e.request_id(),
2060 Self::ValidationException(e) => e.request_id(),
2061 Self::Unhandled(e) => e.meta.request_id(),
2062 }
2063 }
2064}