Enum aws_sdk_ecr::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError   
source · #[non_exhaustive]pub enum CreatePullThroughCacheRuleError {
    InvalidParameterException(InvalidParameterException),
    LimitExceededException(LimitExceededException),
    PullThroughCacheRuleAlreadyExistsException(PullThroughCacheRuleAlreadyExistsException),
    ServerException(ServerException),
    UnsupportedUpstreamRegistryException(UnsupportedUpstreamRegistryException),
    ValidationException(ValidationException),
    Unhandled(Unhandled),
}Expand description
Error type for the CreatePullThroughCacheRuleError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidParameterException(InvalidParameterException)
The specified parameter is invalid. Review the available parameters for the API request.
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.
PullThroughCacheRuleAlreadyExistsException(PullThroughCacheRuleAlreadyExistsException)
A pull through cache rule with these settings already exists for the private registry.
ServerException(ServerException)
These errors are usually caused by a server-side issue.
UnsupportedUpstreamRegistryException(UnsupportedUpstreamRegistryException)
The specified upstream registry isn't supported.
ValidationException(ValidationException)
There was an exception validating this request.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreatePullThroughCacheRuleError
 
impl CreatePullThroughCacheRuleError
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 CreatePullThroughCacheRuleError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
 
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreatePullThroughCacheRuleError::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_parameter_exception(&self) -> bool
 
pub fn is_invalid_parameter_exception(&self) -> bool
Returns true if the error kind is CreatePullThroughCacheRuleError::InvalidParameterException.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
 
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true if the error kind is CreatePullThroughCacheRuleError::LimitExceededException.
sourcepub fn is_pull_through_cache_rule_already_exists_exception(&self) -> bool
 
pub fn is_pull_through_cache_rule_already_exists_exception(&self) -> bool
Returns true if the error kind is CreatePullThroughCacheRuleError::PullThroughCacheRuleAlreadyExistsException.
sourcepub fn is_server_exception(&self) -> bool
 
pub fn is_server_exception(&self) -> bool
Returns true if the error kind is CreatePullThroughCacheRuleError::ServerException.
sourcepub fn is_unsupported_upstream_registry_exception(&self) -> bool
 
pub fn is_unsupported_upstream_registry_exception(&self) -> bool
Returns true if the error kind is CreatePullThroughCacheRuleError::UnsupportedUpstreamRegistryException.
sourcepub fn is_validation_exception(&self) -> bool
 
pub fn is_validation_exception(&self) -> bool
Returns true if the error kind is CreatePullThroughCacheRuleError::ValidationException.
Trait Implementations§
source§impl CreateUnhandledError for CreatePullThroughCacheRuleError
 
impl CreateUnhandledError for CreatePullThroughCacheRuleError
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 Error for CreatePullThroughCacheRuleError
 
impl Error for CreatePullThroughCacheRuleError
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<CreatePullThroughCacheRuleError> for Error
 
impl From<CreatePullThroughCacheRuleError> for Error
source§fn from(err: CreatePullThroughCacheRuleError) -> Self
 
fn from(err: CreatePullThroughCacheRuleError) -> Self
source§impl ProvideErrorMetadata for CreatePullThroughCacheRuleError
 
impl ProvideErrorMetadata for CreatePullThroughCacheRuleError
source§fn meta(&self) -> &ErrorMetadata
 
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreatePullThroughCacheRuleError
 
impl RequestId for CreatePullThroughCacheRuleError
source§fn request_id(&self) -> Option<&str>
 
fn request_id(&self) -> Option<&str>
None if the service could not be reached.