1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 InternalException(crate::types::error::InternalException),
8 InvalidRequestException(crate::types::error::InvalidRequestException),
10 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
12 variable wildcard pattern and check `.code()`:
13 \
14 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
15 \
16 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
17 Unhandled(crate::error::sealed_unhandled::Unhandled),
18}
19impl ::std::fmt::Display for Error {
20 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
21 match self {
22 Error::InternalException(inner) => inner.fmt(f),
23 Error::InvalidRequestException(inner) => inner.fmt(f),
24 Error::Unhandled(_) => {
25 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
26 write!(f, "unhandled error ({code})")
27 } else {
28 f.write_str("unhandled error")
29 }
30 }
31 }
32 }
33}
34impl From<::aws_smithy_types::error::operation::BuildError> for Error {
35 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
36 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
37 source: value.into(),
38 meta: ::std::default::Default::default(),
39 })
40 }
41}
42impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
43 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
44 match self {
45 Self::InternalException(inner) => inner.meta(),
46 Self::InvalidRequestException(inner) => inner.meta(),
47 Self::Unhandled(inner) => &inner.meta,
48 }
49 }
50}
51impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_storage_system::AddStorageSystemError, R>> for Error
52where
53 R: Send + Sync + std::fmt::Debug + 'static,
54{
55 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_storage_system::AddStorageSystemError, R>) -> Self {
56 match err {
57 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
58 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
59 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
60 source: err.into(),
61 }),
62 }
63 }
64}
65impl From<crate::operation::add_storage_system::AddStorageSystemError> for Error {
66 fn from(err: crate::operation::add_storage_system::AddStorageSystemError) -> Self {
67 match err {
68 crate::operation::add_storage_system::AddStorageSystemError::InternalException(inner) => Error::InternalException(inner),
69 crate::operation::add_storage_system::AddStorageSystemError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
70 crate::operation::add_storage_system::AddStorageSystemError::Unhandled(inner) => Error::Unhandled(inner),
71 }
72 }
73}
74impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_task_execution::CancelTaskExecutionError, R>> for Error
75where
76 R: Send + Sync + std::fmt::Debug + 'static,
77{
78 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_task_execution::CancelTaskExecutionError, R>) -> 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::cancel_task_execution::CancelTaskExecutionError> for Error {
89 fn from(err: crate::operation::cancel_task_execution::CancelTaskExecutionError) -> Self {
90 match err {
91 crate::operation::cancel_task_execution::CancelTaskExecutionError::InternalException(inner) => Error::InternalException(inner),
92 crate::operation::cancel_task_execution::CancelTaskExecutionError::InvalidRequestException(inner) => {
93 Error::InvalidRequestException(inner)
94 }
95 crate::operation::cancel_task_execution::CancelTaskExecutionError::Unhandled(inner) => Error::Unhandled(inner),
96 }
97 }
98}
99impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent::CreateAgentError, R>> for Error
100where
101 R: Send + Sync + std::fmt::Debug + 'static,
102{
103 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent::CreateAgentError, R>) -> Self {
104 match err {
105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
108 source: err.into(),
109 }),
110 }
111 }
112}
113impl From<crate::operation::create_agent::CreateAgentError> for Error {
114 fn from(err: crate::operation::create_agent::CreateAgentError) -> Self {
115 match err {
116 crate::operation::create_agent::CreateAgentError::InternalException(inner) => Error::InternalException(inner),
117 crate::operation::create_agent::CreateAgentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
118 crate::operation::create_agent::CreateAgentError::Unhandled(inner) => Error::Unhandled(inner),
119 }
120 }
121}
122impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_azure_blob::CreateLocationAzureBlobError, R>>
123 for Error
124where
125 R: Send + Sync + std::fmt::Debug + 'static,
126{
127 fn from(
128 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_azure_blob::CreateLocationAzureBlobError, R>,
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::create_location_azure_blob::CreateLocationAzureBlobError> for Error {
140 fn from(err: crate::operation::create_location_azure_blob::CreateLocationAzureBlobError) -> Self {
141 match err {
142 crate::operation::create_location_azure_blob::CreateLocationAzureBlobError::InternalException(inner) => Error::InternalException(inner),
143 crate::operation::create_location_azure_blob::CreateLocationAzureBlobError::InvalidRequestException(inner) => {
144 Error::InvalidRequestException(inner)
145 }
146 crate::operation::create_location_azure_blob::CreateLocationAzureBlobError::Unhandled(inner) => Error::Unhandled(inner),
147 }
148 }
149}
150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_efs::CreateLocationEfsError, R>> for Error
151where
152 R: Send + Sync + std::fmt::Debug + 'static,
153{
154 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_efs::CreateLocationEfsError, R>) -> Self {
155 match err {
156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
159 source: err.into(),
160 }),
161 }
162 }
163}
164impl From<crate::operation::create_location_efs::CreateLocationEfsError> for Error {
165 fn from(err: crate::operation::create_location_efs::CreateLocationEfsError) -> Self {
166 match err {
167 crate::operation::create_location_efs::CreateLocationEfsError::InternalException(inner) => Error::InternalException(inner),
168 crate::operation::create_location_efs::CreateLocationEfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
169 crate::operation::create_location_efs::CreateLocationEfsError::Unhandled(inner) => Error::Unhandled(inner),
170 }
171 }
172}
173impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError, R>>
174 for Error
175where
176 R: Send + Sync + std::fmt::Debug + 'static,
177{
178 fn from(
179 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError, R>,
180 ) -> Self {
181 match err {
182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
185 source: err.into(),
186 }),
187 }
188 }
189}
190impl From<crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError> for Error {
191 fn from(err: crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError) -> Self {
192 match err {
193 crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError::InternalException(inner) => Error::InternalException(inner),
194 crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError::InvalidRequestException(inner) => {
195 Error::InvalidRequestException(inner)
196 }
197 crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError::Unhandled(inner) => Error::Unhandled(inner),
198 }
199 }
200}
201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError, R>>
202 for Error
203where
204 R: Send + Sync + std::fmt::Debug + 'static,
205{
206 fn from(
207 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError, R>,
208 ) -> Self {
209 match err {
210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
213 source: err.into(),
214 }),
215 }
216 }
217}
218impl From<crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError> for Error {
219 fn from(err: crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError) -> Self {
220 match err {
221 crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError::InternalException(inner) => Error::InternalException(inner),
222 crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError::InvalidRequestException(inner) => {
223 Error::InvalidRequestException(inner)
224 }
225 crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError::Unhandled(inner) => Error::Unhandled(inner),
226 }
227 }
228}
229impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError, R>>
230 for Error
231where
232 R: Send + Sync + std::fmt::Debug + 'static,
233{
234 fn from(
235 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError, R>,
236 ) -> Self {
237 match err {
238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241 source: err.into(),
242 }),
243 }
244 }
245}
246impl From<crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError> for Error {
247 fn from(err: crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError) -> Self {
248 match err {
249 crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError::InternalException(inner) => {
250 Error::InternalException(inner)
251 }
252 crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError::InvalidRequestException(inner) => {
253 Error::InvalidRequestException(inner)
254 }
255 crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError::Unhandled(inner) => Error::Unhandled(inner),
256 }
257 }
258}
259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError, R>>
260 for Error
261where
262 R: Send + Sync + std::fmt::Debug + 'static,
263{
264 fn from(
265 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError, R>,
266 ) -> 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::create_location_fsx_windows::CreateLocationFsxWindowsError> for Error {
277 fn from(err: crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError) -> Self {
278 match err {
279 crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError::InternalException(inner) => Error::InternalException(inner),
280 crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError::InvalidRequestException(inner) => {
281 Error::InvalidRequestException(inner)
282 }
283 crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError::Unhandled(inner) => Error::Unhandled(inner),
284 }
285 }
286}
287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_hdfs::CreateLocationHdfsError, R>> for Error
288where
289 R: Send + Sync + std::fmt::Debug + 'static,
290{
291 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_hdfs::CreateLocationHdfsError, R>) -> Self {
292 match err {
293 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
294 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
295 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
296 source: err.into(),
297 }),
298 }
299 }
300}
301impl From<crate::operation::create_location_hdfs::CreateLocationHdfsError> for Error {
302 fn from(err: crate::operation::create_location_hdfs::CreateLocationHdfsError) -> Self {
303 match err {
304 crate::operation::create_location_hdfs::CreateLocationHdfsError::InternalException(inner) => Error::InternalException(inner),
305 crate::operation::create_location_hdfs::CreateLocationHdfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
306 crate::operation::create_location_hdfs::CreateLocationHdfsError::Unhandled(inner) => Error::Unhandled(inner),
307 }
308 }
309}
310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_nfs::CreateLocationNfsError, R>> for Error
311where
312 R: Send + Sync + std::fmt::Debug + 'static,
313{
314 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_nfs::CreateLocationNfsError, R>) -> Self {
315 match err {
316 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
317 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
318 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
319 source: err.into(),
320 }),
321 }
322 }
323}
324impl From<crate::operation::create_location_nfs::CreateLocationNfsError> for Error {
325 fn from(err: crate::operation::create_location_nfs::CreateLocationNfsError) -> Self {
326 match err {
327 crate::operation::create_location_nfs::CreateLocationNfsError::InternalException(inner) => Error::InternalException(inner),
328 crate::operation::create_location_nfs::CreateLocationNfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
329 crate::operation::create_location_nfs::CreateLocationNfsError::Unhandled(inner) => Error::Unhandled(inner),
330 }
331 }
332}
333impl<R>
334 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_object_storage::CreateLocationObjectStorageError, R>>
335 for Error
336where
337 R: Send + Sync + std::fmt::Debug + 'static,
338{
339 fn from(
340 err: ::aws_smithy_runtime_api::client::result::SdkError<
341 crate::operation::create_location_object_storage::CreateLocationObjectStorageError,
342 R,
343 >,
344 ) -> Self {
345 match err {
346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
349 source: err.into(),
350 }),
351 }
352 }
353}
354impl From<crate::operation::create_location_object_storage::CreateLocationObjectStorageError> for Error {
355 fn from(err: crate::operation::create_location_object_storage::CreateLocationObjectStorageError) -> Self {
356 match err {
357 crate::operation::create_location_object_storage::CreateLocationObjectStorageError::InternalException(inner) => {
358 Error::InternalException(inner)
359 }
360 crate::operation::create_location_object_storage::CreateLocationObjectStorageError::InvalidRequestException(inner) => {
361 Error::InvalidRequestException(inner)
362 }
363 crate::operation::create_location_object_storage::CreateLocationObjectStorageError::Unhandled(inner) => Error::Unhandled(inner),
364 }
365 }
366}
367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_s3::CreateLocationS3Error, R>> for Error
368where
369 R: Send + Sync + std::fmt::Debug + 'static,
370{
371 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_s3::CreateLocationS3Error, R>) -> Self {
372 match err {
373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
376 source: err.into(),
377 }),
378 }
379 }
380}
381impl From<crate::operation::create_location_s3::CreateLocationS3Error> for Error {
382 fn from(err: crate::operation::create_location_s3::CreateLocationS3Error) -> Self {
383 match err {
384 crate::operation::create_location_s3::CreateLocationS3Error::InternalException(inner) => Error::InternalException(inner),
385 crate::operation::create_location_s3::CreateLocationS3Error::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
386 crate::operation::create_location_s3::CreateLocationS3Error::Unhandled(inner) => Error::Unhandled(inner),
387 }
388 }
389}
390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_smb::CreateLocationSmbError, R>> for Error
391where
392 R: Send + Sync + std::fmt::Debug + 'static,
393{
394 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_smb::CreateLocationSmbError, R>) -> Self {
395 match err {
396 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
397 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
398 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
399 source: err.into(),
400 }),
401 }
402 }
403}
404impl From<crate::operation::create_location_smb::CreateLocationSmbError> for Error {
405 fn from(err: crate::operation::create_location_smb::CreateLocationSmbError) -> Self {
406 match err {
407 crate::operation::create_location_smb::CreateLocationSmbError::InternalException(inner) => Error::InternalException(inner),
408 crate::operation::create_location_smb::CreateLocationSmbError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
409 crate::operation::create_location_smb::CreateLocationSmbError::Unhandled(inner) => Error::Unhandled(inner),
410 }
411 }
412}
413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_task::CreateTaskError, R>> for Error
414where
415 R: Send + Sync + std::fmt::Debug + 'static,
416{
417 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_task::CreateTaskError, R>) -> Self {
418 match err {
419 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
420 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
421 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
422 source: err.into(),
423 }),
424 }
425 }
426}
427impl From<crate::operation::create_task::CreateTaskError> for Error {
428 fn from(err: crate::operation::create_task::CreateTaskError) -> Self {
429 match err {
430 crate::operation::create_task::CreateTaskError::InternalException(inner) => Error::InternalException(inner),
431 crate::operation::create_task::CreateTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
432 crate::operation::create_task::CreateTaskError::Unhandled(inner) => Error::Unhandled(inner),
433 }
434 }
435}
436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent::DeleteAgentError, R>> for Error
437where
438 R: Send + Sync + std::fmt::Debug + 'static,
439{
440 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent::DeleteAgentError, R>) -> Self {
441 match err {
442 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
443 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
444 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
445 source: err.into(),
446 }),
447 }
448 }
449}
450impl From<crate::operation::delete_agent::DeleteAgentError> for Error {
451 fn from(err: crate::operation::delete_agent::DeleteAgentError) -> Self {
452 match err {
453 crate::operation::delete_agent::DeleteAgentError::InternalException(inner) => Error::InternalException(inner),
454 crate::operation::delete_agent::DeleteAgentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
455 crate::operation::delete_agent::DeleteAgentError::Unhandled(inner) => Error::Unhandled(inner),
456 }
457 }
458}
459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_location::DeleteLocationError, R>> for Error
460where
461 R: Send + Sync + std::fmt::Debug + 'static,
462{
463 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_location::DeleteLocationError, R>) -> Self {
464 match err {
465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
468 source: err.into(),
469 }),
470 }
471 }
472}
473impl From<crate::operation::delete_location::DeleteLocationError> for Error {
474 fn from(err: crate::operation::delete_location::DeleteLocationError) -> Self {
475 match err {
476 crate::operation::delete_location::DeleteLocationError::InternalException(inner) => Error::InternalException(inner),
477 crate::operation::delete_location::DeleteLocationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
478 crate::operation::delete_location::DeleteLocationError::Unhandled(inner) => Error::Unhandled(inner),
479 }
480 }
481}
482impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_task::DeleteTaskError, R>> for Error
483where
484 R: Send + Sync + std::fmt::Debug + 'static,
485{
486 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_task::DeleteTaskError, R>) -> Self {
487 match err {
488 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
489 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
490 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
491 source: err.into(),
492 }),
493 }
494 }
495}
496impl From<crate::operation::delete_task::DeleteTaskError> for Error {
497 fn from(err: crate::operation::delete_task::DeleteTaskError) -> Self {
498 match err {
499 crate::operation::delete_task::DeleteTaskError::InternalException(inner) => Error::InternalException(inner),
500 crate::operation::delete_task::DeleteTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
501 crate::operation::delete_task::DeleteTaskError::Unhandled(inner) => Error::Unhandled(inner),
502 }
503 }
504}
505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_agent::DescribeAgentError, R>> for Error
506where
507 R: Send + Sync + std::fmt::Debug + 'static,
508{
509 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_agent::DescribeAgentError, R>) -> Self {
510 match err {
511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
514 source: err.into(),
515 }),
516 }
517 }
518}
519impl From<crate::operation::describe_agent::DescribeAgentError> for Error {
520 fn from(err: crate::operation::describe_agent::DescribeAgentError) -> Self {
521 match err {
522 crate::operation::describe_agent::DescribeAgentError::InternalException(inner) => Error::InternalException(inner),
523 crate::operation::describe_agent::DescribeAgentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
524 crate::operation::describe_agent::DescribeAgentError::Unhandled(inner) => Error::Unhandled(inner),
525 }
526 }
527}
528impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_discovery_job::DescribeDiscoveryJobError, R>> for Error
529where
530 R: Send + Sync + std::fmt::Debug + 'static,
531{
532 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_discovery_job::DescribeDiscoveryJobError, R>) -> Self {
533 match err {
534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
537 source: err.into(),
538 }),
539 }
540 }
541}
542impl From<crate::operation::describe_discovery_job::DescribeDiscoveryJobError> for Error {
543 fn from(err: crate::operation::describe_discovery_job::DescribeDiscoveryJobError) -> Self {
544 match err {
545 crate::operation::describe_discovery_job::DescribeDiscoveryJobError::InternalException(inner) => Error::InternalException(inner),
546 crate::operation::describe_discovery_job::DescribeDiscoveryJobError::InvalidRequestException(inner) => {
547 Error::InvalidRequestException(inner)
548 }
549 crate::operation::describe_discovery_job::DescribeDiscoveryJobError::Unhandled(inner) => Error::Unhandled(inner),
550 }
551 }
552}
553impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError, R>>
554 for Error
555where
556 R: Send + Sync + std::fmt::Debug + 'static,
557{
558 fn from(
559 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError, R>,
560 ) -> Self {
561 match err {
562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
565 source: err.into(),
566 }),
567 }
568 }
569}
570impl From<crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError> for Error {
571 fn from(err: crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError) -> Self {
572 match err {
573 crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError::InternalException(inner) => {
574 Error::InternalException(inner)
575 }
576 crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError::InvalidRequestException(inner) => {
577 Error::InvalidRequestException(inner)
578 }
579 crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError::Unhandled(inner) => Error::Unhandled(inner),
580 }
581 }
582}
583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_efs::DescribeLocationEfsError, R>> for Error
584where
585 R: Send + Sync + std::fmt::Debug + 'static,
586{
587 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_efs::DescribeLocationEfsError, R>) -> Self {
588 match err {
589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
592 source: err.into(),
593 }),
594 }
595 }
596}
597impl From<crate::operation::describe_location_efs::DescribeLocationEfsError> for Error {
598 fn from(err: crate::operation::describe_location_efs::DescribeLocationEfsError) -> Self {
599 match err {
600 crate::operation::describe_location_efs::DescribeLocationEfsError::InternalException(inner) => Error::InternalException(inner),
601 crate::operation::describe_location_efs::DescribeLocationEfsError::InvalidRequestException(inner) => {
602 Error::InvalidRequestException(inner)
603 }
604 crate::operation::describe_location_efs::DescribeLocationEfsError::Unhandled(inner) => Error::Unhandled(inner),
605 }
606 }
607}
608impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError, R>>
609 for Error
610where
611 R: Send + Sync + std::fmt::Debug + 'static,
612{
613 fn from(
614 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError, R>,
615 ) -> Self {
616 match err {
617 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
618 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
619 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
620 source: err.into(),
621 }),
622 }
623 }
624}
625impl From<crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError> for Error {
626 fn from(err: crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError) -> Self {
627 match err {
628 crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError::InternalException(inner) => {
629 Error::InternalException(inner)
630 }
631 crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError::InvalidRequestException(inner) => {
632 Error::InvalidRequestException(inner)
633 }
634 crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError::Unhandled(inner) => Error::Unhandled(inner),
635 }
636 }
637}
638impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError, R>>
639 for Error
640where
641 R: Send + Sync + std::fmt::Debug + 'static,
642{
643 fn from(
644 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError, R>,
645 ) -> Self {
646 match err {
647 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
648 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
649 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
650 source: err.into(),
651 }),
652 }
653 }
654}
655impl From<crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError> for Error {
656 fn from(err: crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError) -> Self {
657 match err {
658 crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError::InternalException(inner) => Error::InternalException(inner),
659 crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError::InvalidRequestException(inner) => {
660 Error::InvalidRequestException(inner)
661 }
662 crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError::Unhandled(inner) => Error::Unhandled(inner),
663 }
664 }
665}
666impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError, R>>
667 for Error
668where
669 R: Send + Sync + std::fmt::Debug + 'static,
670{
671 fn from(
672 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError, R>,
673 ) -> Self {
674 match err {
675 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
676 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
677 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
678 source: err.into(),
679 }),
680 }
681 }
682}
683impl From<crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError> for Error {
684 fn from(err: crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError) -> Self {
685 match err {
686 crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError::InternalException(inner) => {
687 Error::InternalException(inner)
688 }
689 crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError::InvalidRequestException(inner) => {
690 Error::InvalidRequestException(inner)
691 }
692 crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError::Unhandled(inner) => Error::Unhandled(inner),
693 }
694 }
695}
696impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError, R>>
697 for Error
698where
699 R: Send + Sync + std::fmt::Debug + 'static,
700{
701 fn from(
702 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError, R>,
703 ) -> Self {
704 match err {
705 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
706 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
707 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
708 source: err.into(),
709 }),
710 }
711 }
712}
713impl From<crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError> for Error {
714 fn from(err: crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError) -> Self {
715 match err {
716 crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError::InternalException(inner) => {
717 Error::InternalException(inner)
718 }
719 crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError::InvalidRequestException(inner) => {
720 Error::InvalidRequestException(inner)
721 }
722 crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError::Unhandled(inner) => Error::Unhandled(inner),
723 }
724 }
725}
726impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_hdfs::DescribeLocationHdfsError, R>> for Error
727where
728 R: Send + Sync + std::fmt::Debug + 'static,
729{
730 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_hdfs::DescribeLocationHdfsError, R>) -> Self {
731 match err {
732 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
733 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
734 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
735 source: err.into(),
736 }),
737 }
738 }
739}
740impl From<crate::operation::describe_location_hdfs::DescribeLocationHdfsError> for Error {
741 fn from(err: crate::operation::describe_location_hdfs::DescribeLocationHdfsError) -> Self {
742 match err {
743 crate::operation::describe_location_hdfs::DescribeLocationHdfsError::InternalException(inner) => Error::InternalException(inner),
744 crate::operation::describe_location_hdfs::DescribeLocationHdfsError::InvalidRequestException(inner) => {
745 Error::InvalidRequestException(inner)
746 }
747 crate::operation::describe_location_hdfs::DescribeLocationHdfsError::Unhandled(inner) => Error::Unhandled(inner),
748 }
749 }
750}
751impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_nfs::DescribeLocationNfsError, R>> for Error
752where
753 R: Send + Sync + std::fmt::Debug + 'static,
754{
755 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_nfs::DescribeLocationNfsError, R>) -> Self {
756 match err {
757 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
758 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
759 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
760 source: err.into(),
761 }),
762 }
763 }
764}
765impl From<crate::operation::describe_location_nfs::DescribeLocationNfsError> for Error {
766 fn from(err: crate::operation::describe_location_nfs::DescribeLocationNfsError) -> Self {
767 match err {
768 crate::operation::describe_location_nfs::DescribeLocationNfsError::InternalException(inner) => Error::InternalException(inner),
769 crate::operation::describe_location_nfs::DescribeLocationNfsError::InvalidRequestException(inner) => {
770 Error::InvalidRequestException(inner)
771 }
772 crate::operation::describe_location_nfs::DescribeLocationNfsError::Unhandled(inner) => Error::Unhandled(inner),
773 }
774 }
775}
776impl<R>
777 From<
778 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError, R>,
779 > for Error
780where
781 R: Send + Sync + std::fmt::Debug + 'static,
782{
783 fn from(
784 err: ::aws_smithy_runtime_api::client::result::SdkError<
785 crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError,
786 R,
787 >,
788 ) -> 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_location_object_storage::DescribeLocationObjectStorageError> for Error {
799 fn from(err: crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError) -> Self {
800 match err {
801 crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError::InternalException(inner) => {
802 Error::InternalException(inner)
803 }
804 crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError::InvalidRequestException(inner) => {
805 Error::InvalidRequestException(inner)
806 }
807 crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError::Unhandled(inner) => Error::Unhandled(inner),
808 }
809 }
810}
811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_s3::DescribeLocationS3Error, R>> for Error
812where
813 R: Send + Sync + std::fmt::Debug + 'static,
814{
815 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_s3::DescribeLocationS3Error, R>) -> Self {
816 match err {
817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
820 source: err.into(),
821 }),
822 }
823 }
824}
825impl From<crate::operation::describe_location_s3::DescribeLocationS3Error> for Error {
826 fn from(err: crate::operation::describe_location_s3::DescribeLocationS3Error) -> Self {
827 match err {
828 crate::operation::describe_location_s3::DescribeLocationS3Error::InternalException(inner) => Error::InternalException(inner),
829 crate::operation::describe_location_s3::DescribeLocationS3Error::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
830 crate::operation::describe_location_s3::DescribeLocationS3Error::Unhandled(inner) => Error::Unhandled(inner),
831 }
832 }
833}
834impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_smb::DescribeLocationSmbError, R>> for Error
835where
836 R: Send + Sync + std::fmt::Debug + 'static,
837{
838 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_smb::DescribeLocationSmbError, R>) -> Self {
839 match err {
840 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
841 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
842 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
843 source: err.into(),
844 }),
845 }
846 }
847}
848impl From<crate::operation::describe_location_smb::DescribeLocationSmbError> for Error {
849 fn from(err: crate::operation::describe_location_smb::DescribeLocationSmbError) -> Self {
850 match err {
851 crate::operation::describe_location_smb::DescribeLocationSmbError::InternalException(inner) => Error::InternalException(inner),
852 crate::operation::describe_location_smb::DescribeLocationSmbError::InvalidRequestException(inner) => {
853 Error::InvalidRequestException(inner)
854 }
855 crate::operation::describe_location_smb::DescribeLocationSmbError::Unhandled(inner) => Error::Unhandled(inner),
856 }
857 }
858}
859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_storage_system::DescribeStorageSystemError, R>> for Error
860where
861 R: Send + Sync + std::fmt::Debug + 'static,
862{
863 fn from(
864 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_storage_system::DescribeStorageSystemError, R>,
865 ) -> Self {
866 match err {
867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870 source: err.into(),
871 }),
872 }
873 }
874}
875impl From<crate::operation::describe_storage_system::DescribeStorageSystemError> for Error {
876 fn from(err: crate::operation::describe_storage_system::DescribeStorageSystemError) -> Self {
877 match err {
878 crate::operation::describe_storage_system::DescribeStorageSystemError::InternalException(inner) => Error::InternalException(inner),
879 crate::operation::describe_storage_system::DescribeStorageSystemError::InvalidRequestException(inner) => {
880 Error::InvalidRequestException(inner)
881 }
882 crate::operation::describe_storage_system::DescribeStorageSystemError::Unhandled(inner) => Error::Unhandled(inner),
883 }
884 }
885}
886impl<R>
887 From<
888 ::aws_smithy_runtime_api::client::result::SdkError<
889 crate::operation::describe_storage_system_resource_metrics::DescribeStorageSystemResourceMetricsError,
890 R,
891 >,
892 > for Error
893where
894 R: Send + Sync + std::fmt::Debug + 'static,
895{
896 fn from(
897 err: ::aws_smithy_runtime_api::client::result::SdkError<
898 crate::operation::describe_storage_system_resource_metrics::DescribeStorageSystemResourceMetricsError,
899 R,
900 >,
901 ) -> Self {
902 match err {
903 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
904 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
905 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
906 source: err.into(),
907 }),
908 }
909 }
910}
911impl From<crate::operation::describe_storage_system_resource_metrics::DescribeStorageSystemResourceMetricsError> for Error {
912 fn from(err: crate::operation::describe_storage_system_resource_metrics::DescribeStorageSystemResourceMetricsError) -> Self {
913 match err {
914 crate::operation::describe_storage_system_resource_metrics::DescribeStorageSystemResourceMetricsError::InternalException(inner) => {
915 Error::InternalException(inner)
916 }
917 crate::operation::describe_storage_system_resource_metrics::DescribeStorageSystemResourceMetricsError::InvalidRequestException(inner) => {
918 Error::InvalidRequestException(inner)
919 }
920 crate::operation::describe_storage_system_resource_metrics::DescribeStorageSystemResourceMetricsError::Unhandled(inner) => {
921 Error::Unhandled(inner)
922 }
923 }
924 }
925}
926impl<R>
927 From<
928 ::aws_smithy_runtime_api::client::result::SdkError<
929 crate::operation::describe_storage_system_resources::DescribeStorageSystemResourcesError,
930 R,
931 >,
932 > for Error
933where
934 R: Send + Sync + std::fmt::Debug + 'static,
935{
936 fn from(
937 err: ::aws_smithy_runtime_api::client::result::SdkError<
938 crate::operation::describe_storage_system_resources::DescribeStorageSystemResourcesError,
939 R,
940 >,
941 ) -> Self {
942 match err {
943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
946 source: err.into(),
947 }),
948 }
949 }
950}
951impl From<crate::operation::describe_storage_system_resources::DescribeStorageSystemResourcesError> for Error {
952 fn from(err: crate::operation::describe_storage_system_resources::DescribeStorageSystemResourcesError) -> Self {
953 match err {
954 crate::operation::describe_storage_system_resources::DescribeStorageSystemResourcesError::InternalException(inner) => {
955 Error::InternalException(inner)
956 }
957 crate::operation::describe_storage_system_resources::DescribeStorageSystemResourcesError::InvalidRequestException(inner) => {
958 Error::InvalidRequestException(inner)
959 }
960 crate::operation::describe_storage_system_resources::DescribeStorageSystemResourcesError::Unhandled(inner) => Error::Unhandled(inner),
961 }
962 }
963}
964impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task::DescribeTaskError, R>> for Error
965where
966 R: Send + Sync + std::fmt::Debug + 'static,
967{
968 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task::DescribeTaskError, R>) -> Self {
969 match err {
970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
973 source: err.into(),
974 }),
975 }
976 }
977}
978impl From<crate::operation::describe_task::DescribeTaskError> for Error {
979 fn from(err: crate::operation::describe_task::DescribeTaskError) -> Self {
980 match err {
981 crate::operation::describe_task::DescribeTaskError::InternalException(inner) => Error::InternalException(inner),
982 crate::operation::describe_task::DescribeTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
983 crate::operation::describe_task::DescribeTaskError::Unhandled(inner) => Error::Unhandled(inner),
984 }
985 }
986}
987impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task_execution::DescribeTaskExecutionError, R>> for Error
988where
989 R: Send + Sync + std::fmt::Debug + 'static,
990{
991 fn from(
992 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task_execution::DescribeTaskExecutionError, R>,
993 ) -> Self {
994 match err {
995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
998 source: err.into(),
999 }),
1000 }
1001 }
1002}
1003impl From<crate::operation::describe_task_execution::DescribeTaskExecutionError> for Error {
1004 fn from(err: crate::operation::describe_task_execution::DescribeTaskExecutionError) -> Self {
1005 match err {
1006 crate::operation::describe_task_execution::DescribeTaskExecutionError::InternalException(inner) => Error::InternalException(inner),
1007 crate::operation::describe_task_execution::DescribeTaskExecutionError::InvalidRequestException(inner) => {
1008 Error::InvalidRequestException(inner)
1009 }
1010 crate::operation::describe_task_execution::DescribeTaskExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1011 }
1012 }
1013}
1014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_recommendations::GenerateRecommendationsError, R>>
1015 for Error
1016where
1017 R: Send + Sync + std::fmt::Debug + 'static,
1018{
1019 fn from(
1020 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_recommendations::GenerateRecommendationsError, R>,
1021 ) -> Self {
1022 match err {
1023 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1024 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1025 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1026 source: err.into(),
1027 }),
1028 }
1029 }
1030}
1031impl From<crate::operation::generate_recommendations::GenerateRecommendationsError> for Error {
1032 fn from(err: crate::operation::generate_recommendations::GenerateRecommendationsError) -> Self {
1033 match err {
1034 crate::operation::generate_recommendations::GenerateRecommendationsError::InternalException(inner) => Error::InternalException(inner),
1035 crate::operation::generate_recommendations::GenerateRecommendationsError::InvalidRequestException(inner) => {
1036 Error::InvalidRequestException(inner)
1037 }
1038 crate::operation::generate_recommendations::GenerateRecommendationsError::Unhandled(inner) => Error::Unhandled(inner),
1039 }
1040 }
1041}
1042impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agents::ListAgentsError, R>> for Error
1043where
1044 R: Send + Sync + std::fmt::Debug + 'static,
1045{
1046 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agents::ListAgentsError, R>) -> Self {
1047 match err {
1048 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1049 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1050 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1051 source: err.into(),
1052 }),
1053 }
1054 }
1055}
1056impl From<crate::operation::list_agents::ListAgentsError> for Error {
1057 fn from(err: crate::operation::list_agents::ListAgentsError) -> Self {
1058 match err {
1059 crate::operation::list_agents::ListAgentsError::InternalException(inner) => Error::InternalException(inner),
1060 crate::operation::list_agents::ListAgentsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1061 crate::operation::list_agents::ListAgentsError::Unhandled(inner) => Error::Unhandled(inner),
1062 }
1063 }
1064}
1065impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_discovery_jobs::ListDiscoveryJobsError, R>> for Error
1066where
1067 R: Send + Sync + std::fmt::Debug + 'static,
1068{
1069 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_discovery_jobs::ListDiscoveryJobsError, R>) -> Self {
1070 match err {
1071 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1072 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1073 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1074 source: err.into(),
1075 }),
1076 }
1077 }
1078}
1079impl From<crate::operation::list_discovery_jobs::ListDiscoveryJobsError> for Error {
1080 fn from(err: crate::operation::list_discovery_jobs::ListDiscoveryJobsError) -> Self {
1081 match err {
1082 crate::operation::list_discovery_jobs::ListDiscoveryJobsError::InternalException(inner) => Error::InternalException(inner),
1083 crate::operation::list_discovery_jobs::ListDiscoveryJobsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1084 crate::operation::list_discovery_jobs::ListDiscoveryJobsError::Unhandled(inner) => Error::Unhandled(inner),
1085 }
1086 }
1087}
1088impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_locations::ListLocationsError, R>> for Error
1089where
1090 R: Send + Sync + std::fmt::Debug + 'static,
1091{
1092 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_locations::ListLocationsError, R>) -> Self {
1093 match err {
1094 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1095 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1096 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1097 source: err.into(),
1098 }),
1099 }
1100 }
1101}
1102impl From<crate::operation::list_locations::ListLocationsError> for Error {
1103 fn from(err: crate::operation::list_locations::ListLocationsError) -> Self {
1104 match err {
1105 crate::operation::list_locations::ListLocationsError::InternalException(inner) => Error::InternalException(inner),
1106 crate::operation::list_locations::ListLocationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1107 crate::operation::list_locations::ListLocationsError::Unhandled(inner) => Error::Unhandled(inner),
1108 }
1109 }
1110}
1111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_storage_systems::ListStorageSystemsError, R>> for Error
1112where
1113 R: Send + Sync + std::fmt::Debug + 'static,
1114{
1115 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_storage_systems::ListStorageSystemsError, R>) -> Self {
1116 match err {
1117 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1118 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1119 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1120 source: err.into(),
1121 }),
1122 }
1123 }
1124}
1125impl From<crate::operation::list_storage_systems::ListStorageSystemsError> for Error {
1126 fn from(err: crate::operation::list_storage_systems::ListStorageSystemsError) -> Self {
1127 match err {
1128 crate::operation::list_storage_systems::ListStorageSystemsError::InternalException(inner) => Error::InternalException(inner),
1129 crate::operation::list_storage_systems::ListStorageSystemsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1130 crate::operation::list_storage_systems::ListStorageSystemsError::Unhandled(inner) => Error::Unhandled(inner),
1131 }
1132 }
1133}
1134impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1135where
1136 R: Send + Sync + std::fmt::Debug + 'static,
1137{
1138 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1139 match err {
1140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1143 source: err.into(),
1144 }),
1145 }
1146 }
1147}
1148impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1149 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1150 match err {
1151 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalException(inner) => Error::InternalException(inner),
1152 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
1153 Error::InvalidRequestException(inner)
1154 }
1155 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1156 }
1157 }
1158}
1159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_task_executions::ListTaskExecutionsError, R>> for Error
1160where
1161 R: Send + Sync + std::fmt::Debug + 'static,
1162{
1163 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_task_executions::ListTaskExecutionsError, R>) -> Self {
1164 match err {
1165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1168 source: err.into(),
1169 }),
1170 }
1171 }
1172}
1173impl From<crate::operation::list_task_executions::ListTaskExecutionsError> for Error {
1174 fn from(err: crate::operation::list_task_executions::ListTaskExecutionsError) -> Self {
1175 match err {
1176 crate::operation::list_task_executions::ListTaskExecutionsError::InternalException(inner) => Error::InternalException(inner),
1177 crate::operation::list_task_executions::ListTaskExecutionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1178 crate::operation::list_task_executions::ListTaskExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
1179 }
1180 }
1181}
1182impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>> for Error
1183where
1184 R: Send + Sync + std::fmt::Debug + 'static,
1185{
1186 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>) -> Self {
1187 match err {
1188 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1189 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1190 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1191 source: err.into(),
1192 }),
1193 }
1194 }
1195}
1196impl From<crate::operation::list_tasks::ListTasksError> for Error {
1197 fn from(err: crate::operation::list_tasks::ListTasksError) -> Self {
1198 match err {
1199 crate::operation::list_tasks::ListTasksError::InternalException(inner) => Error::InternalException(inner),
1200 crate::operation::list_tasks::ListTasksError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1201 crate::operation::list_tasks::ListTasksError::Unhandled(inner) => Error::Unhandled(inner),
1202 }
1203 }
1204}
1205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_storage_system::RemoveStorageSystemError, R>> for Error
1206where
1207 R: Send + Sync + std::fmt::Debug + 'static,
1208{
1209 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_storage_system::RemoveStorageSystemError, R>) -> Self {
1210 match err {
1211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1214 source: err.into(),
1215 }),
1216 }
1217 }
1218}
1219impl From<crate::operation::remove_storage_system::RemoveStorageSystemError> for Error {
1220 fn from(err: crate::operation::remove_storage_system::RemoveStorageSystemError) -> Self {
1221 match err {
1222 crate::operation::remove_storage_system::RemoveStorageSystemError::InternalException(inner) => Error::InternalException(inner),
1223 crate::operation::remove_storage_system::RemoveStorageSystemError::InvalidRequestException(inner) => {
1224 Error::InvalidRequestException(inner)
1225 }
1226 crate::operation::remove_storage_system::RemoveStorageSystemError::Unhandled(inner) => Error::Unhandled(inner),
1227 }
1228 }
1229}
1230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_discovery_job::StartDiscoveryJobError, R>> for Error
1231where
1232 R: Send + Sync + std::fmt::Debug + 'static,
1233{
1234 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_discovery_job::StartDiscoveryJobError, R>) -> Self {
1235 match err {
1236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1239 source: err.into(),
1240 }),
1241 }
1242 }
1243}
1244impl From<crate::operation::start_discovery_job::StartDiscoveryJobError> for Error {
1245 fn from(err: crate::operation::start_discovery_job::StartDiscoveryJobError) -> Self {
1246 match err {
1247 crate::operation::start_discovery_job::StartDiscoveryJobError::InternalException(inner) => Error::InternalException(inner),
1248 crate::operation::start_discovery_job::StartDiscoveryJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1249 crate::operation::start_discovery_job::StartDiscoveryJobError::Unhandled(inner) => Error::Unhandled(inner),
1250 }
1251 }
1252}
1253impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task_execution::StartTaskExecutionError, R>> for Error
1254where
1255 R: Send + Sync + std::fmt::Debug + 'static,
1256{
1257 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task_execution::StartTaskExecutionError, R>) -> Self {
1258 match err {
1259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1262 source: err.into(),
1263 }),
1264 }
1265 }
1266}
1267impl From<crate::operation::start_task_execution::StartTaskExecutionError> for Error {
1268 fn from(err: crate::operation::start_task_execution::StartTaskExecutionError) -> Self {
1269 match err {
1270 crate::operation::start_task_execution::StartTaskExecutionError::InternalException(inner) => Error::InternalException(inner),
1271 crate::operation::start_task_execution::StartTaskExecutionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1272 crate::operation::start_task_execution::StartTaskExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1273 }
1274 }
1275}
1276impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_discovery_job::StopDiscoveryJobError, R>> for Error
1277where
1278 R: Send + Sync + std::fmt::Debug + 'static,
1279{
1280 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_discovery_job::StopDiscoveryJobError, R>) -> Self {
1281 match err {
1282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1285 source: err.into(),
1286 }),
1287 }
1288 }
1289}
1290impl From<crate::operation::stop_discovery_job::StopDiscoveryJobError> for Error {
1291 fn from(err: crate::operation::stop_discovery_job::StopDiscoveryJobError) -> Self {
1292 match err {
1293 crate::operation::stop_discovery_job::StopDiscoveryJobError::InternalException(inner) => Error::InternalException(inner),
1294 crate::operation::stop_discovery_job::StopDiscoveryJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1295 crate::operation::stop_discovery_job::StopDiscoveryJobError::Unhandled(inner) => Error::Unhandled(inner),
1296 }
1297 }
1298}
1299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1300where
1301 R: Send + Sync + std::fmt::Debug + 'static,
1302{
1303 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1304 match err {
1305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1308 source: err.into(),
1309 }),
1310 }
1311 }
1312}
1313impl From<crate::operation::tag_resource::TagResourceError> for Error {
1314 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1315 match err {
1316 crate::operation::tag_resource::TagResourceError::InternalException(inner) => Error::InternalException(inner),
1317 crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1318 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1319 }
1320 }
1321}
1322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, 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::untag_resource::UntagResourceError, 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::untag_resource::UntagResourceError> for Error {
1337 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1338 match err {
1339 crate::operation::untag_resource::UntagResourceError::InternalException(inner) => Error::InternalException(inner),
1340 crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1341 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1342 }
1343 }
1344}
1345impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent::UpdateAgentError, R>> for Error
1346where
1347 R: Send + Sync + std::fmt::Debug + 'static,
1348{
1349 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent::UpdateAgentError, R>) -> Self {
1350 match err {
1351 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1352 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1353 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1354 source: err.into(),
1355 }),
1356 }
1357 }
1358}
1359impl From<crate::operation::update_agent::UpdateAgentError> for Error {
1360 fn from(err: crate::operation::update_agent::UpdateAgentError) -> Self {
1361 match err {
1362 crate::operation::update_agent::UpdateAgentError::InternalException(inner) => Error::InternalException(inner),
1363 crate::operation::update_agent::UpdateAgentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1364 crate::operation::update_agent::UpdateAgentError::Unhandled(inner) => Error::Unhandled(inner),
1365 }
1366 }
1367}
1368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_discovery_job::UpdateDiscoveryJobError, R>> for Error
1369where
1370 R: Send + Sync + std::fmt::Debug + 'static,
1371{
1372 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_discovery_job::UpdateDiscoveryJobError, R>) -> Self {
1373 match err {
1374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1377 source: err.into(),
1378 }),
1379 }
1380 }
1381}
1382impl From<crate::operation::update_discovery_job::UpdateDiscoveryJobError> for Error {
1383 fn from(err: crate::operation::update_discovery_job::UpdateDiscoveryJobError) -> Self {
1384 match err {
1385 crate::operation::update_discovery_job::UpdateDiscoveryJobError::InternalException(inner) => Error::InternalException(inner),
1386 crate::operation::update_discovery_job::UpdateDiscoveryJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1387 crate::operation::update_discovery_job::UpdateDiscoveryJobError::Unhandled(inner) => Error::Unhandled(inner),
1388 }
1389 }
1390}
1391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError, R>>
1392 for Error
1393where
1394 R: Send + Sync + std::fmt::Debug + 'static,
1395{
1396 fn from(
1397 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError, R>,
1398 ) -> Self {
1399 match err {
1400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1403 source: err.into(),
1404 }),
1405 }
1406 }
1407}
1408impl From<crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError> for Error {
1409 fn from(err: crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError) -> Self {
1410 match err {
1411 crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError::InternalException(inner) => Error::InternalException(inner),
1412 crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError::InvalidRequestException(inner) => {
1413 Error::InvalidRequestException(inner)
1414 }
1415 crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError::Unhandled(inner) => Error::Unhandled(inner),
1416 }
1417 }
1418}
1419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_efs::UpdateLocationEfsError, R>> for Error
1420where
1421 R: Send + Sync + std::fmt::Debug + 'static,
1422{
1423 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_efs::UpdateLocationEfsError, R>) -> Self {
1424 match err {
1425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1428 source: err.into(),
1429 }),
1430 }
1431 }
1432}
1433impl From<crate::operation::update_location_efs::UpdateLocationEfsError> for Error {
1434 fn from(err: crate::operation::update_location_efs::UpdateLocationEfsError) -> Self {
1435 match err {
1436 crate::operation::update_location_efs::UpdateLocationEfsError::InternalException(inner) => Error::InternalException(inner),
1437 crate::operation::update_location_efs::UpdateLocationEfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1438 crate::operation::update_location_efs::UpdateLocationEfsError::Unhandled(inner) => Error::Unhandled(inner),
1439 }
1440 }
1441}
1442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError, R>>
1443 for Error
1444where
1445 R: Send + Sync + std::fmt::Debug + 'static,
1446{
1447 fn from(
1448 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError, R>,
1449 ) -> Self {
1450 match err {
1451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1454 source: err.into(),
1455 }),
1456 }
1457 }
1458}
1459impl From<crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError> for Error {
1460 fn from(err: crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError) -> Self {
1461 match err {
1462 crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError::InternalException(inner) => Error::InternalException(inner),
1463 crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError::InvalidRequestException(inner) => {
1464 Error::InvalidRequestException(inner)
1465 }
1466 crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError::Unhandled(inner) => Error::Unhandled(inner),
1467 }
1468 }
1469}
1470impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError, R>>
1471 for Error
1472where
1473 R: Send + Sync + std::fmt::Debug + 'static,
1474{
1475 fn from(
1476 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError, R>,
1477 ) -> Self {
1478 match err {
1479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1482 source: err.into(),
1483 }),
1484 }
1485 }
1486}
1487impl From<crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError> for Error {
1488 fn from(err: crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError) -> Self {
1489 match err {
1490 crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError::InternalException(inner) => Error::InternalException(inner),
1491 crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError::InvalidRequestException(inner) => {
1492 Error::InvalidRequestException(inner)
1493 }
1494 crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError::Unhandled(inner) => Error::Unhandled(inner),
1495 }
1496 }
1497}
1498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError, R>>
1499 for Error
1500where
1501 R: Send + Sync + std::fmt::Debug + 'static,
1502{
1503 fn from(
1504 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError, R>,
1505 ) -> Self {
1506 match err {
1507 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1508 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1509 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1510 source: err.into(),
1511 }),
1512 }
1513 }
1514}
1515impl From<crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError> for Error {
1516 fn from(err: crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError) -> Self {
1517 match err {
1518 crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError::InternalException(inner) => {
1519 Error::InternalException(inner)
1520 }
1521 crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError::InvalidRequestException(inner) => {
1522 Error::InvalidRequestException(inner)
1523 }
1524 crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError::Unhandled(inner) => Error::Unhandled(inner),
1525 }
1526 }
1527}
1528impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError, R>>
1529 for Error
1530where
1531 R: Send + Sync + std::fmt::Debug + 'static,
1532{
1533 fn from(
1534 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError, R>,
1535 ) -> Self {
1536 match err {
1537 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1538 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1539 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1540 source: err.into(),
1541 }),
1542 }
1543 }
1544}
1545impl From<crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError> for Error {
1546 fn from(err: crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError) -> Self {
1547 match err {
1548 crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError::InternalException(inner) => Error::InternalException(inner),
1549 crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError::InvalidRequestException(inner) => {
1550 Error::InvalidRequestException(inner)
1551 }
1552 crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError::Unhandled(inner) => Error::Unhandled(inner),
1553 }
1554 }
1555}
1556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_hdfs::UpdateLocationHdfsError, R>> for Error
1557where
1558 R: Send + Sync + std::fmt::Debug + 'static,
1559{
1560 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_hdfs::UpdateLocationHdfsError, R>) -> Self {
1561 match err {
1562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1565 source: err.into(),
1566 }),
1567 }
1568 }
1569}
1570impl From<crate::operation::update_location_hdfs::UpdateLocationHdfsError> for Error {
1571 fn from(err: crate::operation::update_location_hdfs::UpdateLocationHdfsError) -> Self {
1572 match err {
1573 crate::operation::update_location_hdfs::UpdateLocationHdfsError::InternalException(inner) => Error::InternalException(inner),
1574 crate::operation::update_location_hdfs::UpdateLocationHdfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1575 crate::operation::update_location_hdfs::UpdateLocationHdfsError::Unhandled(inner) => Error::Unhandled(inner),
1576 }
1577 }
1578}
1579impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_nfs::UpdateLocationNfsError, R>> for Error
1580where
1581 R: Send + Sync + std::fmt::Debug + 'static,
1582{
1583 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_nfs::UpdateLocationNfsError, R>) -> Self {
1584 match err {
1585 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1586 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1587 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1588 source: err.into(),
1589 }),
1590 }
1591 }
1592}
1593impl From<crate::operation::update_location_nfs::UpdateLocationNfsError> for Error {
1594 fn from(err: crate::operation::update_location_nfs::UpdateLocationNfsError) -> Self {
1595 match err {
1596 crate::operation::update_location_nfs::UpdateLocationNfsError::InternalException(inner) => Error::InternalException(inner),
1597 crate::operation::update_location_nfs::UpdateLocationNfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1598 crate::operation::update_location_nfs::UpdateLocationNfsError::Unhandled(inner) => Error::Unhandled(inner),
1599 }
1600 }
1601}
1602impl<R>
1603 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_object_storage::UpdateLocationObjectStorageError, R>>
1604 for Error
1605where
1606 R: Send + Sync + std::fmt::Debug + 'static,
1607{
1608 fn from(
1609 err: ::aws_smithy_runtime_api::client::result::SdkError<
1610 crate::operation::update_location_object_storage::UpdateLocationObjectStorageError,
1611 R,
1612 >,
1613 ) -> Self {
1614 match err {
1615 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1616 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1617 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1618 source: err.into(),
1619 }),
1620 }
1621 }
1622}
1623impl From<crate::operation::update_location_object_storage::UpdateLocationObjectStorageError> for Error {
1624 fn from(err: crate::operation::update_location_object_storage::UpdateLocationObjectStorageError) -> Self {
1625 match err {
1626 crate::operation::update_location_object_storage::UpdateLocationObjectStorageError::InternalException(inner) => {
1627 Error::InternalException(inner)
1628 }
1629 crate::operation::update_location_object_storage::UpdateLocationObjectStorageError::InvalidRequestException(inner) => {
1630 Error::InvalidRequestException(inner)
1631 }
1632 crate::operation::update_location_object_storage::UpdateLocationObjectStorageError::Unhandled(inner) => Error::Unhandled(inner),
1633 }
1634 }
1635}
1636impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_s3::UpdateLocationS3Error, R>> for Error
1637where
1638 R: Send + Sync + std::fmt::Debug + 'static,
1639{
1640 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_s3::UpdateLocationS3Error, R>) -> Self {
1641 match err {
1642 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1643 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1644 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1645 source: err.into(),
1646 }),
1647 }
1648 }
1649}
1650impl From<crate::operation::update_location_s3::UpdateLocationS3Error> for Error {
1651 fn from(err: crate::operation::update_location_s3::UpdateLocationS3Error) -> Self {
1652 match err {
1653 crate::operation::update_location_s3::UpdateLocationS3Error::InternalException(inner) => Error::InternalException(inner),
1654 crate::operation::update_location_s3::UpdateLocationS3Error::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1655 crate::operation::update_location_s3::UpdateLocationS3Error::Unhandled(inner) => Error::Unhandled(inner),
1656 }
1657 }
1658}
1659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_smb::UpdateLocationSmbError, R>> for Error
1660where
1661 R: Send + Sync + std::fmt::Debug + 'static,
1662{
1663 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_smb::UpdateLocationSmbError, R>) -> Self {
1664 match err {
1665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1668 source: err.into(),
1669 }),
1670 }
1671 }
1672}
1673impl From<crate::operation::update_location_smb::UpdateLocationSmbError> for Error {
1674 fn from(err: crate::operation::update_location_smb::UpdateLocationSmbError) -> Self {
1675 match err {
1676 crate::operation::update_location_smb::UpdateLocationSmbError::InternalException(inner) => Error::InternalException(inner),
1677 crate::operation::update_location_smb::UpdateLocationSmbError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1678 crate::operation::update_location_smb::UpdateLocationSmbError::Unhandled(inner) => Error::Unhandled(inner),
1679 }
1680 }
1681}
1682impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_storage_system::UpdateStorageSystemError, R>> for Error
1683where
1684 R: Send + Sync + std::fmt::Debug + 'static,
1685{
1686 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_storage_system::UpdateStorageSystemError, R>) -> Self {
1687 match err {
1688 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1689 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1690 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1691 source: err.into(),
1692 }),
1693 }
1694 }
1695}
1696impl From<crate::operation::update_storage_system::UpdateStorageSystemError> for Error {
1697 fn from(err: crate::operation::update_storage_system::UpdateStorageSystemError) -> Self {
1698 match err {
1699 crate::operation::update_storage_system::UpdateStorageSystemError::InternalException(inner) => Error::InternalException(inner),
1700 crate::operation::update_storage_system::UpdateStorageSystemError::InvalidRequestException(inner) => {
1701 Error::InvalidRequestException(inner)
1702 }
1703 crate::operation::update_storage_system::UpdateStorageSystemError::Unhandled(inner) => Error::Unhandled(inner),
1704 }
1705 }
1706}
1707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task::UpdateTaskError, R>> for Error
1708where
1709 R: Send + Sync + std::fmt::Debug + 'static,
1710{
1711 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task::UpdateTaskError, R>) -> Self {
1712 match err {
1713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1716 source: err.into(),
1717 }),
1718 }
1719 }
1720}
1721impl From<crate::operation::update_task::UpdateTaskError> for Error {
1722 fn from(err: crate::operation::update_task::UpdateTaskError) -> Self {
1723 match err {
1724 crate::operation::update_task::UpdateTaskError::InternalException(inner) => Error::InternalException(inner),
1725 crate::operation::update_task::UpdateTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1726 crate::operation::update_task::UpdateTaskError::Unhandled(inner) => Error::Unhandled(inner),
1727 }
1728 }
1729}
1730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task_execution::UpdateTaskExecutionError, R>> for Error
1731where
1732 R: Send + Sync + std::fmt::Debug + 'static,
1733{
1734 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task_execution::UpdateTaskExecutionError, R>) -> Self {
1735 match err {
1736 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1737 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1738 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1739 source: err.into(),
1740 }),
1741 }
1742 }
1743}
1744impl From<crate::operation::update_task_execution::UpdateTaskExecutionError> for Error {
1745 fn from(err: crate::operation::update_task_execution::UpdateTaskExecutionError) -> Self {
1746 match err {
1747 crate::operation::update_task_execution::UpdateTaskExecutionError::InternalException(inner) => Error::InternalException(inner),
1748 crate::operation::update_task_execution::UpdateTaskExecutionError::InvalidRequestException(inner) => {
1749 Error::InvalidRequestException(inner)
1750 }
1751 crate::operation::update_task_execution::UpdateTaskExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1752 }
1753 }
1754}
1755impl ::std::error::Error for Error {
1756 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1757 match self {
1758 Error::InternalException(inner) => inner.source(),
1759 Error::InvalidRequestException(inner) => inner.source(),
1760 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1761 }
1762 }
1763}
1764impl ::aws_types::request_id::RequestId for Error {
1765 fn request_id(&self) -> Option<&str> {
1766 match self {
1767 Self::InternalException(e) => e.request_id(),
1768 Self::InvalidRequestException(e) => e.request_id(),
1769 Self::Unhandled(e) => e.meta.request_id(),
1770 }
1771 }
1772}