Enum aws_sdk_ecr::operation::put_image::PutImageError
source · #[non_exhaustive]
pub enum PutImageError {
ImageAlreadyExistsException(ImageAlreadyExistsException),
ImageDigestDoesNotMatchException(ImageDigestDoesNotMatchException),
ImageTagAlreadyExistsException(ImageTagAlreadyExistsException),
InvalidParameterException(InvalidParameterException),
KmsException(KmsException),
LayersNotFoundException(LayersNotFoundException),
LimitExceededException(LimitExceededException),
ReferencedImagesNotFoundException(ReferencedImagesNotFoundException),
RepositoryNotFoundException(RepositoryNotFoundException),
ServerException(ServerException),
Unhandled(Unhandled),
}
Expand description
Error type for the PutImageError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
ImageTagAlreadyExistsException(ImageTagAlreadyExistsException)
The specified image is tagged with a tag that already exists. The repository is configured for tag immutability.
InvalidParameterException(InvalidParameterException)
The specified parameter is invalid. Review the available parameters for the API request.
KmsException(KmsException)
The operation failed due to a KMS exception.
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.
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.
ServerException(ServerException)
These errors are usually caused by a server-side issue.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl PutImageError
impl PutImageError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the PutImageError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the PutImageError::Unhandled
variant from a aws_smithy_types::error::ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_image_already_exists_exception(&self) -> bool
pub fn is_image_already_exists_exception(&self) -> bool
Returns true
if the error kind is PutImageError::ImageAlreadyExistsException
.
sourcepub fn is_image_digest_does_not_match_exception(&self) -> bool
pub fn is_image_digest_does_not_match_exception(&self) -> bool
Returns true
if the error kind is PutImageError::ImageDigestDoesNotMatchException
.
sourcepub fn is_image_tag_already_exists_exception(&self) -> bool
pub fn is_image_tag_already_exists_exception(&self) -> bool
Returns true
if the error kind is PutImageError::ImageTagAlreadyExistsException
.
sourcepub fn is_invalid_parameter_exception(&self) -> bool
pub fn is_invalid_parameter_exception(&self) -> bool
Returns true
if the error kind is PutImageError::InvalidParameterException
.
sourcepub fn is_kms_exception(&self) -> bool
pub fn is_kms_exception(&self) -> bool
Returns true
if the error kind is PutImageError::KmsException
.
sourcepub fn is_layers_not_found_exception(&self) -> bool
pub fn is_layers_not_found_exception(&self) -> bool
Returns true
if the error kind is PutImageError::LayersNotFoundException
.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is PutImageError::LimitExceededException
.
sourcepub fn is_referenced_images_not_found_exception(&self) -> bool
pub fn is_referenced_images_not_found_exception(&self) -> bool
Returns true
if the error kind is PutImageError::ReferencedImagesNotFoundException
.
sourcepub fn is_repository_not_found_exception(&self) -> bool
pub fn is_repository_not_found_exception(&self) -> bool
Returns true
if the error kind is PutImageError::RepositoryNotFoundException
.
sourcepub fn is_server_exception(&self) -> bool
pub fn is_server_exception(&self) -> bool
Returns true
if the error kind is PutImageError::ServerException
.
Trait Implementations§
source§impl CreateUnhandledError for PutImageError
impl CreateUnhandledError for PutImageError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Debug for PutImageError
impl Debug for PutImageError
source§impl Display for PutImageError
impl Display for PutImageError
source§impl Error for PutImageError
impl Error for PutImageError
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<PutImageError> for Error
impl From<PutImageError> for Error
source§fn from(err: PutImageError) -> Self
fn from(err: PutImageError) -> Self
source§impl ProvideErrorKind for PutImageError
impl ProvideErrorKind for PutImageError
source§impl ProvideErrorMetadata for PutImageError
impl ProvideErrorMetadata for PutImageError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for PutImageError
impl RequestId for PutImageError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.