#[non_exhaustive]pub enum ModifyDBClusterEndpointError {
DbClusterEndpointNotFoundFault(DbClusterEndpointNotFoundFault),
DbInstanceNotFoundFault(DbInstanceNotFoundFault),
InvalidDbClusterEndpointStateFault(InvalidDbClusterEndpointStateFault),
InvalidDbClusterStateFault(InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(InvalidDbInstanceStateFault),
Unhandled(Unhandled),
}Expand description
Error type for the ModifyDBClusterEndpointError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DbClusterEndpointNotFoundFault(DbClusterEndpointNotFoundFault)
The specified custom endpoint doesn't exist.
DbInstanceNotFoundFault(DbInstanceNotFoundFault)
DBInstanceIdentifier doesn't refer to an existing DB instance.
InvalidDbClusterEndpointStateFault(InvalidDbClusterEndpointStateFault)
The requested operation can't be performed on the endpoint while the endpoint is in this state.
InvalidDbClusterStateFault(InvalidDbClusterStateFault)
The requested operation can't be performed while the cluster is in this state.
InvalidDbInstanceStateFault(InvalidDbInstanceStateFault)
The DB instance isn't in a valid state.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ModifyDBClusterEndpointError
impl ModifyDBClusterEndpointError
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 ModifyDBClusterEndpointError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ModifyDBClusterEndpointError::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_db_cluster_endpoint_not_found_fault(&self) -> bool
pub fn is_db_cluster_endpoint_not_found_fault(&self) -> bool
Returns true if the error kind is ModifyDBClusterEndpointError::DbClusterEndpointNotFoundFault.
sourcepub fn is_db_instance_not_found_fault(&self) -> bool
pub fn is_db_instance_not_found_fault(&self) -> bool
Returns true if the error kind is ModifyDBClusterEndpointError::DbInstanceNotFoundFault.
sourcepub fn is_invalid_db_cluster_endpoint_state_fault(&self) -> bool
pub fn is_invalid_db_cluster_endpoint_state_fault(&self) -> bool
Returns true if the error kind is ModifyDBClusterEndpointError::InvalidDbClusterEndpointStateFault.
sourcepub fn is_invalid_db_cluster_state_fault(&self) -> bool
pub fn is_invalid_db_cluster_state_fault(&self) -> bool
Returns true if the error kind is ModifyDBClusterEndpointError::InvalidDbClusterStateFault.
sourcepub fn is_invalid_db_instance_state_fault(&self) -> bool
pub fn is_invalid_db_instance_state_fault(&self) -> bool
Returns true if the error kind is ModifyDBClusterEndpointError::InvalidDbInstanceStateFault.
Trait Implementations§
source§impl CreateUnhandledError for ModifyDBClusterEndpointError
impl CreateUnhandledError for ModifyDBClusterEndpointError
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 ModifyDBClusterEndpointError
impl Debug for ModifyDBClusterEndpointError
source§impl Error for ModifyDBClusterEndpointError
impl Error for ModifyDBClusterEndpointError
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<ModifyDBClusterEndpointError> for Error
impl From<ModifyDBClusterEndpointError> for Error
source§fn from(err: ModifyDBClusterEndpointError) -> Self
fn from(err: ModifyDBClusterEndpointError) -> Self
source§impl ProvideErrorMetadata for ModifyDBClusterEndpointError
impl ProvideErrorMetadata for ModifyDBClusterEndpointError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ModifyDBClusterEndpointError
impl RequestId for ModifyDBClusterEndpointError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.