#[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
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 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)

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

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<BatchCheckLayerAvailabilityError> for Error

source§

fn from(err: BatchCheckLayerAvailabilityError) -> Self

Converts to this type from the input type.
source§

impl From<BatchDeleteImageError> for Error

source§

fn from(err: BatchDeleteImageError) -> Self

Converts to this type from the input type.
source§

impl From<CompleteLayerUploadError> for Error

source§

fn from(err: CompleteLayerUploadError) -> Self

Converts to this type from the input type.
source§

impl From<CreateRepositoryError> for Error

source§

fn from(err: CreateRepositoryError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteRepositoryError> for Error

source§

fn from(err: DeleteRepositoryError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteRepositoryPolicyError> for Error

source§

fn from(err: DeleteRepositoryPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeImageTagsError> for Error

source§

fn from(err: DescribeImageTagsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeImagesError> for Error

source§

fn from(err: DescribeImagesError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeRegistriesError> for Error

source§

fn from(err: DescribeRegistriesError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeRepositoriesError> for Error

source§

fn from(err: DescribeRepositoriesError) -> Self

Converts to this type from the input type.
source§

impl From<GetAuthorizationTokenError> for Error

source§

fn from(err: GetAuthorizationTokenError) -> Self

Converts to this type from the input type.
source§

impl From<GetRegistryCatalogDataError> for Error

source§

fn from(err: GetRegistryCatalogDataError) -> Self

Converts to this type from the input type.
source§

impl From<GetRepositoryCatalogDataError> for Error

source§

fn from(err: GetRepositoryCatalogDataError) -> Self

Converts to this type from the input type.
source§

impl From<GetRepositoryPolicyError> for Error

source§

fn from(err: GetRepositoryPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<InitiateLayerUploadError> for Error

source§

fn from(err: InitiateLayerUploadError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsForResourceError> for Error

source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
source§

impl From<PutImageError> for Error

source§

fn from(err: PutImageError) -> Self

Converts to this type from the input type.
source§

impl From<PutRegistryCatalogDataError> for Error

source§

fn from(err: PutRegistryCatalogDataError) -> Self

Converts to this type from the input type.
source§

impl From<PutRepositoryCatalogDataError> for Error

source§

fn from(err: PutRepositoryCatalogDataError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<BatchCheckLayerAvailabilityError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<BatchCheckLayerAvailabilityError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<BatchDeleteImageError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<BatchDeleteImageError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CompleteLayerUploadError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CompleteLayerUploadError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateRepositoryError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateRepositoryError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteRepositoryError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteRepositoryError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteRepositoryPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteRepositoryPolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeImageTagsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeImageTagsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeImagesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeImagesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeRegistriesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeRegistriesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeRepositoriesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeRepositoriesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetAuthorizationTokenError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetAuthorizationTokenError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetRegistryCatalogDataError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetRegistryCatalogDataError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetRepositoryCatalogDataError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetRepositoryCatalogDataError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetRepositoryPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetRepositoryPolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<InitiateLayerUploadError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<InitiateLayerUploadError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListTagsForResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutImageError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutImageError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutRegistryCatalogDataError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutRegistryCatalogDataError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutRepositoryCatalogDataError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutRepositoryCatalogDataError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<SetRepositoryPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<SetRepositoryPolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<TagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<TagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UntagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UploadLayerPartError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UploadLayerPartError, R>) -> Self

Converts to this type from the input type.
source§

impl From<SetRepositoryPolicyError> for Error

source§

fn from(err: SetRepositoryPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<TagResourceError> for Error

source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UntagResourceError> for Error

source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UploadLayerPartError> for Error

source§

fn from(err: UploadLayerPartError) -> Self

Converts to this type from the input type.
source§

impl RequestId for Error

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬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
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more