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::create_geofence_collection::CreateGeofenceCollectionError, R>>
384 for Error
385where
386 R: Send + Sync + std::fmt::Debug + 'static,
387{
388 fn from(
389 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_geofence_collection::CreateGeofenceCollectionError, R>,
390 ) -> Self {
391 match err {
392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
395 source: err.into(),
396 }),
397 }
398 }
399}
400impl From<crate::operation::create_geofence_collection::CreateGeofenceCollectionError> for Error {
401 fn from(err: crate::operation::create_geofence_collection::CreateGeofenceCollectionError) -> Self {
402 match err {
403 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::AccessDeniedException(inner) => {
404 Error::AccessDeniedException(inner)
405 }
406 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::ConflictException(inner) => Error::ConflictException(inner),
407 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::InternalServerException(inner) => {
408 Error::InternalServerException(inner)
409 }
410 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::ServiceQuotaExceededException(inner) => {
411 Error::ServiceQuotaExceededException(inner)
412 }
413 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::ThrottlingException(inner) => {
414 Error::ThrottlingException(inner)
415 }
416 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::ValidationException(inner) => {
417 Error::ValidationException(inner)
418 }
419 crate::operation::create_geofence_collection::CreateGeofenceCollectionError::Unhandled(inner) => Error::Unhandled(inner),
420 }
421 }
422}
423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key::CreateKeyError, R>> for Error
424where
425 R: Send + Sync + std::fmt::Debug + 'static,
426{
427 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key::CreateKeyError, R>) -> Self {
428 match err {
429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
432 source: err.into(),
433 }),
434 }
435 }
436}
437impl From<crate::operation::create_key::CreateKeyError> for Error {
438 fn from(err: crate::operation::create_key::CreateKeyError) -> Self {
439 match err {
440 crate::operation::create_key::CreateKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
441 crate::operation::create_key::CreateKeyError::ConflictException(inner) => Error::ConflictException(inner),
442 crate::operation::create_key::CreateKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
443 crate::operation::create_key::CreateKeyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
444 crate::operation::create_key::CreateKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
445 crate::operation::create_key::CreateKeyError::ValidationException(inner) => Error::ValidationException(inner),
446 crate::operation::create_key::CreateKeyError::Unhandled(inner) => Error::Unhandled(inner),
447 }
448 }
449}
450impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_map::CreateMapError, R>> for Error
451where
452 R: Send + Sync + std::fmt::Debug + 'static,
453{
454 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_map::CreateMapError, R>) -> Self {
455 match err {
456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
459 source: err.into(),
460 }),
461 }
462 }
463}
464impl From<crate::operation::create_map::CreateMapError> for Error {
465 fn from(err: crate::operation::create_map::CreateMapError) -> Self {
466 match err {
467 crate::operation::create_map::CreateMapError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
468 crate::operation::create_map::CreateMapError::ConflictException(inner) => Error::ConflictException(inner),
469 crate::operation::create_map::CreateMapError::InternalServerException(inner) => Error::InternalServerException(inner),
470 crate::operation::create_map::CreateMapError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
471 crate::operation::create_map::CreateMapError::ThrottlingException(inner) => Error::ThrottlingException(inner),
472 crate::operation::create_map::CreateMapError::ValidationException(inner) => Error::ValidationException(inner),
473 crate::operation::create_map::CreateMapError::Unhandled(inner) => Error::Unhandled(inner),
474 }
475 }
476}
477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_place_index::CreatePlaceIndexError, R>> for Error
478where
479 R: Send + Sync + std::fmt::Debug + 'static,
480{
481 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_place_index::CreatePlaceIndexError, R>) -> Self {
482 match err {
483 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
484 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
485 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
486 source: err.into(),
487 }),
488 }
489 }
490}
491impl From<crate::operation::create_place_index::CreatePlaceIndexError> for Error {
492 fn from(err: crate::operation::create_place_index::CreatePlaceIndexError) -> Self {
493 match err {
494 crate::operation::create_place_index::CreatePlaceIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
495 crate::operation::create_place_index::CreatePlaceIndexError::ConflictException(inner) => Error::ConflictException(inner),
496 crate::operation::create_place_index::CreatePlaceIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
497 crate::operation::create_place_index::CreatePlaceIndexError::ServiceQuotaExceededException(inner) => {
498 Error::ServiceQuotaExceededException(inner)
499 }
500 crate::operation::create_place_index::CreatePlaceIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
501 crate::operation::create_place_index::CreatePlaceIndexError::ValidationException(inner) => Error::ValidationException(inner),
502 crate::operation::create_place_index::CreatePlaceIndexError::Unhandled(inner) => Error::Unhandled(inner),
503 }
504 }
505}
506impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_calculator::CreateRouteCalculatorError, R>> for Error
507where
508 R: Send + Sync + std::fmt::Debug + 'static,
509{
510 fn from(
511 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_calculator::CreateRouteCalculatorError, R>,
512 ) -> Self {
513 match err {
514 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
515 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
516 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
517 source: err.into(),
518 }),
519 }
520 }
521}
522impl From<crate::operation::create_route_calculator::CreateRouteCalculatorError> for Error {
523 fn from(err: crate::operation::create_route_calculator::CreateRouteCalculatorError) -> Self {
524 match err {
525 crate::operation::create_route_calculator::CreateRouteCalculatorError::AccessDeniedException(inner) => {
526 Error::AccessDeniedException(inner)
527 }
528 crate::operation::create_route_calculator::CreateRouteCalculatorError::ConflictException(inner) => Error::ConflictException(inner),
529 crate::operation::create_route_calculator::CreateRouteCalculatorError::InternalServerException(inner) => {
530 Error::InternalServerException(inner)
531 }
532 crate::operation::create_route_calculator::CreateRouteCalculatorError::ServiceQuotaExceededException(inner) => {
533 Error::ServiceQuotaExceededException(inner)
534 }
535 crate::operation::create_route_calculator::CreateRouteCalculatorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
536 crate::operation::create_route_calculator::CreateRouteCalculatorError::ValidationException(inner) => Error::ValidationException(inner),
537 crate::operation::create_route_calculator::CreateRouteCalculatorError::Unhandled(inner) => Error::Unhandled(inner),
538 }
539 }
540}
541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tracker::CreateTrackerError, R>> for Error
542where
543 R: Send + Sync + std::fmt::Debug + 'static,
544{
545 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tracker::CreateTrackerError, R>) -> Self {
546 match err {
547 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
548 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
549 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
550 source: err.into(),
551 }),
552 }
553 }
554}
555impl From<crate::operation::create_tracker::CreateTrackerError> for Error {
556 fn from(err: crate::operation::create_tracker::CreateTrackerError) -> Self {
557 match err {
558 crate::operation::create_tracker::CreateTrackerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
559 crate::operation::create_tracker::CreateTrackerError::ConflictException(inner) => Error::ConflictException(inner),
560 crate::operation::create_tracker::CreateTrackerError::InternalServerException(inner) => Error::InternalServerException(inner),
561 crate::operation::create_tracker::CreateTrackerError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
562 crate::operation::create_tracker::CreateTrackerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
563 crate::operation::create_tracker::CreateTrackerError::ValidationException(inner) => Error::ValidationException(inner),
564 crate::operation::create_tracker::CreateTrackerError::Unhandled(inner) => Error::Unhandled(inner),
565 }
566 }
567}
568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError, R>>
569 for Error
570where
571 R: Send + Sync + std::fmt::Debug + 'static,
572{
573 fn from(
574 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError, R>,
575 ) -> Self {
576 match err {
577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
580 source: err.into(),
581 }),
582 }
583 }
584}
585impl From<crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError> for Error {
586 fn from(err: crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError) -> Self {
587 match err {
588 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::AccessDeniedException(inner) => {
589 Error::AccessDeniedException(inner)
590 }
591 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::InternalServerException(inner) => {
592 Error::InternalServerException(inner)
593 }
594 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::ResourceNotFoundException(inner) => {
595 Error::ResourceNotFoundException(inner)
596 }
597 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::ThrottlingException(inner) => {
598 Error::ThrottlingException(inner)
599 }
600 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::ValidationException(inner) => {
601 Error::ValidationException(inner)
602 }
603 crate::operation::delete_geofence_collection::DeleteGeofenceCollectionError::Unhandled(inner) => Error::Unhandled(inner),
604 }
605 }
606}
607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key::DeleteKeyError, R>> for Error
608where
609 R: Send + Sync + std::fmt::Debug + 'static,
610{
611 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key::DeleteKeyError, R>) -> Self {
612 match err {
613 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
614 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
615 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
616 source: err.into(),
617 }),
618 }
619 }
620}
621impl From<crate::operation::delete_key::DeleteKeyError> for Error {
622 fn from(err: crate::operation::delete_key::DeleteKeyError) -> Self {
623 match err {
624 crate::operation::delete_key::DeleteKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
625 crate::operation::delete_key::DeleteKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
626 crate::operation::delete_key::DeleteKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
627 crate::operation::delete_key::DeleteKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
628 crate::operation::delete_key::DeleteKeyError::ValidationException(inner) => Error::ValidationException(inner),
629 crate::operation::delete_key::DeleteKeyError::Unhandled(inner) => Error::Unhandled(inner),
630 }
631 }
632}
633impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_map::DeleteMapError, R>> for Error
634where
635 R: Send + Sync + std::fmt::Debug + 'static,
636{
637 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_map::DeleteMapError, R>) -> Self {
638 match err {
639 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
640 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
641 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
642 source: err.into(),
643 }),
644 }
645 }
646}
647impl From<crate::operation::delete_map::DeleteMapError> for Error {
648 fn from(err: crate::operation::delete_map::DeleteMapError) -> Self {
649 match err {
650 crate::operation::delete_map::DeleteMapError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
651 crate::operation::delete_map::DeleteMapError::InternalServerException(inner) => Error::InternalServerException(inner),
652 crate::operation::delete_map::DeleteMapError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
653 crate::operation::delete_map::DeleteMapError::ThrottlingException(inner) => Error::ThrottlingException(inner),
654 crate::operation::delete_map::DeleteMapError::ValidationException(inner) => Error::ValidationException(inner),
655 crate::operation::delete_map::DeleteMapError::Unhandled(inner) => Error::Unhandled(inner),
656 }
657 }
658}
659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_place_index::DeletePlaceIndexError, R>> for Error
660where
661 R: Send + Sync + std::fmt::Debug + 'static,
662{
663 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_place_index::DeletePlaceIndexError, R>) -> Self {
664 match err {
665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
668 source: err.into(),
669 }),
670 }
671 }
672}
673impl From<crate::operation::delete_place_index::DeletePlaceIndexError> for Error {
674 fn from(err: crate::operation::delete_place_index::DeletePlaceIndexError) -> Self {
675 match err {
676 crate::operation::delete_place_index::DeletePlaceIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
677 crate::operation::delete_place_index::DeletePlaceIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
678 crate::operation::delete_place_index::DeletePlaceIndexError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
679 crate::operation::delete_place_index::DeletePlaceIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
680 crate::operation::delete_place_index::DeletePlaceIndexError::ValidationException(inner) => Error::ValidationException(inner),
681 crate::operation::delete_place_index::DeletePlaceIndexError::Unhandled(inner) => Error::Unhandled(inner),
682 }
683 }
684}
685impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_calculator::DeleteRouteCalculatorError, R>> for Error
686where
687 R: Send + Sync + std::fmt::Debug + 'static,
688{
689 fn from(
690 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_calculator::DeleteRouteCalculatorError, R>,
691 ) -> Self {
692 match err {
693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
696 source: err.into(),
697 }),
698 }
699 }
700}
701impl From<crate::operation::delete_route_calculator::DeleteRouteCalculatorError> for Error {
702 fn from(err: crate::operation::delete_route_calculator::DeleteRouteCalculatorError) -> Self {
703 match err {
704 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::AccessDeniedException(inner) => {
705 Error::AccessDeniedException(inner)
706 }
707 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::InternalServerException(inner) => {
708 Error::InternalServerException(inner)
709 }
710 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::ResourceNotFoundException(inner) => {
711 Error::ResourceNotFoundException(inner)
712 }
713 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
714 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::ValidationException(inner) => Error::ValidationException(inner),
715 crate::operation::delete_route_calculator::DeleteRouteCalculatorError::Unhandled(inner) => Error::Unhandled(inner),
716 }
717 }
718}
719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tracker::DeleteTrackerError, R>> for Error
720where
721 R: Send + Sync + std::fmt::Debug + 'static,
722{
723 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tracker::DeleteTrackerError, R>) -> Self {
724 match err {
725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
728 source: err.into(),
729 }),
730 }
731 }
732}
733impl From<crate::operation::delete_tracker::DeleteTrackerError> for Error {
734 fn from(err: crate::operation::delete_tracker::DeleteTrackerError) -> Self {
735 match err {
736 crate::operation::delete_tracker::DeleteTrackerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
737 crate::operation::delete_tracker::DeleteTrackerError::InternalServerException(inner) => Error::InternalServerException(inner),
738 crate::operation::delete_tracker::DeleteTrackerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
739 crate::operation::delete_tracker::DeleteTrackerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
740 crate::operation::delete_tracker::DeleteTrackerError::ValidationException(inner) => Error::ValidationException(inner),
741 crate::operation::delete_tracker::DeleteTrackerError::Unhandled(inner) => Error::Unhandled(inner),
742 }
743 }
744}
745impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError, R>>
746 for Error
747where
748 R: Send + Sync + std::fmt::Debug + 'static,
749{
750 fn from(
751 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError, R>,
752 ) -> Self {
753 match err {
754 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
755 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
756 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
757 source: err.into(),
758 }),
759 }
760 }
761}
762impl From<crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError> for Error {
763 fn from(err: crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError) -> Self {
764 match err {
765 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::AccessDeniedException(inner) => {
766 Error::AccessDeniedException(inner)
767 }
768 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::InternalServerException(inner) => {
769 Error::InternalServerException(inner)
770 }
771 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::ResourceNotFoundException(inner) => {
772 Error::ResourceNotFoundException(inner)
773 }
774 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::ThrottlingException(inner) => {
775 Error::ThrottlingException(inner)
776 }
777 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::ValidationException(inner) => {
778 Error::ValidationException(inner)
779 }
780 crate::operation::describe_geofence_collection::DescribeGeofenceCollectionError::Unhandled(inner) => Error::Unhandled(inner),
781 }
782 }
783}
784impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key::DescribeKeyError, R>> for Error
785where
786 R: Send + Sync + std::fmt::Debug + 'static,
787{
788 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key::DescribeKeyError, R>) -> Self {
789 match err {
790 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
791 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
792 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
793 source: err.into(),
794 }),
795 }
796 }
797}
798impl From<crate::operation::describe_key::DescribeKeyError> for Error {
799 fn from(err: crate::operation::describe_key::DescribeKeyError) -> Self {
800 match err {
801 crate::operation::describe_key::DescribeKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
802 crate::operation::describe_key::DescribeKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
803 crate::operation::describe_key::DescribeKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
804 crate::operation::describe_key::DescribeKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
805 crate::operation::describe_key::DescribeKeyError::ValidationException(inner) => Error::ValidationException(inner),
806 crate::operation::describe_key::DescribeKeyError::Unhandled(inner) => Error::Unhandled(inner),
807 }
808 }
809}
810impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_map::DescribeMapError, R>> for Error
811where
812 R: Send + Sync + std::fmt::Debug + 'static,
813{
814 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_map::DescribeMapError, R>) -> Self {
815 match err {
816 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
817 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
818 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
819 source: err.into(),
820 }),
821 }
822 }
823}
824impl From<crate::operation::describe_map::DescribeMapError> for Error {
825 fn from(err: crate::operation::describe_map::DescribeMapError) -> Self {
826 match err {
827 crate::operation::describe_map::DescribeMapError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
828 crate::operation::describe_map::DescribeMapError::InternalServerException(inner) => Error::InternalServerException(inner),
829 crate::operation::describe_map::DescribeMapError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
830 crate::operation::describe_map::DescribeMapError::ThrottlingException(inner) => Error::ThrottlingException(inner),
831 crate::operation::describe_map::DescribeMapError::ValidationException(inner) => Error::ValidationException(inner),
832 crate::operation::describe_map::DescribeMapError::Unhandled(inner) => Error::Unhandled(inner),
833 }
834 }
835}
836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_place_index::DescribePlaceIndexError, R>> for Error
837where
838 R: Send + Sync + std::fmt::Debug + 'static,
839{
840 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_place_index::DescribePlaceIndexError, R>) -> Self {
841 match err {
842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
845 source: err.into(),
846 }),
847 }
848 }
849}
850impl From<crate::operation::describe_place_index::DescribePlaceIndexError> for Error {
851 fn from(err: crate::operation::describe_place_index::DescribePlaceIndexError) -> Self {
852 match err {
853 crate::operation::describe_place_index::DescribePlaceIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
854 crate::operation::describe_place_index::DescribePlaceIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
855 crate::operation::describe_place_index::DescribePlaceIndexError::ResourceNotFoundException(inner) => {
856 Error::ResourceNotFoundException(inner)
857 }
858 crate::operation::describe_place_index::DescribePlaceIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
859 crate::operation::describe_place_index::DescribePlaceIndexError::ValidationException(inner) => Error::ValidationException(inner),
860 crate::operation::describe_place_index::DescribePlaceIndexError::Unhandled(inner) => Error::Unhandled(inner),
861 }
862 }
863}
864impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_calculator::DescribeRouteCalculatorError, R>>
865 for Error
866where
867 R: Send + Sync + std::fmt::Debug + 'static,
868{
869 fn from(
870 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_route_calculator::DescribeRouteCalculatorError, R>,
871 ) -> Self {
872 match err {
873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
876 source: err.into(),
877 }),
878 }
879 }
880}
881impl From<crate::operation::describe_route_calculator::DescribeRouteCalculatorError> for Error {
882 fn from(err: crate::operation::describe_route_calculator::DescribeRouteCalculatorError) -> Self {
883 match err {
884 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::AccessDeniedException(inner) => {
885 Error::AccessDeniedException(inner)
886 }
887 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::InternalServerException(inner) => {
888 Error::InternalServerException(inner)
889 }
890 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::ResourceNotFoundException(inner) => {
891 Error::ResourceNotFoundException(inner)
892 }
893 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::ThrottlingException(inner) => {
894 Error::ThrottlingException(inner)
895 }
896 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::ValidationException(inner) => {
897 Error::ValidationException(inner)
898 }
899 crate::operation::describe_route_calculator::DescribeRouteCalculatorError::Unhandled(inner) => Error::Unhandled(inner),
900 }
901 }
902}
903impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tracker::DescribeTrackerError, R>> for Error
904where
905 R: Send + Sync + std::fmt::Debug + 'static,
906{
907 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tracker::DescribeTrackerError, R>) -> Self {
908 match err {
909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
912 source: err.into(),
913 }),
914 }
915 }
916}
917impl From<crate::operation::describe_tracker::DescribeTrackerError> for Error {
918 fn from(err: crate::operation::describe_tracker::DescribeTrackerError) -> Self {
919 match err {
920 crate::operation::describe_tracker::DescribeTrackerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
921 crate::operation::describe_tracker::DescribeTrackerError::InternalServerException(inner) => Error::InternalServerException(inner),
922 crate::operation::describe_tracker::DescribeTrackerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
923 crate::operation::describe_tracker::DescribeTrackerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
924 crate::operation::describe_tracker::DescribeTrackerError::ValidationException(inner) => Error::ValidationException(inner),
925 crate::operation::describe_tracker::DescribeTrackerError::Unhandled(inner) => Error::Unhandled(inner),
926 }
927 }
928}
929impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError, R>>
930 for Error
931where
932 R: Send + Sync + std::fmt::Debug + 'static,
933{
934 fn from(
935 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError, R>,
936 ) -> Self {
937 match err {
938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
941 source: err.into(),
942 }),
943 }
944 }
945}
946impl From<crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError> for Error {
947 fn from(err: crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError) -> Self {
948 match err {
949 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::AccessDeniedException(inner) => {
950 Error::AccessDeniedException(inner)
951 }
952 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::InternalServerException(inner) => {
953 Error::InternalServerException(inner)
954 }
955 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::ResourceNotFoundException(inner) => {
956 Error::ResourceNotFoundException(inner)
957 }
958 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::ThrottlingException(inner) => {
959 Error::ThrottlingException(inner)
960 }
961 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::ValidationException(inner) => {
962 Error::ValidationException(inner)
963 }
964 crate::operation::disassociate_tracker_consumer::DisassociateTrackerConsumerError::Unhandled(inner) => Error::Unhandled(inner),
965 }
966 }
967}
968impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::forecast_geofence_events::ForecastGeofenceEventsError, R>> for Error
969where
970 R: Send + Sync + std::fmt::Debug + 'static,
971{
972 fn from(
973 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::forecast_geofence_events::ForecastGeofenceEventsError, R>,
974 ) -> Self {
975 match err {
976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
979 source: err.into(),
980 }),
981 }
982 }
983}
984impl From<crate::operation::forecast_geofence_events::ForecastGeofenceEventsError> for Error {
985 fn from(err: crate::operation::forecast_geofence_events::ForecastGeofenceEventsError) -> Self {
986 match err {
987 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::AccessDeniedException(inner) => {
988 Error::AccessDeniedException(inner)
989 }
990 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::InternalServerException(inner) => {
991 Error::InternalServerException(inner)
992 }
993 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::ResourceNotFoundException(inner) => {
994 Error::ResourceNotFoundException(inner)
995 }
996 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
997 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::ValidationException(inner) => Error::ValidationException(inner),
998 crate::operation::forecast_geofence_events::ForecastGeofenceEventsError::Unhandled(inner) => Error::Unhandled(inner),
999 }
1000 }
1001}
1002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_position::GetDevicePositionError, R>> for Error
1003where
1004 R: Send + Sync + std::fmt::Debug + 'static,
1005{
1006 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_position::GetDevicePositionError, R>) -> Self {
1007 match err {
1008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1011 source: err.into(),
1012 }),
1013 }
1014 }
1015}
1016impl From<crate::operation::get_device_position::GetDevicePositionError> for Error {
1017 fn from(err: crate::operation::get_device_position::GetDevicePositionError) -> Self {
1018 match err {
1019 crate::operation::get_device_position::GetDevicePositionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1020 crate::operation::get_device_position::GetDevicePositionError::InternalServerException(inner) => Error::InternalServerException(inner),
1021 crate::operation::get_device_position::GetDevicePositionError::ResourceNotFoundException(inner) => {
1022 Error::ResourceNotFoundException(inner)
1023 }
1024 crate::operation::get_device_position::GetDevicePositionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1025 crate::operation::get_device_position::GetDevicePositionError::ValidationException(inner) => Error::ValidationException(inner),
1026 crate::operation::get_device_position::GetDevicePositionError::Unhandled(inner) => Error::Unhandled(inner),
1027 }
1028 }
1029}
1030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_position_history::GetDevicePositionHistoryError, R>>
1031 for Error
1032where
1033 R: Send + Sync + std::fmt::Debug + 'static,
1034{
1035 fn from(
1036 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_position_history::GetDevicePositionHistoryError, R>,
1037 ) -> Self {
1038 match err {
1039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1042 source: err.into(),
1043 }),
1044 }
1045 }
1046}
1047impl From<crate::operation::get_device_position_history::GetDevicePositionHistoryError> for Error {
1048 fn from(err: crate::operation::get_device_position_history::GetDevicePositionHistoryError) -> Self {
1049 match err {
1050 crate::operation::get_device_position_history::GetDevicePositionHistoryError::AccessDeniedException(inner) => {
1051 Error::AccessDeniedException(inner)
1052 }
1053 crate::operation::get_device_position_history::GetDevicePositionHistoryError::InternalServerException(inner) => {
1054 Error::InternalServerException(inner)
1055 }
1056 crate::operation::get_device_position_history::GetDevicePositionHistoryError::ResourceNotFoundException(inner) => {
1057 Error::ResourceNotFoundException(inner)
1058 }
1059 crate::operation::get_device_position_history::GetDevicePositionHistoryError::ThrottlingException(inner) => {
1060 Error::ThrottlingException(inner)
1061 }
1062 crate::operation::get_device_position_history::GetDevicePositionHistoryError::ValidationException(inner) => {
1063 Error::ValidationException(inner)
1064 }
1065 crate::operation::get_device_position_history::GetDevicePositionHistoryError::Unhandled(inner) => Error::Unhandled(inner),
1066 }
1067 }
1068}
1069impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_geofence::GetGeofenceError, R>> for Error
1070where
1071 R: Send + Sync + std::fmt::Debug + 'static,
1072{
1073 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_geofence::GetGeofenceError, R>) -> Self {
1074 match err {
1075 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1076 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1077 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1078 source: err.into(),
1079 }),
1080 }
1081 }
1082}
1083impl From<crate::operation::get_geofence::GetGeofenceError> for Error {
1084 fn from(err: crate::operation::get_geofence::GetGeofenceError) -> Self {
1085 match err {
1086 crate::operation::get_geofence::GetGeofenceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1087 crate::operation::get_geofence::GetGeofenceError::InternalServerException(inner) => Error::InternalServerException(inner),
1088 crate::operation::get_geofence::GetGeofenceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1089 crate::operation::get_geofence::GetGeofenceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1090 crate::operation::get_geofence::GetGeofenceError::ValidationException(inner) => Error::ValidationException(inner),
1091 crate::operation::get_geofence::GetGeofenceError::Unhandled(inner) => Error::Unhandled(inner),
1092 }
1093 }
1094}
1095impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_glyphs::GetMapGlyphsError, R>> for Error
1096where
1097 R: Send + Sync + std::fmt::Debug + 'static,
1098{
1099 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_glyphs::GetMapGlyphsError, R>) -> Self {
1100 match err {
1101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1104 source: err.into(),
1105 }),
1106 }
1107 }
1108}
1109impl From<crate::operation::get_map_glyphs::GetMapGlyphsError> for Error {
1110 fn from(err: crate::operation::get_map_glyphs::GetMapGlyphsError) -> Self {
1111 match err {
1112 crate::operation::get_map_glyphs::GetMapGlyphsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1113 crate::operation::get_map_glyphs::GetMapGlyphsError::InternalServerException(inner) => Error::InternalServerException(inner),
1114 crate::operation::get_map_glyphs::GetMapGlyphsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1115 crate::operation::get_map_glyphs::GetMapGlyphsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1116 crate::operation::get_map_glyphs::GetMapGlyphsError::ValidationException(inner) => Error::ValidationException(inner),
1117 crate::operation::get_map_glyphs::GetMapGlyphsError::Unhandled(inner) => Error::Unhandled(inner),
1118 }
1119 }
1120}
1121impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_sprites::GetMapSpritesError, R>> for Error
1122where
1123 R: Send + Sync + std::fmt::Debug + 'static,
1124{
1125 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_sprites::GetMapSpritesError, R>) -> Self {
1126 match err {
1127 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1128 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1129 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1130 source: err.into(),
1131 }),
1132 }
1133 }
1134}
1135impl From<crate::operation::get_map_sprites::GetMapSpritesError> for Error {
1136 fn from(err: crate::operation::get_map_sprites::GetMapSpritesError) -> Self {
1137 match err {
1138 crate::operation::get_map_sprites::GetMapSpritesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1139 crate::operation::get_map_sprites::GetMapSpritesError::InternalServerException(inner) => Error::InternalServerException(inner),
1140 crate::operation::get_map_sprites::GetMapSpritesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1141 crate::operation::get_map_sprites::GetMapSpritesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1142 crate::operation::get_map_sprites::GetMapSpritesError::ValidationException(inner) => Error::ValidationException(inner),
1143 crate::operation::get_map_sprites::GetMapSpritesError::Unhandled(inner) => Error::Unhandled(inner),
1144 }
1145 }
1146}
1147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError, R>> for Error
1148where
1149 R: Send + Sync + std::fmt::Debug + 'static,
1150{
1151 fn from(
1152 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError, R>,
1153 ) -> Self {
1154 match err {
1155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1158 source: err.into(),
1159 }),
1160 }
1161 }
1162}
1163impl From<crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError> for Error {
1164 fn from(err: crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError) -> Self {
1165 match err {
1166 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::AccessDeniedException(inner) => {
1167 Error::AccessDeniedException(inner)
1168 }
1169 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::InternalServerException(inner) => {
1170 Error::InternalServerException(inner)
1171 }
1172 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::ResourceNotFoundException(inner) => {
1173 Error::ResourceNotFoundException(inner)
1174 }
1175 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1176 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::ValidationException(inner) => Error::ValidationException(inner),
1177 crate::operation::get_map_style_descriptor::GetMapStyleDescriptorError::Unhandled(inner) => Error::Unhandled(inner),
1178 }
1179 }
1180}
1181impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_tile::GetMapTileError, R>> for Error
1182where
1183 R: Send + Sync + std::fmt::Debug + 'static,
1184{
1185 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_map_tile::GetMapTileError, R>) -> Self {
1186 match err {
1187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1190 source: err.into(),
1191 }),
1192 }
1193 }
1194}
1195impl From<crate::operation::get_map_tile::GetMapTileError> for Error {
1196 fn from(err: crate::operation::get_map_tile::GetMapTileError) -> Self {
1197 match err {
1198 crate::operation::get_map_tile::GetMapTileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1199 crate::operation::get_map_tile::GetMapTileError::InternalServerException(inner) => Error::InternalServerException(inner),
1200 crate::operation::get_map_tile::GetMapTileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1201 crate::operation::get_map_tile::GetMapTileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1202 crate::operation::get_map_tile::GetMapTileError::ValidationException(inner) => Error::ValidationException(inner),
1203 crate::operation::get_map_tile::GetMapTileError::Unhandled(inner) => Error::Unhandled(inner),
1204 }
1205 }
1206}
1207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_place::GetPlaceError, R>> for Error
1208where
1209 R: Send + Sync + std::fmt::Debug + 'static,
1210{
1211 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_place::GetPlaceError, R>) -> Self {
1212 match err {
1213 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1214 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1215 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1216 source: err.into(),
1217 }),
1218 }
1219 }
1220}
1221impl From<crate::operation::get_place::GetPlaceError> for Error {
1222 fn from(err: crate::operation::get_place::GetPlaceError) -> Self {
1223 match err {
1224 crate::operation::get_place::GetPlaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1225 crate::operation::get_place::GetPlaceError::InternalServerException(inner) => Error::InternalServerException(inner),
1226 crate::operation::get_place::GetPlaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1227 crate::operation::get_place::GetPlaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1228 crate::operation::get_place::GetPlaceError::ValidationException(inner) => Error::ValidationException(inner),
1229 crate::operation::get_place::GetPlaceError::Unhandled(inner) => Error::Unhandled(inner),
1230 }
1231 }
1232}
1233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_positions::ListDevicePositionsError, R>> for Error
1234where
1235 R: Send + Sync + std::fmt::Debug + 'static,
1236{
1237 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_positions::ListDevicePositionsError, R>) -> Self {
1238 match err {
1239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1242 source: err.into(),
1243 }),
1244 }
1245 }
1246}
1247impl From<crate::operation::list_device_positions::ListDevicePositionsError> for Error {
1248 fn from(err: crate::operation::list_device_positions::ListDevicePositionsError) -> Self {
1249 match err {
1250 crate::operation::list_device_positions::ListDevicePositionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1251 crate::operation::list_device_positions::ListDevicePositionsError::InternalServerException(inner) => {
1252 Error::InternalServerException(inner)
1253 }
1254 crate::operation::list_device_positions::ListDevicePositionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1255 crate::operation::list_device_positions::ListDevicePositionsError::ValidationException(inner) => Error::ValidationException(inner),
1256 crate::operation::list_device_positions::ListDevicePositionsError::Unhandled(inner) => Error::Unhandled(inner),
1257 }
1258 }
1259}
1260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_geofence_collections::ListGeofenceCollectionsError, R>>
1261 for Error
1262where
1263 R: Send + Sync + std::fmt::Debug + 'static,
1264{
1265 fn from(
1266 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_geofence_collections::ListGeofenceCollectionsError, R>,
1267 ) -> Self {
1268 match err {
1269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1272 source: err.into(),
1273 }),
1274 }
1275 }
1276}
1277impl From<crate::operation::list_geofence_collections::ListGeofenceCollectionsError> for Error {
1278 fn from(err: crate::operation::list_geofence_collections::ListGeofenceCollectionsError) -> Self {
1279 match err {
1280 crate::operation::list_geofence_collections::ListGeofenceCollectionsError::AccessDeniedException(inner) => {
1281 Error::AccessDeniedException(inner)
1282 }
1283 crate::operation::list_geofence_collections::ListGeofenceCollectionsError::InternalServerException(inner) => {
1284 Error::InternalServerException(inner)
1285 }
1286 crate::operation::list_geofence_collections::ListGeofenceCollectionsError::ThrottlingException(inner) => {
1287 Error::ThrottlingException(inner)
1288 }
1289 crate::operation::list_geofence_collections::ListGeofenceCollectionsError::ValidationException(inner) => {
1290 Error::ValidationException(inner)
1291 }
1292 crate::operation::list_geofence_collections::ListGeofenceCollectionsError::Unhandled(inner) => Error::Unhandled(inner),
1293 }
1294 }
1295}
1296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_geofences::ListGeofencesError, R>> for Error
1297where
1298 R: Send + Sync + std::fmt::Debug + 'static,
1299{
1300 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_geofences::ListGeofencesError, R>) -> Self {
1301 match err {
1302 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1303 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1304 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1305 source: err.into(),
1306 }),
1307 }
1308 }
1309}
1310impl From<crate::operation::list_geofences::ListGeofencesError> for Error {
1311 fn from(err: crate::operation::list_geofences::ListGeofencesError) -> Self {
1312 match err {
1313 crate::operation::list_geofences::ListGeofencesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1314 crate::operation::list_geofences::ListGeofencesError::InternalServerException(inner) => Error::InternalServerException(inner),
1315 crate::operation::list_geofences::ListGeofencesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1316 crate::operation::list_geofences::ListGeofencesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1317 crate::operation::list_geofences::ListGeofencesError::ValidationException(inner) => Error::ValidationException(inner),
1318 crate::operation::list_geofences::ListGeofencesError::Unhandled(inner) => Error::Unhandled(inner),
1319 }
1320 }
1321}
1322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_keys::ListKeysError, R>> for Error
1323where
1324 R: Send + Sync + std::fmt::Debug + 'static,
1325{
1326 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_keys::ListKeysError, R>) -> Self {
1327 match err {
1328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1331 source: err.into(),
1332 }),
1333 }
1334 }
1335}
1336impl From<crate::operation::list_keys::ListKeysError> for Error {
1337 fn from(err: crate::operation::list_keys::ListKeysError) -> Self {
1338 match err {
1339 crate::operation::list_keys::ListKeysError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1340 crate::operation::list_keys::ListKeysError::InternalServerException(inner) => Error::InternalServerException(inner),
1341 crate::operation::list_keys::ListKeysError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1342 crate::operation::list_keys::ListKeysError::ValidationException(inner) => Error::ValidationException(inner),
1343 crate::operation::list_keys::ListKeysError::Unhandled(inner) => Error::Unhandled(inner),
1344 }
1345 }
1346}
1347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_maps::ListMapsError, 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_maps::ListMapsError, 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_maps::ListMapsError> for Error {
1362 fn from(err: crate::operation::list_maps::ListMapsError) -> Self {
1363 match err {
1364 crate::operation::list_maps::ListMapsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1365 crate::operation::list_maps::ListMapsError::InternalServerException(inner) => Error::InternalServerException(inner),
1366 crate::operation::list_maps::ListMapsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1367 crate::operation::list_maps::ListMapsError::ValidationException(inner) => Error::ValidationException(inner),
1368 crate::operation::list_maps::ListMapsError::Unhandled(inner) => Error::Unhandled(inner),
1369 }
1370 }
1371}
1372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_place_indexes::ListPlaceIndexesError, R>> for Error
1373where
1374 R: Send + Sync + std::fmt::Debug + 'static,
1375{
1376 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_place_indexes::ListPlaceIndexesError, R>) -> Self {
1377 match err {
1378 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1379 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1380 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1381 source: err.into(),
1382 }),
1383 }
1384 }
1385}
1386impl From<crate::operation::list_place_indexes::ListPlaceIndexesError> for Error {
1387 fn from(err: crate::operation::list_place_indexes::ListPlaceIndexesError) -> Self {
1388 match err {
1389 crate::operation::list_place_indexes::ListPlaceIndexesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1390 crate::operation::list_place_indexes::ListPlaceIndexesError::InternalServerException(inner) => Error::InternalServerException(inner),
1391 crate::operation::list_place_indexes::ListPlaceIndexesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1392 crate::operation::list_place_indexes::ListPlaceIndexesError::ValidationException(inner) => Error::ValidationException(inner),
1393 crate::operation::list_place_indexes::ListPlaceIndexesError::Unhandled(inner) => Error::Unhandled(inner),
1394 }
1395 }
1396}
1397impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_route_calculators::ListRouteCalculatorsError, R>> for Error
1398where
1399 R: Send + Sync + std::fmt::Debug + 'static,
1400{
1401 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_route_calculators::ListRouteCalculatorsError, R>) -> Self {
1402 match err {
1403 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1404 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1405 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1406 source: err.into(),
1407 }),
1408 }
1409 }
1410}
1411impl From<crate::operation::list_route_calculators::ListRouteCalculatorsError> for Error {
1412 fn from(err: crate::operation::list_route_calculators::ListRouteCalculatorsError) -> Self {
1413 match err {
1414 crate::operation::list_route_calculators::ListRouteCalculatorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1415 crate::operation::list_route_calculators::ListRouteCalculatorsError::InternalServerException(inner) => {
1416 Error::InternalServerException(inner)
1417 }
1418 crate::operation::list_route_calculators::ListRouteCalculatorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1419 crate::operation::list_route_calculators::ListRouteCalculatorsError::ValidationException(inner) => Error::ValidationException(inner),
1420 crate::operation::list_route_calculators::ListRouteCalculatorsError::Unhandled(inner) => Error::Unhandled(inner),
1421 }
1422 }
1423}
1424impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1425where
1426 R: Send + Sync + std::fmt::Debug + 'static,
1427{
1428 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1429 match err {
1430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1433 source: err.into(),
1434 }),
1435 }
1436 }
1437}
1438impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1439 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1440 match err {
1441 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1442 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1443 Error::InternalServerException(inner)
1444 }
1445 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1446 Error::ResourceNotFoundException(inner)
1447 }
1448 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1449 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1450 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1451 }
1452 }
1453}
1454impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tracker_consumers::ListTrackerConsumersError, R>> for Error
1455where
1456 R: Send + Sync + std::fmt::Debug + 'static,
1457{
1458 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tracker_consumers::ListTrackerConsumersError, R>) -> Self {
1459 match err {
1460 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1461 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1462 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1463 source: err.into(),
1464 }),
1465 }
1466 }
1467}
1468impl From<crate::operation::list_tracker_consumers::ListTrackerConsumersError> for Error {
1469 fn from(err: crate::operation::list_tracker_consumers::ListTrackerConsumersError) -> Self {
1470 match err {
1471 crate::operation::list_tracker_consumers::ListTrackerConsumersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1472 crate::operation::list_tracker_consumers::ListTrackerConsumersError::InternalServerException(inner) => {
1473 Error::InternalServerException(inner)
1474 }
1475 crate::operation::list_tracker_consumers::ListTrackerConsumersError::ResourceNotFoundException(inner) => {
1476 Error::ResourceNotFoundException(inner)
1477 }
1478 crate::operation::list_tracker_consumers::ListTrackerConsumersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1479 crate::operation::list_tracker_consumers::ListTrackerConsumersError::ValidationException(inner) => Error::ValidationException(inner),
1480 crate::operation::list_tracker_consumers::ListTrackerConsumersError::Unhandled(inner) => Error::Unhandled(inner),
1481 }
1482 }
1483}
1484impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trackers::ListTrackersError, R>> for Error
1485where
1486 R: Send + Sync + std::fmt::Debug + 'static,
1487{
1488 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trackers::ListTrackersError, R>) -> Self {
1489 match err {
1490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1493 source: err.into(),
1494 }),
1495 }
1496 }
1497}
1498impl From<crate::operation::list_trackers::ListTrackersError> for Error {
1499 fn from(err: crate::operation::list_trackers::ListTrackersError) -> Self {
1500 match err {
1501 crate::operation::list_trackers::ListTrackersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1502 crate::operation::list_trackers::ListTrackersError::InternalServerException(inner) => Error::InternalServerException(inner),
1503 crate::operation::list_trackers::ListTrackersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1504 crate::operation::list_trackers::ListTrackersError::ValidationException(inner) => Error::ValidationException(inner),
1505 crate::operation::list_trackers::ListTrackersError::Unhandled(inner) => Error::Unhandled(inner),
1506 }
1507 }
1508}
1509impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_geofence::PutGeofenceError, R>> for Error
1510where
1511 R: Send + Sync + std::fmt::Debug + 'static,
1512{
1513 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_geofence::PutGeofenceError, R>) -> Self {
1514 match err {
1515 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1516 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1517 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1518 source: err.into(),
1519 }),
1520 }
1521 }
1522}
1523impl From<crate::operation::put_geofence::PutGeofenceError> for Error {
1524 fn from(err: crate::operation::put_geofence::PutGeofenceError) -> Self {
1525 match err {
1526 crate::operation::put_geofence::PutGeofenceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1527 crate::operation::put_geofence::PutGeofenceError::ConflictException(inner) => Error::ConflictException(inner),
1528 crate::operation::put_geofence::PutGeofenceError::InternalServerException(inner) => Error::InternalServerException(inner),
1529 crate::operation::put_geofence::PutGeofenceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1530 crate::operation::put_geofence::PutGeofenceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1531 crate::operation::put_geofence::PutGeofenceError::ValidationException(inner) => Error::ValidationException(inner),
1532 crate::operation::put_geofence::PutGeofenceError::Unhandled(inner) => Error::Unhandled(inner),
1533 }
1534 }
1535}
1536impl<R>
1537 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError, R>>
1538 for Error
1539where
1540 R: Send + Sync + std::fmt::Debug + 'static,
1541{
1542 fn from(
1543 err: ::aws_smithy_runtime_api::client::result::SdkError<
1544 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError,
1545 R,
1546 >,
1547 ) -> Self {
1548 match err {
1549 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1550 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1551 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1552 source: err.into(),
1553 }),
1554 }
1555 }
1556}
1557impl From<crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError> for Error {
1558 fn from(err: crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError) -> Self {
1559 match err {
1560 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::AccessDeniedException(inner) => {
1561 Error::AccessDeniedException(inner)
1562 }
1563 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::InternalServerException(inner) => {
1564 Error::InternalServerException(inner)
1565 }
1566 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::ResourceNotFoundException(inner) => {
1567 Error::ResourceNotFoundException(inner)
1568 }
1569 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::ThrottlingException(inner) => {
1570 Error::ThrottlingException(inner)
1571 }
1572 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::ValidationException(inner) => {
1573 Error::ValidationException(inner)
1574 }
1575 crate::operation::search_place_index_for_position::SearchPlaceIndexForPositionError::Unhandled(inner) => Error::Unhandled(inner),
1576 }
1577 }
1578}
1579impl<R>
1580 From<
1581 ::aws_smithy_runtime_api::client::result::SdkError<
1582 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError,
1583 R,
1584 >,
1585 > for Error
1586where
1587 R: Send + Sync + std::fmt::Debug + 'static,
1588{
1589 fn from(
1590 err: ::aws_smithy_runtime_api::client::result::SdkError<
1591 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError,
1592 R,
1593 >,
1594 ) -> Self {
1595 match err {
1596 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1597 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1598 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1599 source: err.into(),
1600 }),
1601 }
1602 }
1603}
1604impl From<crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError> for Error {
1605 fn from(err: crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError) -> Self {
1606 match err {
1607 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::AccessDeniedException(inner) => {
1608 Error::AccessDeniedException(inner)
1609 }
1610 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::InternalServerException(inner) => {
1611 Error::InternalServerException(inner)
1612 }
1613 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::ResourceNotFoundException(inner) => {
1614 Error::ResourceNotFoundException(inner)
1615 }
1616 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::ThrottlingException(inner) => {
1617 Error::ThrottlingException(inner)
1618 }
1619 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::ValidationException(inner) => {
1620 Error::ValidationException(inner)
1621 }
1622 crate::operation::search_place_index_for_suggestions::SearchPlaceIndexForSuggestionsError::Unhandled(inner) => Error::Unhandled(inner),
1623 }
1624 }
1625}
1626impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError, R>>
1627 for Error
1628where
1629 R: Send + Sync + std::fmt::Debug + 'static,
1630{
1631 fn from(
1632 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError, R>,
1633 ) -> Self {
1634 match err {
1635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1638 source: err.into(),
1639 }),
1640 }
1641 }
1642}
1643impl From<crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError> for Error {
1644 fn from(err: crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError) -> Self {
1645 match err {
1646 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::AccessDeniedException(inner) => {
1647 Error::AccessDeniedException(inner)
1648 }
1649 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::InternalServerException(inner) => {
1650 Error::InternalServerException(inner)
1651 }
1652 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::ResourceNotFoundException(inner) => {
1653 Error::ResourceNotFoundException(inner)
1654 }
1655 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::ThrottlingException(inner) => {
1656 Error::ThrottlingException(inner)
1657 }
1658 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::ValidationException(inner) => {
1659 Error::ValidationException(inner)
1660 }
1661 crate::operation::search_place_index_for_text::SearchPlaceIndexForTextError::Unhandled(inner) => Error::Unhandled(inner),
1662 }
1663 }
1664}
1665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1666where
1667 R: Send + Sync + std::fmt::Debug + 'static,
1668{
1669 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1670 match err {
1671 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1672 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1673 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1674 source: err.into(),
1675 }),
1676 }
1677 }
1678}
1679impl From<crate::operation::tag_resource::TagResourceError> for Error {
1680 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1681 match err {
1682 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1683 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1684 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1685 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1686 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1687 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1688 }
1689 }
1690}
1691impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1692where
1693 R: Send + Sync + std::fmt::Debug + 'static,
1694{
1695 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1696 match err {
1697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1700 source: err.into(),
1701 }),
1702 }
1703 }
1704}
1705impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1706 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1707 match err {
1708 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1709 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1710 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1711 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1712 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1713 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1714 }
1715 }
1716}
1717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_geofence_collection::UpdateGeofenceCollectionError, R>>
1718 for Error
1719where
1720 R: Send + Sync + std::fmt::Debug + 'static,
1721{
1722 fn from(
1723 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_geofence_collection::UpdateGeofenceCollectionError, R>,
1724 ) -> Self {
1725 match err {
1726 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1727 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1728 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1729 source: err.into(),
1730 }),
1731 }
1732 }
1733}
1734impl From<crate::operation::update_geofence_collection::UpdateGeofenceCollectionError> for Error {
1735 fn from(err: crate::operation::update_geofence_collection::UpdateGeofenceCollectionError) -> Self {
1736 match err {
1737 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::AccessDeniedException(inner) => {
1738 Error::AccessDeniedException(inner)
1739 }
1740 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::InternalServerException(inner) => {
1741 Error::InternalServerException(inner)
1742 }
1743 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::ResourceNotFoundException(inner) => {
1744 Error::ResourceNotFoundException(inner)
1745 }
1746 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::ThrottlingException(inner) => {
1747 Error::ThrottlingException(inner)
1748 }
1749 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::ValidationException(inner) => {
1750 Error::ValidationException(inner)
1751 }
1752 crate::operation::update_geofence_collection::UpdateGeofenceCollectionError::Unhandled(inner) => Error::Unhandled(inner),
1753 }
1754 }
1755}
1756impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_key::UpdateKeyError, R>> for Error
1757where
1758 R: Send + Sync + std::fmt::Debug + 'static,
1759{
1760 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_key::UpdateKeyError, R>) -> Self {
1761 match err {
1762 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1763 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1764 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1765 source: err.into(),
1766 }),
1767 }
1768 }
1769}
1770impl From<crate::operation::update_key::UpdateKeyError> for Error {
1771 fn from(err: crate::operation::update_key::UpdateKeyError) -> Self {
1772 match err {
1773 crate::operation::update_key::UpdateKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1774 crate::operation::update_key::UpdateKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
1775 crate::operation::update_key::UpdateKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1776 crate::operation::update_key::UpdateKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1777 crate::operation::update_key::UpdateKeyError::ValidationException(inner) => Error::ValidationException(inner),
1778 crate::operation::update_key::UpdateKeyError::Unhandled(inner) => Error::Unhandled(inner),
1779 }
1780 }
1781}
1782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_map::UpdateMapError, R>> for Error
1783where
1784 R: Send + Sync + std::fmt::Debug + 'static,
1785{
1786 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_map::UpdateMapError, R>) -> Self {
1787 match err {
1788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1791 source: err.into(),
1792 }),
1793 }
1794 }
1795}
1796impl From<crate::operation::update_map::UpdateMapError> for Error {
1797 fn from(err: crate::operation::update_map::UpdateMapError) -> Self {
1798 match err {
1799 crate::operation::update_map::UpdateMapError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1800 crate::operation::update_map::UpdateMapError::InternalServerException(inner) => Error::InternalServerException(inner),
1801 crate::operation::update_map::UpdateMapError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1802 crate::operation::update_map::UpdateMapError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1803 crate::operation::update_map::UpdateMapError::ValidationException(inner) => Error::ValidationException(inner),
1804 crate::operation::update_map::UpdateMapError::Unhandled(inner) => Error::Unhandled(inner),
1805 }
1806 }
1807}
1808impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_place_index::UpdatePlaceIndexError, R>> for Error
1809where
1810 R: Send + Sync + std::fmt::Debug + 'static,
1811{
1812 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_place_index::UpdatePlaceIndexError, R>) -> Self {
1813 match err {
1814 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1815 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1816 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1817 source: err.into(),
1818 }),
1819 }
1820 }
1821}
1822impl From<crate::operation::update_place_index::UpdatePlaceIndexError> for Error {
1823 fn from(err: crate::operation::update_place_index::UpdatePlaceIndexError) -> Self {
1824 match err {
1825 crate::operation::update_place_index::UpdatePlaceIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1826 crate::operation::update_place_index::UpdatePlaceIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
1827 crate::operation::update_place_index::UpdatePlaceIndexError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1828 crate::operation::update_place_index::UpdatePlaceIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1829 crate::operation::update_place_index::UpdatePlaceIndexError::ValidationException(inner) => Error::ValidationException(inner),
1830 crate::operation::update_place_index::UpdatePlaceIndexError::Unhandled(inner) => Error::Unhandled(inner),
1831 }
1832 }
1833}
1834impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route_calculator::UpdateRouteCalculatorError, R>> for Error
1835where
1836 R: Send + Sync + std::fmt::Debug + 'static,
1837{
1838 fn from(
1839 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route_calculator::UpdateRouteCalculatorError, R>,
1840 ) -> Self {
1841 match err {
1842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1845 source: err.into(),
1846 }),
1847 }
1848 }
1849}
1850impl From<crate::operation::update_route_calculator::UpdateRouteCalculatorError> for Error {
1851 fn from(err: crate::operation::update_route_calculator::UpdateRouteCalculatorError) -> Self {
1852 match err {
1853 crate::operation::update_route_calculator::UpdateRouteCalculatorError::AccessDeniedException(inner) => {
1854 Error::AccessDeniedException(inner)
1855 }
1856 crate::operation::update_route_calculator::UpdateRouteCalculatorError::InternalServerException(inner) => {
1857 Error::InternalServerException(inner)
1858 }
1859 crate::operation::update_route_calculator::UpdateRouteCalculatorError::ResourceNotFoundException(inner) => {
1860 Error::ResourceNotFoundException(inner)
1861 }
1862 crate::operation::update_route_calculator::UpdateRouteCalculatorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1863 crate::operation::update_route_calculator::UpdateRouteCalculatorError::ValidationException(inner) => Error::ValidationException(inner),
1864 crate::operation::update_route_calculator::UpdateRouteCalculatorError::Unhandled(inner) => Error::Unhandled(inner),
1865 }
1866 }
1867}
1868impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tracker::UpdateTrackerError, R>> for Error
1869where
1870 R: Send + Sync + std::fmt::Debug + 'static,
1871{
1872 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tracker::UpdateTrackerError, R>) -> Self {
1873 match err {
1874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1877 source: err.into(),
1878 }),
1879 }
1880 }
1881}
1882impl From<crate::operation::update_tracker::UpdateTrackerError> for Error {
1883 fn from(err: crate::operation::update_tracker::UpdateTrackerError) -> Self {
1884 match err {
1885 crate::operation::update_tracker::UpdateTrackerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1886 crate::operation::update_tracker::UpdateTrackerError::InternalServerException(inner) => Error::InternalServerException(inner),
1887 crate::operation::update_tracker::UpdateTrackerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1888 crate::operation::update_tracker::UpdateTrackerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1889 crate::operation::update_tracker::UpdateTrackerError::ValidationException(inner) => Error::ValidationException(inner),
1890 crate::operation::update_tracker::UpdateTrackerError::Unhandled(inner) => Error::Unhandled(inner),
1891 }
1892 }
1893}
1894impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_device_position::VerifyDevicePositionError, R>> for Error
1895where
1896 R: Send + Sync + std::fmt::Debug + 'static,
1897{
1898 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_device_position::VerifyDevicePositionError, R>) -> Self {
1899 match err {
1900 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1901 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1902 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1903 source: err.into(),
1904 }),
1905 }
1906 }
1907}
1908impl From<crate::operation::verify_device_position::VerifyDevicePositionError> for Error {
1909 fn from(err: crate::operation::verify_device_position::VerifyDevicePositionError) -> Self {
1910 match err {
1911 crate::operation::verify_device_position::VerifyDevicePositionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1912 crate::operation::verify_device_position::VerifyDevicePositionError::InternalServerException(inner) => {
1913 Error::InternalServerException(inner)
1914 }
1915 crate::operation::verify_device_position::VerifyDevicePositionError::ResourceNotFoundException(inner) => {
1916 Error::ResourceNotFoundException(inner)
1917 }
1918 crate::operation::verify_device_position::VerifyDevicePositionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1919 crate::operation::verify_device_position::VerifyDevicePositionError::ValidationException(inner) => Error::ValidationException(inner),
1920 crate::operation::verify_device_position::VerifyDevicePositionError::Unhandled(inner) => Error::Unhandled(inner),
1921 }
1922 }
1923}
1924impl ::std::error::Error for Error {
1925 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1926 match self {
1927 Error::AccessDeniedException(inner) => inner.source(),
1928 Error::ConflictException(inner) => inner.source(),
1929 Error::InternalServerException(inner) => inner.source(),
1930 Error::ResourceNotFoundException(inner) => inner.source(),
1931 Error::ServiceQuotaExceededException(inner) => inner.source(),
1932 Error::ThrottlingException(inner) => inner.source(),
1933 Error::ValidationException(inner) => inner.source(),
1934 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1935 }
1936 }
1937}
1938impl ::aws_types::request_id::RequestId for Error {
1939 fn request_id(&self) -> Option<&str> {
1940 match self {
1941 Self::AccessDeniedException(e) => e.request_id(),
1942 Self::ConflictException(e) => e.request_id(),
1943 Self::InternalServerException(e) => e.request_id(),
1944 Self::ResourceNotFoundException(e) => e.request_id(),
1945 Self::ServiceQuotaExceededException(e) => e.request_id(),
1946 Self::ThrottlingException(e) => e.request_id(),
1947 Self::ValidationException(e) => e.request_id(),
1948 Self::Unhandled(e) => e.meta.request_id(),
1949 }
1950 }
1951}