#[non_exhaustive]
pub enum CompleteLayerUploadError {
EmptyUploadException(EmptyUploadException),
InvalidLayerException(InvalidLayerException),
InvalidParameterException(InvalidParameterException),
KmsException(KmsException),
LayerAlreadyExistsException(LayerAlreadyExistsException),
LayerPartTooSmallException(LayerPartTooSmallException),
RepositoryNotFoundException(RepositoryNotFoundException),
ServerException(ServerException),
UploadNotFoundException(UploadNotFoundException),
Unhandled(Unhandled),
}
Expand description
Error type for the CompleteLayerUploadError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyUploadException(EmptyUploadException)
The specified layer upload does not contain any layer parts.
InvalidLayerException(InvalidLayerException)
The layer digest calculation performed by Amazon ECR upon receipt of the image layer does not match the digest specified.
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.
LayerAlreadyExistsException(LayerAlreadyExistsException)
The image layer already exists in the associated repository.
LayerPartTooSmallException(LayerPartTooSmallException)
Layer parts must be at least 5 MiB in size.
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.
UploadNotFoundException(UploadNotFoundException)
The upload could not be found, or the specified upload ID is not valid for this repository.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CompleteLayerUploadError
impl CompleteLayerUploadError
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 CompleteLayerUploadError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CompleteLayerUploadError::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_empty_upload_exception(&self) -> bool
pub fn is_empty_upload_exception(&self) -> bool
Returns true
if the error kind is CompleteLayerUploadError::EmptyUploadException
.
sourcepub fn is_invalid_layer_exception(&self) -> bool
pub fn is_invalid_layer_exception(&self) -> bool
Returns true
if the error kind is CompleteLayerUploadError::InvalidLayerException
.
sourcepub fn is_invalid_parameter_exception(&self) -> bool
pub fn is_invalid_parameter_exception(&self) -> bool
Returns true
if the error kind is CompleteLayerUploadError::InvalidParameterException
.
sourcepub fn is_kms_exception(&self) -> bool
pub fn is_kms_exception(&self) -> bool
Returns true
if the error kind is CompleteLayerUploadError::KmsException
.
sourcepub fn is_layer_already_exists_exception(&self) -> bool
pub fn is_layer_already_exists_exception(&self) -> bool
Returns true
if the error kind is CompleteLayerUploadError::LayerAlreadyExistsException
.
sourcepub fn is_layer_part_too_small_exception(&self) -> bool
pub fn is_layer_part_too_small_exception(&self) -> bool
Returns true
if the error kind is CompleteLayerUploadError::LayerPartTooSmallException
.
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 CompleteLayerUploadError::RepositoryNotFoundException
.
sourcepub fn is_server_exception(&self) -> bool
pub fn is_server_exception(&self) -> bool
Returns true
if the error kind is CompleteLayerUploadError::ServerException
.
sourcepub fn is_upload_not_found_exception(&self) -> bool
pub fn is_upload_not_found_exception(&self) -> bool
Returns true
if the error kind is CompleteLayerUploadError::UploadNotFoundException
.
Trait Implementations§
source§impl CreateUnhandledError for CompleteLayerUploadError
impl CreateUnhandledError for CompleteLayerUploadError
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 CompleteLayerUploadError
impl Debug for CompleteLayerUploadError
source§impl Display for CompleteLayerUploadError
impl Display for CompleteLayerUploadError
source§impl Error for CompleteLayerUploadError
impl Error for CompleteLayerUploadError
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<CompleteLayerUploadError> for Error
impl From<CompleteLayerUploadError> for Error
source§fn from(err: CompleteLayerUploadError) -> Self
fn from(err: CompleteLayerUploadError) -> Self
source§impl ProvideErrorMetadata for CompleteLayerUploadError
impl ProvideErrorMetadata for CompleteLayerUploadError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CompleteLayerUploadError
impl RequestId for CompleteLayerUploadError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.