aws_sdk_ecrpublic/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>The specified layer upload doesn't contain any layer parts.</p>
7    EmptyUploadException(crate::types::error::EmptyUploadException),
8    /// <p>The specified image has already been pushed, and there were no changes to the manifest or image tag after the last push.</p>
9    ImageAlreadyExistsException(crate::types::error::ImageAlreadyExistsException),
10    /// <p>The specified image digest doesn't match the digest that Amazon ECR calculated for the image.</p>
11    ImageDigestDoesNotMatchException(crate::types::error::ImageDigestDoesNotMatchException),
12    /// <p>The image requested doesn't exist in the specified repository.</p>
13    ImageNotFoundException(crate::types::error::ImageNotFoundException),
14    /// <p>The specified image is tagged with a tag that already exists. The repository is configured for tag immutability.</p>
15    ImageTagAlreadyExistsException(crate::types::error::ImageTagAlreadyExistsException),
16    /// <p>The layer digest calculation performed by Amazon ECR when the image layer doesn't match the digest specified.</p>
17    InvalidLayerException(crate::types::error::InvalidLayerException),
18    /// <p>The layer part size isn't valid, or the first byte specified isn't consecutive to the last byte of a previous layer part upload.</p>
19    InvalidLayerPartException(crate::types::error::InvalidLayerPartException),
20    /// <p>The specified parameter is invalid. Review the available parameters for the API request.</p>
21    InvalidParameterException(crate::types::error::InvalidParameterException),
22    /// <p>An invalid parameter has been specified. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.</p>
23    InvalidTagParameterException(crate::types::error::InvalidTagParameterException),
24    /// <p>The image layer already exists in the associated repository.</p>
25    LayerAlreadyExistsException(crate::types::error::LayerAlreadyExistsException),
26    /// <p>Layer parts must be at least 5 MiB in size.</p>
27    LayerPartTooSmallException(crate::types::error::LayerPartTooSmallException),
28    /// <p>The specified layers can't be found, or the specified layer isn't valid for this repository.</p>
29    LayersNotFoundException(crate::types::error::LayersNotFoundException),
30    /// <p>The operation didn't succeed because it would have exceeded a service limit for your account. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html">Amazon ECR Service Quotas</a> in the Amazon Elastic Container Registry User Guide.</p>
31    LimitExceededException(crate::types::error::LimitExceededException),
32    /// <p>The manifest list is referencing an image that doesn't exist.</p>
33    ReferencedImagesNotFoundException(crate::types::error::ReferencedImagesNotFoundException),
34    /// <p>The registry doesn't exist.</p>
35    RegistryNotFoundException(crate::types::error::RegistryNotFoundException),
36    /// <p>The specified repository already exists in the specified registry.</p>
37    RepositoryAlreadyExistsException(crate::types::error::RepositoryAlreadyExistsException),
38    /// <p>The repository catalog data doesn't exist.</p>
39    RepositoryCatalogDataNotFoundException(crate::types::error::RepositoryCatalogDataNotFoundException),
40    /// <p>The specified repository contains images. To delete a repository that contains images, you must force the deletion with the <code>force</code> parameter.</p>
41    RepositoryNotEmptyException(crate::types::error::RepositoryNotEmptyException),
42    /// <p>The specified repository can't be found. Check the spelling of the specified repository and ensure that you're performing operations on the correct registry.</p>
43    RepositoryNotFoundException(crate::types::error::RepositoryNotFoundException),
44    /// <p>The specified repository and registry combination doesn't have an associated repository policy.</p>
45    RepositoryPolicyNotFoundException(crate::types::error::RepositoryPolicyNotFoundException),
46    /// <p>These errors are usually caused by a server-side issue.</p>
47    ServerException(crate::types::error::ServerException),
48    /// <p>The list of tags on the repository is over the limit. The maximum number of tags that can be applied to a repository is 50.</p>
49    TooManyTagsException(crate::types::error::TooManyTagsException),
50    /// <p>The action isn't supported in this Region.</p>
51    UnsupportedCommandException(crate::types::error::UnsupportedCommandException),
52    /// <p>The upload can't be found, or the specified upload ID isn't valid for this repository.</p>
53    UploadNotFoundException(crate::types::error::UploadNotFoundException),
54    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
55    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
56    variable wildcard pattern and check `.code()`:
57     \
58    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
59     \
60    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
61    Unhandled(crate::error::sealed_unhandled::Unhandled),
62}
63impl ::std::fmt::Display for Error {
64    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
65        match self {
66            Error::EmptyUploadException(inner) => inner.fmt(f),
67            Error::ImageAlreadyExistsException(inner) => inner.fmt(f),
68            Error::ImageDigestDoesNotMatchException(inner) => inner.fmt(f),
69            Error::ImageNotFoundException(inner) => inner.fmt(f),
70            Error::ImageTagAlreadyExistsException(inner) => inner.fmt(f),
71            Error::InvalidLayerException(inner) => inner.fmt(f),
72            Error::InvalidLayerPartException(inner) => inner.fmt(f),
73            Error::InvalidParameterException(inner) => inner.fmt(f),
74            Error::InvalidTagParameterException(inner) => inner.fmt(f),
75            Error::LayerAlreadyExistsException(inner) => inner.fmt(f),
76            Error::LayerPartTooSmallException(inner) => inner.fmt(f),
77            Error::LayersNotFoundException(inner) => inner.fmt(f),
78            Error::LimitExceededException(inner) => inner.fmt(f),
79            Error::ReferencedImagesNotFoundException(inner) => inner.fmt(f),
80            Error::RegistryNotFoundException(inner) => inner.fmt(f),
81            Error::RepositoryAlreadyExistsException(inner) => inner.fmt(f),
82            Error::RepositoryCatalogDataNotFoundException(inner) => inner.fmt(f),
83            Error::RepositoryNotEmptyException(inner) => inner.fmt(f),
84            Error::RepositoryNotFoundException(inner) => inner.fmt(f),
85            Error::RepositoryPolicyNotFoundException(inner) => inner.fmt(f),
86            Error::ServerException(inner) => inner.fmt(f),
87            Error::TooManyTagsException(inner) => inner.fmt(f),
88            Error::UnsupportedCommandException(inner) => inner.fmt(f),
89            Error::UploadNotFoundException(inner) => inner.fmt(f),
90            Error::Unhandled(_) => {
91                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
92                    write!(f, "unhandled error ({code})")
93                } else {
94                    f.write_str("unhandled error")
95                }
96            }
97        }
98    }
99}
100impl From<::aws_smithy_types::error::operation::BuildError> for Error {
101    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
102        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
103            source: value.into(),
104            meta: ::std::default::Default::default(),
105        })
106    }
107}
108impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
109    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
110        match self {
111            Self::EmptyUploadException(inner) => inner.meta(),
112            Self::ImageAlreadyExistsException(inner) => inner.meta(),
113            Self::ImageDigestDoesNotMatchException(inner) => inner.meta(),
114            Self::ImageNotFoundException(inner) => inner.meta(),
115            Self::ImageTagAlreadyExistsException(inner) => inner.meta(),
116            Self::InvalidLayerException(inner) => inner.meta(),
117            Self::InvalidLayerPartException(inner) => inner.meta(),
118            Self::InvalidParameterException(inner) => inner.meta(),
119            Self::InvalidTagParameterException(inner) => inner.meta(),
120            Self::LayerAlreadyExistsException(inner) => inner.meta(),
121            Self::LayerPartTooSmallException(inner) => inner.meta(),
122            Self::LayersNotFoundException(inner) => inner.meta(),
123            Self::LimitExceededException(inner) => inner.meta(),
124            Self::ReferencedImagesNotFoundException(inner) => inner.meta(),
125            Self::RegistryNotFoundException(inner) => inner.meta(),
126            Self::RepositoryAlreadyExistsException(inner) => inner.meta(),
127            Self::RepositoryCatalogDataNotFoundException(inner) => inner.meta(),
128            Self::RepositoryNotEmptyException(inner) => inner.meta(),
129            Self::RepositoryNotFoundException(inner) => inner.meta(),
130            Self::RepositoryPolicyNotFoundException(inner) => inner.meta(),
131            Self::ServerException(inner) => inner.meta(),
132            Self::TooManyTagsException(inner) => inner.meta(),
133            Self::UnsupportedCommandException(inner) => inner.meta(),
134            Self::UploadNotFoundException(inner) => inner.meta(),
135            Self::Unhandled(inner) => &inner.meta,
136        }
137    }
138}
139impl<R>
140    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError, R>>
141    for Error
142where
143    R: Send + Sync + std::fmt::Debug + 'static,
144{
145    fn from(
146        err: ::aws_smithy_runtime_api::client::result::SdkError<
147            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError,
148            R,
149        >,
150    ) -> Self {
151        match err {
152            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
153            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
154                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
155                source: err.into(),
156            }),
157        }
158    }
159}
160impl From<crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError> for Error {
161    fn from(err: crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError) -> Self {
162        match err {
163            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError::InvalidParameterException(inner) => {
164                Error::InvalidParameterException(inner)
165            }
166            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError::RegistryNotFoundException(inner) => {
167                Error::RegistryNotFoundException(inner)
168            }
169            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError::RepositoryNotFoundException(inner) => {
170                Error::RepositoryNotFoundException(inner)
171            }
172            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError::ServerException(inner) => {
173                Error::ServerException(inner)
174            }
175            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError::UnsupportedCommandException(inner) => {
176                Error::UnsupportedCommandException(inner)
177            }
178            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError::Unhandled(inner) => Error::Unhandled(inner),
179        }
180    }
181}
182impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_image::BatchDeleteImageError, R>> for Error
183where
184    R: Send + Sync + std::fmt::Debug + 'static,
185{
186    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_image::BatchDeleteImageError, R>) -> Self {
187        match err {
188            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
189            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
190                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
191                source: err.into(),
192            }),
193        }
194    }
195}
196impl From<crate::operation::batch_delete_image::BatchDeleteImageError> for Error {
197    fn from(err: crate::operation::batch_delete_image::BatchDeleteImageError) -> Self {
198        match err {
199            crate::operation::batch_delete_image::BatchDeleteImageError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
200            crate::operation::batch_delete_image::BatchDeleteImageError::RepositoryNotFoundException(inner) => {
201                Error::RepositoryNotFoundException(inner)
202            }
203            crate::operation::batch_delete_image::BatchDeleteImageError::ServerException(inner) => Error::ServerException(inner),
204            crate::operation::batch_delete_image::BatchDeleteImageError::UnsupportedCommandException(inner) => {
205                Error::UnsupportedCommandException(inner)
206            }
207            crate::operation::batch_delete_image::BatchDeleteImageError::Unhandled(inner) => Error::Unhandled(inner),
208        }
209    }
210}
211impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_layer_upload::CompleteLayerUploadError, R>> for Error
212where
213    R: Send + Sync + std::fmt::Debug + 'static,
214{
215    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_layer_upload::CompleteLayerUploadError, R>) -> Self {
216        match err {
217            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
218            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
219                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
220                source: err.into(),
221            }),
222        }
223    }
224}
225impl From<crate::operation::complete_layer_upload::CompleteLayerUploadError> for Error {
226    fn from(err: crate::operation::complete_layer_upload::CompleteLayerUploadError) -> Self {
227        match err {
228            crate::operation::complete_layer_upload::CompleteLayerUploadError::EmptyUploadException(inner) => Error::EmptyUploadException(inner),
229            crate::operation::complete_layer_upload::CompleteLayerUploadError::InvalidLayerException(inner) => Error::InvalidLayerException(inner),
230            crate::operation::complete_layer_upload::CompleteLayerUploadError::InvalidParameterException(inner) => {
231                Error::InvalidParameterException(inner)
232            }
233            crate::operation::complete_layer_upload::CompleteLayerUploadError::LayerAlreadyExistsException(inner) => {
234                Error::LayerAlreadyExistsException(inner)
235            }
236            crate::operation::complete_layer_upload::CompleteLayerUploadError::LayerPartTooSmallException(inner) => {
237                Error::LayerPartTooSmallException(inner)
238            }
239            crate::operation::complete_layer_upload::CompleteLayerUploadError::RegistryNotFoundException(inner) => {
240                Error::RegistryNotFoundException(inner)
241            }
242            crate::operation::complete_layer_upload::CompleteLayerUploadError::RepositoryNotFoundException(inner) => {
243                Error::RepositoryNotFoundException(inner)
244            }
245            crate::operation::complete_layer_upload::CompleteLayerUploadError::ServerException(inner) => Error::ServerException(inner),
246            crate::operation::complete_layer_upload::CompleteLayerUploadError::UnsupportedCommandException(inner) => {
247                Error::UnsupportedCommandException(inner)
248            }
249            crate::operation::complete_layer_upload::CompleteLayerUploadError::UploadNotFoundException(inner) => {
250                Error::UploadNotFoundException(inner)
251            }
252            crate::operation::complete_layer_upload::CompleteLayerUploadError::Unhandled(inner) => Error::Unhandled(inner),
253        }
254    }
255}
256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_repository::CreateRepositoryError, R>> for Error
257where
258    R: Send + Sync + std::fmt::Debug + 'static,
259{
260    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_repository::CreateRepositoryError, R>) -> Self {
261        match err {
262            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
263            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
264                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
265                source: err.into(),
266            }),
267        }
268    }
269}
270impl From<crate::operation::create_repository::CreateRepositoryError> for Error {
271    fn from(err: crate::operation::create_repository::CreateRepositoryError) -> Self {
272        match err {
273            crate::operation::create_repository::CreateRepositoryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
274            crate::operation::create_repository::CreateRepositoryError::InvalidTagParameterException(inner) => {
275                Error::InvalidTagParameterException(inner)
276            }
277            crate::operation::create_repository::CreateRepositoryError::LimitExceededException(inner) => Error::LimitExceededException(inner),
278            crate::operation::create_repository::CreateRepositoryError::RepositoryAlreadyExistsException(inner) => {
279                Error::RepositoryAlreadyExistsException(inner)
280            }
281            crate::operation::create_repository::CreateRepositoryError::ServerException(inner) => Error::ServerException(inner),
282            crate::operation::create_repository::CreateRepositoryError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
283            crate::operation::create_repository::CreateRepositoryError::UnsupportedCommandException(inner) => {
284                Error::UnsupportedCommandException(inner)
285            }
286            crate::operation::create_repository::CreateRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
287        }
288    }
289}
290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository::DeleteRepositoryError, R>> for Error
291where
292    R: Send + Sync + std::fmt::Debug + 'static,
293{
294    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository::DeleteRepositoryError, R>) -> Self {
295        match err {
296            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
297            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
298                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
299                source: err.into(),
300            }),
301        }
302    }
303}
304impl From<crate::operation::delete_repository::DeleteRepositoryError> for Error {
305    fn from(err: crate::operation::delete_repository::DeleteRepositoryError) -> Self {
306        match err {
307            crate::operation::delete_repository::DeleteRepositoryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
308            crate::operation::delete_repository::DeleteRepositoryError::RepositoryNotEmptyException(inner) => {
309                Error::RepositoryNotEmptyException(inner)
310            }
311            crate::operation::delete_repository::DeleteRepositoryError::RepositoryNotFoundException(inner) => {
312                Error::RepositoryNotFoundException(inner)
313            }
314            crate::operation::delete_repository::DeleteRepositoryError::ServerException(inner) => Error::ServerException(inner),
315            crate::operation::delete_repository::DeleteRepositoryError::UnsupportedCommandException(inner) => {
316                Error::UnsupportedCommandException(inner)
317            }
318            crate::operation::delete_repository::DeleteRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
319        }
320    }
321}
322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository_policy::DeleteRepositoryPolicyError, R>> for Error
323where
324    R: Send + Sync + std::fmt::Debug + 'static,
325{
326    fn from(
327        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository_policy::DeleteRepositoryPolicyError, R>,
328    ) -> Self {
329        match err {
330            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
331            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
332                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
333                source: err.into(),
334            }),
335        }
336    }
337}
338impl From<crate::operation::delete_repository_policy::DeleteRepositoryPolicyError> for Error {
339    fn from(err: crate::operation::delete_repository_policy::DeleteRepositoryPolicyError) -> Self {
340        match err {
341            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::InvalidParameterException(inner) => {
342                Error::InvalidParameterException(inner)
343            }
344            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::RepositoryNotFoundException(inner) => {
345                Error::RepositoryNotFoundException(inner)
346            }
347            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::RepositoryPolicyNotFoundException(inner) => {
348                Error::RepositoryPolicyNotFoundException(inner)
349            }
350            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::ServerException(inner) => Error::ServerException(inner),
351            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::UnsupportedCommandException(inner) => {
352                Error::UnsupportedCommandException(inner)
353            }
354            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::Unhandled(inner) => Error::Unhandled(inner),
355        }
356    }
357}
358impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>> for Error
359where
360    R: Send + Sync + std::fmt::Debug + 'static,
361{
362    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>) -> Self {
363        match err {
364            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
365            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
366                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
367                source: err.into(),
368            }),
369        }
370    }
371}
372impl From<crate::operation::describe_images::DescribeImagesError> for Error {
373    fn from(err: crate::operation::describe_images::DescribeImagesError) -> Self {
374        match err {
375            crate::operation::describe_images::DescribeImagesError::ImageNotFoundException(inner) => Error::ImageNotFoundException(inner),
376            crate::operation::describe_images::DescribeImagesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
377            crate::operation::describe_images::DescribeImagesError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
378            crate::operation::describe_images::DescribeImagesError::ServerException(inner) => Error::ServerException(inner),
379            crate::operation::describe_images::DescribeImagesError::UnsupportedCommandException(inner) => Error::UnsupportedCommandException(inner),
380            crate::operation::describe_images::DescribeImagesError::Unhandled(inner) => Error::Unhandled(inner),
381        }
382    }
383}
384impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_tags::DescribeImageTagsError, R>> for Error
385where
386    R: Send + Sync + std::fmt::Debug + 'static,
387{
388    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_tags::DescribeImageTagsError, R>) -> Self {
389        match err {
390            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
391            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
392                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
393                source: err.into(),
394            }),
395        }
396    }
397}
398impl From<crate::operation::describe_image_tags::DescribeImageTagsError> for Error {
399    fn from(err: crate::operation::describe_image_tags::DescribeImageTagsError) -> Self {
400        match err {
401            crate::operation::describe_image_tags::DescribeImageTagsError::InvalidParameterException(inner) => {
402                Error::InvalidParameterException(inner)
403            }
404            crate::operation::describe_image_tags::DescribeImageTagsError::RepositoryNotFoundException(inner) => {
405                Error::RepositoryNotFoundException(inner)
406            }
407            crate::operation::describe_image_tags::DescribeImageTagsError::ServerException(inner) => Error::ServerException(inner),
408            crate::operation::describe_image_tags::DescribeImageTagsError::UnsupportedCommandException(inner) => {
409                Error::UnsupportedCommandException(inner)
410            }
411            crate::operation::describe_image_tags::DescribeImageTagsError::Unhandled(inner) => Error::Unhandled(inner),
412        }
413    }
414}
415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registries::DescribeRegistriesError, R>> for Error
416where
417    R: Send + Sync + std::fmt::Debug + 'static,
418{
419    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registries::DescribeRegistriesError, R>) -> Self {
420        match err {
421            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
422            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
423                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
424                source: err.into(),
425            }),
426        }
427    }
428}
429impl From<crate::operation::describe_registries::DescribeRegistriesError> for Error {
430    fn from(err: crate::operation::describe_registries::DescribeRegistriesError) -> Self {
431        match err {
432            crate::operation::describe_registries::DescribeRegistriesError::InvalidParameterException(inner) => {
433                Error::InvalidParameterException(inner)
434            }
435            crate::operation::describe_registries::DescribeRegistriesError::ServerException(inner) => Error::ServerException(inner),
436            crate::operation::describe_registries::DescribeRegistriesError::UnsupportedCommandException(inner) => {
437                Error::UnsupportedCommandException(inner)
438            }
439            crate::operation::describe_registries::DescribeRegistriesError::Unhandled(inner) => Error::Unhandled(inner),
440        }
441    }
442}
443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_repositories::DescribeRepositoriesError, R>> for Error
444where
445    R: Send + Sync + std::fmt::Debug + 'static,
446{
447    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_repositories::DescribeRepositoriesError, R>) -> Self {
448        match err {
449            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
450            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
451                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
452                source: err.into(),
453            }),
454        }
455    }
456}
457impl From<crate::operation::describe_repositories::DescribeRepositoriesError> for Error {
458    fn from(err: crate::operation::describe_repositories::DescribeRepositoriesError) -> Self {
459        match err {
460            crate::operation::describe_repositories::DescribeRepositoriesError::InvalidParameterException(inner) => {
461                Error::InvalidParameterException(inner)
462            }
463            crate::operation::describe_repositories::DescribeRepositoriesError::RepositoryNotFoundException(inner) => {
464                Error::RepositoryNotFoundException(inner)
465            }
466            crate::operation::describe_repositories::DescribeRepositoriesError::ServerException(inner) => Error::ServerException(inner),
467            crate::operation::describe_repositories::DescribeRepositoriesError::UnsupportedCommandException(inner) => {
468                Error::UnsupportedCommandException(inner)
469            }
470            crate::operation::describe_repositories::DescribeRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
471        }
472    }
473}
474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorization_token::GetAuthorizationTokenError, R>> for Error
475where
476    R: Send + Sync + std::fmt::Debug + 'static,
477{
478    fn from(
479        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorization_token::GetAuthorizationTokenError, R>,
480    ) -> Self {
481        match err {
482            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
483            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
484                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
485                source: err.into(),
486            }),
487        }
488    }
489}
490impl From<crate::operation::get_authorization_token::GetAuthorizationTokenError> for Error {
491    fn from(err: crate::operation::get_authorization_token::GetAuthorizationTokenError) -> Self {
492        match err {
493            crate::operation::get_authorization_token::GetAuthorizationTokenError::InvalidParameterException(inner) => {
494                Error::InvalidParameterException(inner)
495            }
496            crate::operation::get_authorization_token::GetAuthorizationTokenError::ServerException(inner) => Error::ServerException(inner),
497            crate::operation::get_authorization_token::GetAuthorizationTokenError::UnsupportedCommandException(inner) => {
498                Error::UnsupportedCommandException(inner)
499            }
500            crate::operation::get_authorization_token::GetAuthorizationTokenError::Unhandled(inner) => Error::Unhandled(inner),
501        }
502    }
503}
504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_registry_catalog_data::GetRegistryCatalogDataError, R>>
505    for Error
506where
507    R: Send + Sync + std::fmt::Debug + 'static,
508{
509    fn from(
510        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_registry_catalog_data::GetRegistryCatalogDataError, R>,
511    ) -> Self {
512        match err {
513            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
514            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
515                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
516                source: err.into(),
517            }),
518        }
519    }
520}
521impl From<crate::operation::get_registry_catalog_data::GetRegistryCatalogDataError> for Error {
522    fn from(err: crate::operation::get_registry_catalog_data::GetRegistryCatalogDataError) -> Self {
523        match err {
524            crate::operation::get_registry_catalog_data::GetRegistryCatalogDataError::ServerException(inner) => Error::ServerException(inner),
525            crate::operation::get_registry_catalog_data::GetRegistryCatalogDataError::UnsupportedCommandException(inner) => {
526                Error::UnsupportedCommandException(inner)
527            }
528            crate::operation::get_registry_catalog_data::GetRegistryCatalogDataError::Unhandled(inner) => Error::Unhandled(inner),
529        }
530    }
531}
532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_catalog_data::GetRepositoryCatalogDataError, R>>
533    for Error
534where
535    R: Send + Sync + std::fmt::Debug + 'static,
536{
537    fn from(
538        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_catalog_data::GetRepositoryCatalogDataError, R>,
539    ) -> Self {
540        match err {
541            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
542            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
543                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
544                source: err.into(),
545            }),
546        }
547    }
548}
549impl From<crate::operation::get_repository_catalog_data::GetRepositoryCatalogDataError> for Error {
550    fn from(err: crate::operation::get_repository_catalog_data::GetRepositoryCatalogDataError) -> Self {
551        match err {
552            crate::operation::get_repository_catalog_data::GetRepositoryCatalogDataError::InvalidParameterException(inner) => {
553                Error::InvalidParameterException(inner)
554            }
555            crate::operation::get_repository_catalog_data::GetRepositoryCatalogDataError::RepositoryCatalogDataNotFoundException(inner) => {
556                Error::RepositoryCatalogDataNotFoundException(inner)
557            }
558            crate::operation::get_repository_catalog_data::GetRepositoryCatalogDataError::RepositoryNotFoundException(inner) => {
559                Error::RepositoryNotFoundException(inner)
560            }
561            crate::operation::get_repository_catalog_data::GetRepositoryCatalogDataError::ServerException(inner) => Error::ServerException(inner),
562            crate::operation::get_repository_catalog_data::GetRepositoryCatalogDataError::UnsupportedCommandException(inner) => {
563                Error::UnsupportedCommandException(inner)
564            }
565            crate::operation::get_repository_catalog_data::GetRepositoryCatalogDataError::Unhandled(inner) => Error::Unhandled(inner),
566        }
567    }
568}
569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_policy::GetRepositoryPolicyError, R>> for Error
570where
571    R: Send + Sync + std::fmt::Debug + 'static,
572{
573    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_policy::GetRepositoryPolicyError, R>) -> Self {
574        match err {
575            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
576            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
577                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
578                source: err.into(),
579            }),
580        }
581    }
582}
583impl From<crate::operation::get_repository_policy::GetRepositoryPolicyError> for Error {
584    fn from(err: crate::operation::get_repository_policy::GetRepositoryPolicyError) -> Self {
585        match err {
586            crate::operation::get_repository_policy::GetRepositoryPolicyError::InvalidParameterException(inner) => {
587                Error::InvalidParameterException(inner)
588            }
589            crate::operation::get_repository_policy::GetRepositoryPolicyError::RepositoryNotFoundException(inner) => {
590                Error::RepositoryNotFoundException(inner)
591            }
592            crate::operation::get_repository_policy::GetRepositoryPolicyError::RepositoryPolicyNotFoundException(inner) => {
593                Error::RepositoryPolicyNotFoundException(inner)
594            }
595            crate::operation::get_repository_policy::GetRepositoryPolicyError::ServerException(inner) => Error::ServerException(inner),
596            crate::operation::get_repository_policy::GetRepositoryPolicyError::UnsupportedCommandException(inner) => {
597                Error::UnsupportedCommandException(inner)
598            }
599            crate::operation::get_repository_policy::GetRepositoryPolicyError::Unhandled(inner) => Error::Unhandled(inner),
600        }
601    }
602}
603impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::initiate_layer_upload::InitiateLayerUploadError, R>> for Error
604where
605    R: Send + Sync + std::fmt::Debug + 'static,
606{
607    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::initiate_layer_upload::InitiateLayerUploadError, R>) -> Self {
608        match err {
609            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
610            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
611                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
612                source: err.into(),
613            }),
614        }
615    }
616}
617impl From<crate::operation::initiate_layer_upload::InitiateLayerUploadError> for Error {
618    fn from(err: crate::operation::initiate_layer_upload::InitiateLayerUploadError) -> Self {
619        match err {
620            crate::operation::initiate_layer_upload::InitiateLayerUploadError::InvalidParameterException(inner) => {
621                Error::InvalidParameterException(inner)
622            }
623            crate::operation::initiate_layer_upload::InitiateLayerUploadError::RegistryNotFoundException(inner) => {
624                Error::RegistryNotFoundException(inner)
625            }
626            crate::operation::initiate_layer_upload::InitiateLayerUploadError::RepositoryNotFoundException(inner) => {
627                Error::RepositoryNotFoundException(inner)
628            }
629            crate::operation::initiate_layer_upload::InitiateLayerUploadError::ServerException(inner) => Error::ServerException(inner),
630            crate::operation::initiate_layer_upload::InitiateLayerUploadError::UnsupportedCommandException(inner) => {
631                Error::UnsupportedCommandException(inner)
632            }
633            crate::operation::initiate_layer_upload::InitiateLayerUploadError::Unhandled(inner) => Error::Unhandled(inner),
634        }
635    }
636}
637impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
638where
639    R: Send + Sync + std::fmt::Debug + 'static,
640{
641    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
642        match err {
643            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
644            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
645                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
646                source: err.into(),
647            }),
648        }
649    }
650}
651impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
652    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
653        match err {
654            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => {
655                Error::InvalidParameterException(inner)
656            }
657            crate::operation::list_tags_for_resource::ListTagsForResourceError::RepositoryNotFoundException(inner) => {
658                Error::RepositoryNotFoundException(inner)
659            }
660            crate::operation::list_tags_for_resource::ListTagsForResourceError::ServerException(inner) => Error::ServerException(inner),
661            crate::operation::list_tags_for_resource::ListTagsForResourceError::UnsupportedCommandException(inner) => {
662                Error::UnsupportedCommandException(inner)
663            }
664            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
665        }
666    }
667}
668impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_image::PutImageError, R>> for Error
669where
670    R: Send + Sync + std::fmt::Debug + 'static,
671{
672    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_image::PutImageError, R>) -> Self {
673        match err {
674            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
675            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
676                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
677                source: err.into(),
678            }),
679        }
680    }
681}
682impl From<crate::operation::put_image::PutImageError> for Error {
683    fn from(err: crate::operation::put_image::PutImageError) -> Self {
684        match err {
685            crate::operation::put_image::PutImageError::ImageAlreadyExistsException(inner) => Error::ImageAlreadyExistsException(inner),
686            crate::operation::put_image::PutImageError::ImageDigestDoesNotMatchException(inner) => Error::ImageDigestDoesNotMatchException(inner),
687            crate::operation::put_image::PutImageError::ImageTagAlreadyExistsException(inner) => Error::ImageTagAlreadyExistsException(inner),
688            crate::operation::put_image::PutImageError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
689            crate::operation::put_image::PutImageError::LayersNotFoundException(inner) => Error::LayersNotFoundException(inner),
690            crate::operation::put_image::PutImageError::LimitExceededException(inner) => Error::LimitExceededException(inner),
691            crate::operation::put_image::PutImageError::ReferencedImagesNotFoundException(inner) => Error::ReferencedImagesNotFoundException(inner),
692            crate::operation::put_image::PutImageError::RegistryNotFoundException(inner) => Error::RegistryNotFoundException(inner),
693            crate::operation::put_image::PutImageError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
694            crate::operation::put_image::PutImageError::ServerException(inner) => Error::ServerException(inner),
695            crate::operation::put_image::PutImageError::UnsupportedCommandException(inner) => Error::UnsupportedCommandException(inner),
696            crate::operation::put_image::PutImageError::Unhandled(inner) => Error::Unhandled(inner),
697        }
698    }
699}
700impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_registry_catalog_data::PutRegistryCatalogDataError, R>>
701    for Error
702where
703    R: Send + Sync + std::fmt::Debug + 'static,
704{
705    fn from(
706        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_registry_catalog_data::PutRegistryCatalogDataError, R>,
707    ) -> Self {
708        match err {
709            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
710            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
711                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
712                source: err.into(),
713            }),
714        }
715    }
716}
717impl From<crate::operation::put_registry_catalog_data::PutRegistryCatalogDataError> for Error {
718    fn from(err: crate::operation::put_registry_catalog_data::PutRegistryCatalogDataError) -> Self {
719        match err {
720            crate::operation::put_registry_catalog_data::PutRegistryCatalogDataError::InvalidParameterException(inner) => {
721                Error::InvalidParameterException(inner)
722            }
723            crate::operation::put_registry_catalog_data::PutRegistryCatalogDataError::ServerException(inner) => Error::ServerException(inner),
724            crate::operation::put_registry_catalog_data::PutRegistryCatalogDataError::UnsupportedCommandException(inner) => {
725                Error::UnsupportedCommandException(inner)
726            }
727            crate::operation::put_registry_catalog_data::PutRegistryCatalogDataError::Unhandled(inner) => Error::Unhandled(inner),
728        }
729    }
730}
731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_repository_catalog_data::PutRepositoryCatalogDataError, R>>
732    for Error
733where
734    R: Send + Sync + std::fmt::Debug + 'static,
735{
736    fn from(
737        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_repository_catalog_data::PutRepositoryCatalogDataError, R>,
738    ) -> Self {
739        match err {
740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
743                source: err.into(),
744            }),
745        }
746    }
747}
748impl From<crate::operation::put_repository_catalog_data::PutRepositoryCatalogDataError> for Error {
749    fn from(err: crate::operation::put_repository_catalog_data::PutRepositoryCatalogDataError) -> Self {
750        match err {
751            crate::operation::put_repository_catalog_data::PutRepositoryCatalogDataError::InvalidParameterException(inner) => {
752                Error::InvalidParameterException(inner)
753            }
754            crate::operation::put_repository_catalog_data::PutRepositoryCatalogDataError::RepositoryNotFoundException(inner) => {
755                Error::RepositoryNotFoundException(inner)
756            }
757            crate::operation::put_repository_catalog_data::PutRepositoryCatalogDataError::ServerException(inner) => Error::ServerException(inner),
758            crate::operation::put_repository_catalog_data::PutRepositoryCatalogDataError::UnsupportedCommandException(inner) => {
759                Error::UnsupportedCommandException(inner)
760            }
761            crate::operation::put_repository_catalog_data::PutRepositoryCatalogDataError::Unhandled(inner) => Error::Unhandled(inner),
762        }
763    }
764}
765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_repository_policy::SetRepositoryPolicyError, R>> for Error
766where
767    R: Send + Sync + std::fmt::Debug + 'static,
768{
769    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_repository_policy::SetRepositoryPolicyError, R>) -> Self {
770        match err {
771            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
772            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
773                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
774                source: err.into(),
775            }),
776        }
777    }
778}
779impl From<crate::operation::set_repository_policy::SetRepositoryPolicyError> for Error {
780    fn from(err: crate::operation::set_repository_policy::SetRepositoryPolicyError) -> Self {
781        match err {
782            crate::operation::set_repository_policy::SetRepositoryPolicyError::InvalidParameterException(inner) => {
783                Error::InvalidParameterException(inner)
784            }
785            crate::operation::set_repository_policy::SetRepositoryPolicyError::RepositoryNotFoundException(inner) => {
786                Error::RepositoryNotFoundException(inner)
787            }
788            crate::operation::set_repository_policy::SetRepositoryPolicyError::ServerException(inner) => Error::ServerException(inner),
789            crate::operation::set_repository_policy::SetRepositoryPolicyError::UnsupportedCommandException(inner) => {
790                Error::UnsupportedCommandException(inner)
791            }
792            crate::operation::set_repository_policy::SetRepositoryPolicyError::Unhandled(inner) => Error::Unhandled(inner),
793        }
794    }
795}
796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
797where
798    R: Send + Sync + std::fmt::Debug + 'static,
799{
800    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
801        match err {
802            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
803            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
804                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
805                source: err.into(),
806            }),
807        }
808    }
809}
810impl From<crate::operation::tag_resource::TagResourceError> for Error {
811    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
812        match err {
813            crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
814            crate::operation::tag_resource::TagResourceError::InvalidTagParameterException(inner) => Error::InvalidTagParameterException(inner),
815            crate::operation::tag_resource::TagResourceError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
816            crate::operation::tag_resource::TagResourceError::ServerException(inner) => Error::ServerException(inner),
817            crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
818            crate::operation::tag_resource::TagResourceError::UnsupportedCommandException(inner) => Error::UnsupportedCommandException(inner),
819            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
820        }
821    }
822}
823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
824where
825    R: Send + Sync + std::fmt::Debug + 'static,
826{
827    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
828        match err {
829            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
830            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
831                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
832                source: err.into(),
833            }),
834        }
835    }
836}
837impl From<crate::operation::untag_resource::UntagResourceError> for Error {
838    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
839        match err {
840            crate::operation::untag_resource::UntagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
841            crate::operation::untag_resource::UntagResourceError::InvalidTagParameterException(inner) => Error::InvalidTagParameterException(inner),
842            crate::operation::untag_resource::UntagResourceError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
843            crate::operation::untag_resource::UntagResourceError::ServerException(inner) => Error::ServerException(inner),
844            crate::operation::untag_resource::UntagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
845            crate::operation::untag_resource::UntagResourceError::UnsupportedCommandException(inner) => Error::UnsupportedCommandException(inner),
846            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
847        }
848    }
849}
850impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upload_layer_part::UploadLayerPartError, R>> for Error
851where
852    R: Send + Sync + std::fmt::Debug + 'static,
853{
854    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upload_layer_part::UploadLayerPartError, R>) -> Self {
855        match err {
856            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
857            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
858                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
859                source: err.into(),
860            }),
861        }
862    }
863}
864impl From<crate::operation::upload_layer_part::UploadLayerPartError> for Error {
865    fn from(err: crate::operation::upload_layer_part::UploadLayerPartError) -> Self {
866        match err {
867            crate::operation::upload_layer_part::UploadLayerPartError::InvalidLayerPartException(inner) => Error::InvalidLayerPartException(inner),
868            crate::operation::upload_layer_part::UploadLayerPartError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
869            crate::operation::upload_layer_part::UploadLayerPartError::LimitExceededException(inner) => Error::LimitExceededException(inner),
870            crate::operation::upload_layer_part::UploadLayerPartError::RegistryNotFoundException(inner) => Error::RegistryNotFoundException(inner),
871            crate::operation::upload_layer_part::UploadLayerPartError::RepositoryNotFoundException(inner) => {
872                Error::RepositoryNotFoundException(inner)
873            }
874            crate::operation::upload_layer_part::UploadLayerPartError::ServerException(inner) => Error::ServerException(inner),
875            crate::operation::upload_layer_part::UploadLayerPartError::UnsupportedCommandException(inner) => {
876                Error::UnsupportedCommandException(inner)
877            }
878            crate::operation::upload_layer_part::UploadLayerPartError::UploadNotFoundException(inner) => Error::UploadNotFoundException(inner),
879            crate::operation::upload_layer_part::UploadLayerPartError::Unhandled(inner) => Error::Unhandled(inner),
880        }
881    }
882}
883impl ::std::error::Error for Error {
884    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
885        match self {
886            Error::EmptyUploadException(inner) => inner.source(),
887            Error::ImageAlreadyExistsException(inner) => inner.source(),
888            Error::ImageDigestDoesNotMatchException(inner) => inner.source(),
889            Error::ImageNotFoundException(inner) => inner.source(),
890            Error::ImageTagAlreadyExistsException(inner) => inner.source(),
891            Error::InvalidLayerException(inner) => inner.source(),
892            Error::InvalidLayerPartException(inner) => inner.source(),
893            Error::InvalidParameterException(inner) => inner.source(),
894            Error::InvalidTagParameterException(inner) => inner.source(),
895            Error::LayerAlreadyExistsException(inner) => inner.source(),
896            Error::LayerPartTooSmallException(inner) => inner.source(),
897            Error::LayersNotFoundException(inner) => inner.source(),
898            Error::LimitExceededException(inner) => inner.source(),
899            Error::ReferencedImagesNotFoundException(inner) => inner.source(),
900            Error::RegistryNotFoundException(inner) => inner.source(),
901            Error::RepositoryAlreadyExistsException(inner) => inner.source(),
902            Error::RepositoryCatalogDataNotFoundException(inner) => inner.source(),
903            Error::RepositoryNotEmptyException(inner) => inner.source(),
904            Error::RepositoryNotFoundException(inner) => inner.source(),
905            Error::RepositoryPolicyNotFoundException(inner) => inner.source(),
906            Error::ServerException(inner) => inner.source(),
907            Error::TooManyTagsException(inner) => inner.source(),
908            Error::UnsupportedCommandException(inner) => inner.source(),
909            Error::UploadNotFoundException(inner) => inner.source(),
910            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
911        }
912    }
913}
914impl ::aws_types::request_id::RequestId for Error {
915    fn request_id(&self) -> Option<&str> {
916        match self {
917            Self::EmptyUploadException(e) => e.request_id(),
918            Self::ImageAlreadyExistsException(e) => e.request_id(),
919            Self::ImageDigestDoesNotMatchException(e) => e.request_id(),
920            Self::ImageNotFoundException(e) => e.request_id(),
921            Self::ImageTagAlreadyExistsException(e) => e.request_id(),
922            Self::InvalidLayerException(e) => e.request_id(),
923            Self::InvalidLayerPartException(e) => e.request_id(),
924            Self::InvalidParameterException(e) => e.request_id(),
925            Self::InvalidTagParameterException(e) => e.request_id(),
926            Self::LayerAlreadyExistsException(e) => e.request_id(),
927            Self::LayerPartTooSmallException(e) => e.request_id(),
928            Self::LayersNotFoundException(e) => e.request_id(),
929            Self::LimitExceededException(e) => e.request_id(),
930            Self::ReferencedImagesNotFoundException(e) => e.request_id(),
931            Self::RegistryNotFoundException(e) => e.request_id(),
932            Self::RepositoryAlreadyExistsException(e) => e.request_id(),
933            Self::RepositoryCatalogDataNotFoundException(e) => e.request_id(),
934            Self::RepositoryNotEmptyException(e) => e.request_id(),
935            Self::RepositoryNotFoundException(e) => e.request_id(),
936            Self::RepositoryPolicyNotFoundException(e) => e.request_id(),
937            Self::ServerException(e) => e.request_id(),
938            Self::TooManyTagsException(e) => e.request_id(),
939            Self::UnsupportedCommandException(e) => e.request_id(),
940            Self::UploadNotFoundException(e) => e.request_id(),
941            Self::Unhandled(e) => e.meta.request_id(),
942        }
943    }
944}