Enum aws_sdk_ecr::Error

source ·
#[non_exhaustive]
pub enum Error {
Show 34 variants EmptyUploadException(EmptyUploadException), ImageAlreadyExistsException(ImageAlreadyExistsException), ImageDigestDoesNotMatchException(ImageDigestDoesNotMatchException), ImageNotFoundException(ImageNotFoundException), ImageTagAlreadyExistsException(ImageTagAlreadyExistsException), InvalidLayerException(InvalidLayerException), InvalidLayerPartException(InvalidLayerPartException), InvalidParameterException(InvalidParameterException), InvalidTagParameterException(InvalidTagParameterException), KmsException(KmsException), LayerAlreadyExistsException(LayerAlreadyExistsException), LayerInaccessibleException(LayerInaccessibleException), LayerPartTooSmallException(LayerPartTooSmallException), LayersNotFoundException(LayersNotFoundException), LifecyclePolicyNotFoundException(LifecyclePolicyNotFoundException), LifecyclePolicyPreviewInProgressException(LifecyclePolicyPreviewInProgressException), LifecyclePolicyPreviewNotFoundException(LifecyclePolicyPreviewNotFoundException), LimitExceededException(LimitExceededException), PullThroughCacheRuleAlreadyExistsException(PullThroughCacheRuleAlreadyExistsException), PullThroughCacheRuleNotFoundException(PullThroughCacheRuleNotFoundException), ReferencedImagesNotFoundException(ReferencedImagesNotFoundException), RegistryPolicyNotFoundException(RegistryPolicyNotFoundException), RepositoryAlreadyExistsException(RepositoryAlreadyExistsException), RepositoryNotEmptyException(RepositoryNotEmptyException), RepositoryNotFoundException(RepositoryNotFoundException), RepositoryPolicyNotFoundException(RepositoryPolicyNotFoundException), ScanNotFoundException(ScanNotFoundException), ServerException(ServerException), TooManyTagsException(TooManyTagsException), UnsupportedImageTypeException(UnsupportedImageTypeException), UnsupportedUpstreamRegistryException(UnsupportedUpstreamRegistryException), UploadNotFoundException(UploadNotFoundException), ValidationException(ValidationException), Unhandled(Unhandled),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

EmptyUploadException(EmptyUploadException)

The specified layer upload does not 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 does not match the digest that Amazon ECR calculated for the image.

§

ImageNotFoundException(ImageNotFoundException)

The image requested does not 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 upon receipt of the image layer does not match the digest specified.

§

InvalidLayerPartException(InvalidLayerPartException)

The layer part size is not valid, or the first byte specified is not 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.

§

KmsException(KmsException)

The operation failed due to a KMS exception.

§

LayerAlreadyExistsException(LayerAlreadyExistsException)

The image layer already exists in the associated repository.

§

LayerInaccessibleException(LayerInaccessibleException)

The specified layer is not available because it is not associated with an image. Unassociated image layers may be cleaned up at any time.

§

LayerPartTooSmallException(LayerPartTooSmallException)

Layer parts must be at least 5 MiB in size.

§

LayersNotFoundException(LayersNotFoundException)

The specified layers could not be found, or the specified layer is not valid for this repository.

§

LifecyclePolicyNotFoundException(LifecyclePolicyNotFoundException)

The lifecycle policy could not be found, and no policy is set to the repository.

§

LifecyclePolicyPreviewInProgressException(LifecyclePolicyPreviewInProgressException)

The previous lifecycle policy preview request has not completed. Wait and try again.

§

LifecyclePolicyPreviewNotFoundException(LifecyclePolicyPreviewNotFoundException)

There is no dry run for this repository.

§

LimitExceededException(LimitExceededException)

The operation did not 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.

§

PullThroughCacheRuleAlreadyExistsException(PullThroughCacheRuleAlreadyExistsException)

A pull through cache rule with these settings already exists for the private registry.

§

PullThroughCacheRuleNotFoundException(PullThroughCacheRuleNotFoundException)

The pull through cache rule was not found. Specify a valid pull through cache rule and try again.

§

ReferencedImagesNotFoundException(ReferencedImagesNotFoundException)

The manifest list is referencing an image that does not exist.

§

RegistryPolicyNotFoundException(RegistryPolicyNotFoundException)

The registry doesn't have an associated registry policy.

§

RepositoryAlreadyExistsException(RepositoryAlreadyExistsException)

The specified repository already exists in the specified registry.

§

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 could not be found. Check the spelling of the specified repository and ensure that you are performing operations on the correct registry.

§

RepositoryPolicyNotFoundException(RepositoryPolicyNotFoundException)

The specified repository and registry combination does not have an associated repository policy.

§

ScanNotFoundException(ScanNotFoundException)

The specified image scan could not be found. Ensure that image scanning is enabled on the repository and try again.

§

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.

§

UnsupportedImageTypeException(UnsupportedImageTypeException)

The image is of a type that cannot be scanned.

§

UnsupportedUpstreamRegistryException(UnsupportedUpstreamRegistryException)

The specified upstream registry isn't supported.

§

UploadNotFoundException(UploadNotFoundException)

The upload could not be found, or the specified upload ID is not valid for this repository.

§

ValidationException(ValidationException)

There was an exception validating this request.

§

Unhandled(Unhandled)

An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).

When logging an error from the SDK, it is recommended that you either wrap the error in DisplayErrorContext, use another error reporter library that visits the error’s cause/source chain, or call Error::source for more details about the underlying cause.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more