Enum aws_sdk_ecrpublic::Error
source · #[non_exhaustive]pub enum Error {
Show 25 variants
EmptyUploadException(EmptyUploadException),
ImageAlreadyExistsException(ImageAlreadyExistsException),
ImageDigestDoesNotMatchException(ImageDigestDoesNotMatchException),
ImageNotFoundException(ImageNotFoundException),
ImageTagAlreadyExistsException(ImageTagAlreadyExistsException),
InvalidLayerException(InvalidLayerException),
InvalidLayerPartException(InvalidLayerPartException),
InvalidParameterException(InvalidParameterException),
InvalidTagParameterException(InvalidTagParameterException),
LayerAlreadyExistsException(LayerAlreadyExistsException),
LayerPartTooSmallException(LayerPartTooSmallException),
LayersNotFoundException(LayersNotFoundException),
LimitExceededException(LimitExceededException),
ReferencedImagesNotFoundException(ReferencedImagesNotFoundException),
RegistryNotFoundException(RegistryNotFoundException),
RepositoryAlreadyExistsException(RepositoryAlreadyExistsException),
RepositoryCatalogDataNotFoundException(RepositoryCatalogDataNotFoundException),
RepositoryNotEmptyException(RepositoryNotEmptyException),
RepositoryNotFoundException(RepositoryNotFoundException),
RepositoryPolicyNotFoundException(RepositoryPolicyNotFoundException),
ServerException(ServerException),
TooManyTagsException(TooManyTagsException),
UnsupportedCommandException(UnsupportedCommandException),
UploadNotFoundException(UploadNotFoundException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyUploadException(EmptyUploadException)
The specified layer upload doesn't contain any layer parts.
ImageAlreadyExistsException(ImageAlreadyExistsException)
The specified image has already been pushed, and there were no changes to the manifest or image tag after the last push.
ImageDigestDoesNotMatchException(ImageDigestDoesNotMatchException)
The specified image digest doesn't match the digest that Amazon ECR calculated for the image.
ImageNotFoundException(ImageNotFoundException)
The image requested doesn't exist in the specified repository.
ImageTagAlreadyExistsException(ImageTagAlreadyExistsException)
The specified image is tagged with a tag that already exists. The repository is configured for tag immutability.
InvalidLayerException(InvalidLayerException)
The layer digest calculation performed by Amazon ECR when the image layer doesn't match the digest specified.
InvalidLayerPartException(InvalidLayerPartException)
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.
InvalidParameterException(InvalidParameterException)
The specified parameter is invalid. Review the available parameters for the API request.
InvalidTagParameterException(InvalidTagParameterException)
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.
LayerAlreadyExistsException(LayerAlreadyExistsException)
The image layer already exists in the associated repository.
LayerPartTooSmallException(LayerPartTooSmallException)
Layer parts must be at least 5 MiB in size.
LayersNotFoundException(LayersNotFoundException)
The specified layers can't be found, or the specified layer isn't valid for this repository.
LimitExceededException(LimitExceededException)
The operation didn't succeed because it would have exceeded a service limit for your account. For more information, see Amazon ECR Service Quotas in the Amazon Elastic Container Registry User Guide.
ReferencedImagesNotFoundException(ReferencedImagesNotFoundException)
The manifest list is referencing an image that doesn't exist.
RegistryNotFoundException(RegistryNotFoundException)
The registry doesn't exist.
RepositoryAlreadyExistsException(RepositoryAlreadyExistsException)
The specified repository already exists in the specified registry.
RepositoryCatalogDataNotFoundException(RepositoryCatalogDataNotFoundException)
The repository catalog data doesn't exist.
RepositoryNotEmptyException(RepositoryNotEmptyException)
The specified repository contains images. To delete a repository that contains images, you must force the deletion with the force
parameter.
RepositoryNotFoundException(RepositoryNotFoundException)
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.
RepositoryPolicyNotFoundException(RepositoryPolicyNotFoundException)
The specified repository and registry combination doesn't have an associated repository policy.
ServerException(ServerException)
These errors are usually caused by a server-side issue.
TooManyTagsException(TooManyTagsException)
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.
UnsupportedCommandException(UnsupportedCommandException)
The action isn't supported in this Region.
UploadNotFoundException(UploadNotFoundException)
The upload can't be found, or the specified upload ID isn't valid for this repository.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<BatchCheckLayerAvailabilityError> for Error
impl From<BatchCheckLayerAvailabilityError> for Error
source§fn from(err: BatchCheckLayerAvailabilityError) -> Self
fn from(err: BatchCheckLayerAvailabilityError) -> Self
source§impl From<BatchDeleteImageError> for Error
impl From<BatchDeleteImageError> for Error
source§fn from(err: BatchDeleteImageError) -> Self
fn from(err: BatchDeleteImageError) -> Self
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CompleteLayerUploadError> for Error
impl From<CompleteLayerUploadError> for Error
source§fn from(err: CompleteLayerUploadError) -> Self
fn from(err: CompleteLayerUploadError) -> Self
source§impl From<CreateRepositoryError> for Error
impl From<CreateRepositoryError> for Error
source§fn from(err: CreateRepositoryError) -> Self
fn from(err: CreateRepositoryError) -> Self
source§impl From<DeleteRepositoryError> for Error
impl From<DeleteRepositoryError> for Error
source§fn from(err: DeleteRepositoryError) -> Self
fn from(err: DeleteRepositoryError) -> Self
source§impl From<DeleteRepositoryPolicyError> for Error
impl From<DeleteRepositoryPolicyError> for Error
source§fn from(err: DeleteRepositoryPolicyError) -> Self
fn from(err: DeleteRepositoryPolicyError) -> Self
source§impl From<DescribeImageTagsError> for Error
impl From<DescribeImageTagsError> for Error
source§fn from(err: DescribeImageTagsError) -> Self
fn from(err: DescribeImageTagsError) -> Self
source§impl From<DescribeImagesError> for Error
impl From<DescribeImagesError> for Error
source§fn from(err: DescribeImagesError) -> Self
fn from(err: DescribeImagesError) -> Self
source§impl From<DescribeRegistriesError> for Error
impl From<DescribeRegistriesError> for Error
source§fn from(err: DescribeRegistriesError) -> Self
fn from(err: DescribeRegistriesError) -> Self
source§impl From<DescribeRepositoriesError> for Error
impl From<DescribeRepositoriesError> for Error
source§fn from(err: DescribeRepositoriesError) -> Self
fn from(err: DescribeRepositoriesError) -> Self
source§impl From<GetAuthorizationTokenError> for Error
impl From<GetAuthorizationTokenError> for Error
source§fn from(err: GetAuthorizationTokenError) -> Self
fn from(err: GetAuthorizationTokenError) -> Self
source§impl From<GetRegistryCatalogDataError> for Error
impl From<GetRegistryCatalogDataError> for Error
source§fn from(err: GetRegistryCatalogDataError) -> Self
fn from(err: GetRegistryCatalogDataError) -> Self
source§impl From<GetRepositoryCatalogDataError> for Error
impl From<GetRepositoryCatalogDataError> for Error
source§fn from(err: GetRepositoryCatalogDataError) -> Self
fn from(err: GetRepositoryCatalogDataError) -> Self
source§impl From<GetRepositoryPolicyError> for Error
impl From<GetRepositoryPolicyError> for Error
source§fn from(err: GetRepositoryPolicyError) -> Self
fn from(err: GetRepositoryPolicyError) -> Self
source§impl From<InitiateLayerUploadError> for Error
impl From<InitiateLayerUploadError> for Error
source§fn from(err: InitiateLayerUploadError) -> Self
fn from(err: InitiateLayerUploadError) -> Self
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
source§impl From<PutImageError> for Error
impl From<PutImageError> for Error
source§fn from(err: PutImageError) -> Self
fn from(err: PutImageError) -> Self
source§impl From<PutRegistryCatalogDataError> for Error
impl From<PutRegistryCatalogDataError> for Error
source§fn from(err: PutRegistryCatalogDataError) -> Self
fn from(err: PutRegistryCatalogDataError) -> Self
source§impl From<PutRepositoryCatalogDataError> for Error
impl From<PutRepositoryCatalogDataError> for Error
source§fn from(err: PutRepositoryCatalogDataError) -> Self
fn from(err: PutRepositoryCatalogDataError) -> Self
source§impl<R> From<SdkError<BatchCheckLayerAvailabilityError, R>> for Error
impl<R> From<SdkError<BatchCheckLayerAvailabilityError, R>> for Error
source§fn from(err: SdkError<BatchCheckLayerAvailabilityError, R>) -> Self
fn from(err: SdkError<BatchCheckLayerAvailabilityError, R>) -> Self
source§impl<R> From<SdkError<BatchDeleteImageError, R>> for Error
impl<R> From<SdkError<BatchDeleteImageError, R>> for Error
source§fn from(err: SdkError<BatchDeleteImageError, R>) -> Self
fn from(err: SdkError<BatchDeleteImageError, R>) -> Self
source§impl<R> From<SdkError<CompleteLayerUploadError, R>> for Error
impl<R> From<SdkError<CompleteLayerUploadError, R>> for Error
source§fn from(err: SdkError<CompleteLayerUploadError, R>) -> Self
fn from(err: SdkError<CompleteLayerUploadError, R>) -> Self
source§impl<R> From<SdkError<CreateRepositoryError, R>> for Error
impl<R> From<SdkError<CreateRepositoryError, R>> for Error
source§fn from(err: SdkError<CreateRepositoryError, R>) -> Self
fn from(err: SdkError<CreateRepositoryError, R>) -> Self
source§impl<R> From<SdkError<DeleteRepositoryError, R>> for Error
impl<R> From<SdkError<DeleteRepositoryError, R>> for Error
source§fn from(err: SdkError<DeleteRepositoryError, R>) -> Self
fn from(err: SdkError<DeleteRepositoryError, R>) -> Self
source§impl<R> From<SdkError<DeleteRepositoryPolicyError, R>> for Error
impl<R> From<SdkError<DeleteRepositoryPolicyError, R>> for Error
source§fn from(err: SdkError<DeleteRepositoryPolicyError, R>) -> Self
fn from(err: SdkError<DeleteRepositoryPolicyError, R>) -> Self
source§impl<R> From<SdkError<DescribeImageTagsError, R>> for Error
impl<R> From<SdkError<DescribeImageTagsError, R>> for Error
source§fn from(err: SdkError<DescribeImageTagsError, R>) -> Self
fn from(err: SdkError<DescribeImageTagsError, R>) -> Self
source§impl<R> From<SdkError<DescribeImagesError, R>> for Error
impl<R> From<SdkError<DescribeImagesError, R>> for Error
source§fn from(err: SdkError<DescribeImagesError, R>) -> Self
fn from(err: SdkError<DescribeImagesError, R>) -> Self
source§impl<R> From<SdkError<DescribeRegistriesError, R>> for Error
impl<R> From<SdkError<DescribeRegistriesError, R>> for Error
source§fn from(err: SdkError<DescribeRegistriesError, R>) -> Self
fn from(err: SdkError<DescribeRegistriesError, R>) -> Self
source§impl<R> From<SdkError<DescribeRepositoriesError, R>> for Error
impl<R> From<SdkError<DescribeRepositoriesError, R>> for Error
source§fn from(err: SdkError<DescribeRepositoriesError, R>) -> Self
fn from(err: SdkError<DescribeRepositoriesError, R>) -> Self
source§impl<R> From<SdkError<GetAuthorizationTokenError, R>> for Error
impl<R> From<SdkError<GetAuthorizationTokenError, R>> for Error
source§fn from(err: SdkError<GetAuthorizationTokenError, R>) -> Self
fn from(err: SdkError<GetAuthorizationTokenError, R>) -> Self
source§impl<R> From<SdkError<GetRegistryCatalogDataError, R>> for Error
impl<R> From<SdkError<GetRegistryCatalogDataError, R>> for Error
source§fn from(err: SdkError<GetRegistryCatalogDataError, R>) -> Self
fn from(err: SdkError<GetRegistryCatalogDataError, R>) -> Self
source§impl<R> From<SdkError<GetRepositoryCatalogDataError, R>> for Error
impl<R> From<SdkError<GetRepositoryCatalogDataError, R>> for Error
source§fn from(err: SdkError<GetRepositoryCatalogDataError, R>) -> Self
fn from(err: SdkError<GetRepositoryCatalogDataError, R>) -> Self
source§impl<R> From<SdkError<GetRepositoryPolicyError, R>> for Error
impl<R> From<SdkError<GetRepositoryPolicyError, R>> for Error
source§fn from(err: SdkError<GetRepositoryPolicyError, R>) -> Self
fn from(err: SdkError<GetRepositoryPolicyError, R>) -> Self
source§impl<R> From<SdkError<InitiateLayerUploadError, R>> for Error
impl<R> From<SdkError<InitiateLayerUploadError, R>> for Error
source§fn from(err: SdkError<InitiateLayerUploadError, R>) -> Self
fn from(err: SdkError<InitiateLayerUploadError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
source§impl<R> From<SdkError<PutImageError, R>> for Error
impl<R> From<SdkError<PutImageError, R>> for Error
source§fn from(err: SdkError<PutImageError, R>) -> Self
fn from(err: SdkError<PutImageError, R>) -> Self
source§impl<R> From<SdkError<PutRegistryCatalogDataError, R>> for Error
impl<R> From<SdkError<PutRegistryCatalogDataError, R>> for Error
source§fn from(err: SdkError<PutRegistryCatalogDataError, R>) -> Self
fn from(err: SdkError<PutRegistryCatalogDataError, R>) -> Self
source§impl<R> From<SdkError<PutRepositoryCatalogDataError, R>> for Error
impl<R> From<SdkError<PutRepositoryCatalogDataError, R>> for Error
source§fn from(err: SdkError<PutRepositoryCatalogDataError, R>) -> Self
fn from(err: SdkError<PutRepositoryCatalogDataError, R>) -> Self
source§impl<R> From<SdkError<SetRepositoryPolicyError, R>> for Error
impl<R> From<SdkError<SetRepositoryPolicyError, R>> for Error
source§fn from(err: SdkError<SetRepositoryPolicyError, R>) -> Self
fn from(err: SdkError<SetRepositoryPolicyError, R>) -> Self
source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
source§impl<R> From<SdkError<UploadLayerPartError, R>> for Error
impl<R> From<SdkError<UploadLayerPartError, R>> for Error
source§fn from(err: SdkError<UploadLayerPartError, R>) -> Self
fn from(err: SdkError<UploadLayerPartError, R>) -> Self
source§impl From<SetRepositoryPolicyError> for Error
impl From<SetRepositoryPolicyError> for Error
source§fn from(err: SetRepositoryPolicyError) -> Self
fn from(err: SetRepositoryPolicyError) -> Self
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
source§impl From<UploadLayerPartError> for Error
impl From<UploadLayerPartError> for Error
source§fn from(err: UploadLayerPartError) -> Self
fn from(err: UploadLayerPartError) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more