#[non_exhaustive]pub enum ModifyCacheSubnetGroupError {
CacheSubnetGroupNotFoundFault(CacheSubnetGroupNotFoundFault),
CacheSubnetQuotaExceededFault(CacheSubnetQuotaExceededFault),
InvalidSubnet(InvalidSubnet),
SubnetInUse(SubnetInUse),
SubnetNotAllowedFault(SubnetNotAllowedFault),
Unhandled(Unhandled),
}
Expand description
Error type for the ModifyCacheSubnetGroupError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CacheSubnetGroupNotFoundFault(CacheSubnetGroupNotFoundFault)
The requested cache subnet group name does not refer to an existing cache subnet group.
CacheSubnetQuotaExceededFault(CacheSubnetQuotaExceededFault)
The request cannot be processed because it would exceed the allowed number of subnets in a cache subnet group.
InvalidSubnet(InvalidSubnet)
An invalid subnet identifier was specified.
SubnetInUse(SubnetInUse)
The requested subnet is being used by another cache subnet group.
SubnetNotAllowedFault(SubnetNotAllowedFault)
At least one subnet ID does not match the other subnet IDs. This mismatch typically occurs when a user sets one subnet ID to a regional Availability Zone and a different one to an outpost. Or when a user sets the subnet ID to an Outpost when not subscribed on this service.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ModifyCacheSubnetGroupError
impl ModifyCacheSubnetGroupError
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 ModifyCacheSubnetGroupError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ModifyCacheSubnetGroupError::Unhandled
variant from an 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_cache_subnet_group_not_found_fault(&self) -> bool
pub fn is_cache_subnet_group_not_found_fault(&self) -> bool
Returns true
if the error kind is ModifyCacheSubnetGroupError::CacheSubnetGroupNotFoundFault
.
sourcepub fn is_cache_subnet_quota_exceeded_fault(&self) -> bool
pub fn is_cache_subnet_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is ModifyCacheSubnetGroupError::CacheSubnetQuotaExceededFault
.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true
if the error kind is ModifyCacheSubnetGroupError::InvalidSubnet
.
sourcepub fn is_subnet_in_use(&self) -> bool
pub fn is_subnet_in_use(&self) -> bool
Returns true
if the error kind is ModifyCacheSubnetGroupError::SubnetInUse
.
sourcepub fn is_subnet_not_allowed_fault(&self) -> bool
pub fn is_subnet_not_allowed_fault(&self) -> bool
Returns true
if the error kind is ModifyCacheSubnetGroupError::SubnetNotAllowedFault
.
Trait Implementations§
source§impl CreateUnhandledError for ModifyCacheSubnetGroupError
impl CreateUnhandledError for ModifyCacheSubnetGroupError
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 ModifyCacheSubnetGroupError
impl Debug for ModifyCacheSubnetGroupError
source§impl Error for ModifyCacheSubnetGroupError
impl Error for ModifyCacheSubnetGroupError
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<ModifyCacheSubnetGroupError> for Error
impl From<ModifyCacheSubnetGroupError> for Error
source§fn from(err: ModifyCacheSubnetGroupError) -> Self
fn from(err: ModifyCacheSubnetGroupError) -> Self
source§impl ProvideErrorMetadata for ModifyCacheSubnetGroupError
impl ProvideErrorMetadata for ModifyCacheSubnetGroupError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ModifyCacheSubnetGroupError
impl RequestId for ModifyCacheSubnetGroupError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.