Enum aws_sdk_ecrpublic::Error
source · [−]#[non_exhaustive]
pub enum Error {
Show 24 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),
RepositoryNotEmptyException(RepositoryNotEmptyException),
RepositoryNotFoundException(RepositoryNotFoundException),
RepositoryPolicyNotFoundException(RepositoryPolicyNotFoundException),
ServerException(ServerException),
TooManyTagsException(TooManyTagsException),
UnsupportedCommandException(UnsupportedCommandException),
UploadNotFoundException(UploadNotFoundException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
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 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.
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 could not be found, or the specified layer is not valid 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.
ReferencedImagesNotFoundException(ReferencedImagesNotFoundException)
The manifest list is referencing an image that does not exist.
RegistryNotFoundException(RegistryNotFoundException)
The registry does not exist.
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.
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 is not supported in this Region.
UploadNotFoundException(UploadNotFoundException)
The upload could not be found, or the specified upload ID is not valid for this repository.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unhandled error occurred.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<R> From<SdkError<BatchCheckLayerAvailabilityError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<BatchCheckLayerAvailabilityError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<BatchCheckLayerAvailabilityError, R>) -> Self
fn from(err: SdkError<BatchCheckLayerAvailabilityError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<BatchDeleteImageError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<BatchDeleteImageError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<BatchDeleteImageError, R>) -> Self
fn from(err: SdkError<BatchDeleteImageError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CompleteLayerUploadError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CompleteLayerUploadError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CompleteLayerUploadError, R>) -> Self
fn from(err: SdkError<CompleteLayerUploadError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreateRepositoryError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateRepositoryError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateRepositoryError, R>) -> Self
fn from(err: SdkError<CreateRepositoryError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteRepositoryError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteRepositoryError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteRepositoryError, R>) -> Self
fn from(err: SdkError<DeleteRepositoryError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteRepositoryPolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteRepositoryPolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteRepositoryPolicyError, R>) -> Self
fn from(err: SdkError<DeleteRepositoryPolicyError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeImageTagsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeImageTagsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeImageTagsError, R>) -> Self
fn from(err: SdkError<DescribeImageTagsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeImagesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeImagesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeImagesError, R>) -> Self
fn from(err: SdkError<DescribeImagesError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeRegistriesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeRegistriesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeRegistriesError, R>) -> Self
fn from(err: SdkError<DescribeRegistriesError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeRepositoriesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeRepositoriesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeRepositoriesError, R>) -> Self
fn from(err: SdkError<DescribeRepositoriesError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetAuthorizationTokenError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetAuthorizationTokenError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetAuthorizationTokenError, R>) -> Self
fn from(err: SdkError<GetAuthorizationTokenError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetRegistryCatalogDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetRegistryCatalogDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetRegistryCatalogDataError, R>) -> Self
fn from(err: SdkError<GetRegistryCatalogDataError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetRepositoryCatalogDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetRepositoryCatalogDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetRepositoryCatalogDataError, R>) -> Self
fn from(err: SdkError<GetRepositoryCatalogDataError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetRepositoryPolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetRepositoryPolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetRepositoryPolicyError, R>) -> Self
fn from(err: SdkError<GetRepositoryPolicyError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<InitiateLayerUploadError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<InitiateLayerUploadError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<InitiateLayerUploadError, R>) -> Self
fn from(err: SdkError<InitiateLayerUploadError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<PutImageError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<PutImageError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<PutImageError, R>) -> Self
fn from(err: SdkError<PutImageError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<PutRegistryCatalogDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<PutRegistryCatalogDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<PutRegistryCatalogDataError, R>) -> Self
fn from(err: SdkError<PutRegistryCatalogDataError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<PutRepositoryCatalogDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<PutRepositoryCatalogDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<PutRepositoryCatalogDataError, R>) -> Self
fn from(err: SdkError<PutRepositoryCatalogDataError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<SetRepositoryPolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<SetRepositoryPolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<SetRepositoryPolicyError, R>) -> Self
fn from(err: SdkError<SetRepositoryPolicyError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<TagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<TagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more