#[non_exhaustive]
pub enum UploadLayerPartError {
InvalidLayerPartException(InvalidLayerPartException),
InvalidParameterException(InvalidParameterException),
KmsException(KmsException),
LimitExceededException(LimitExceededException),
RepositoryNotFoundException(RepositoryNotFoundException),
ServerException(ServerException),
UploadNotFoundException(UploadNotFoundException),
Unhandled(Unhandled),
}
Expand description
Error type for the UploadLayerPartError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
KmsException(KmsException)
The operation failed due to a KMS exception.
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.
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 UploadLayerPartError
impl UploadLayerPartError
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 UploadLayerPartError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the UploadLayerPartError::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_invalid_layer_part_exception(&self) -> bool
pub fn is_invalid_layer_part_exception(&self) -> bool
Returns true
if the error kind is UploadLayerPartError::InvalidLayerPartException
.
sourcepub fn is_invalid_parameter_exception(&self) -> bool
pub fn is_invalid_parameter_exception(&self) -> bool
Returns true
if the error kind is UploadLayerPartError::InvalidParameterException
.
sourcepub fn is_kms_exception(&self) -> bool
pub fn is_kms_exception(&self) -> bool
Returns true
if the error kind is UploadLayerPartError::KmsException
.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is UploadLayerPartError::LimitExceededException
.
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 UploadLayerPartError::RepositoryNotFoundException
.
sourcepub fn is_server_exception(&self) -> bool
pub fn is_server_exception(&self) -> bool
Returns true
if the error kind is UploadLayerPartError::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 UploadLayerPartError::UploadNotFoundException
.
Trait Implementations§
source§impl CreateUnhandledError for UploadLayerPartError
impl CreateUnhandledError for UploadLayerPartError
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 UploadLayerPartError
impl Debug for UploadLayerPartError
source§impl Display for UploadLayerPartError
impl Display for UploadLayerPartError
source§impl Error for UploadLayerPartError
impl Error for UploadLayerPartError
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<UploadLayerPartError> for Error
impl From<UploadLayerPartError> for Error
source§fn from(err: UploadLayerPartError) -> Self
fn from(err: UploadLayerPartError) -> Self
source§impl ProvideErrorMetadata for UploadLayerPartError
impl ProvideErrorMetadata for UploadLayerPartError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for UploadLayerPartError
impl RequestId for UploadLayerPartError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.