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).