#[non_exhaustive]pub enum CreateDBProxyEndpointError {
DbProxyEndpointAlreadyExistsFault(DbProxyEndpointAlreadyExistsFault),
DbProxyEndpointQuotaExceededFault(DbProxyEndpointQuotaExceededFault),
DbProxyNotFoundFault(DbProxyNotFoundFault),
InvalidDbProxyStateFault(InvalidDbProxyStateFault),
InvalidSubnet(InvalidSubnet),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateDBProxyEndpointError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DbProxyEndpointAlreadyExistsFault(DbProxyEndpointAlreadyExistsFault)
The specified DB proxy endpoint name must be unique for all DB proxy endpoints owned by your Amazon Web Services account in the specified Amazon Web Services Region.
DbProxyEndpointQuotaExceededFault(DbProxyEndpointQuotaExceededFault)
The DB proxy already has the maximum number of endpoints.
DbProxyNotFoundFault(DbProxyNotFoundFault)
The specified proxy name doesn't correspond to a proxy owned by your Amazon Web Services account in the specified Amazon Web Services Region.
InvalidDbProxyStateFault(InvalidDbProxyStateFault)
The requested operation can't be performed while the proxy is in this state.
InvalidSubnet(InvalidSubnet)
The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.
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 CreateDBProxyEndpointError
impl CreateDBProxyEndpointError
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 CreateDBProxyEndpointError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateDBProxyEndpointError::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_db_proxy_endpoint_already_exists_fault(&self) -> bool
pub fn is_db_proxy_endpoint_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateDBProxyEndpointError::DbProxyEndpointAlreadyExistsFault
.
sourcepub fn is_db_proxy_endpoint_quota_exceeded_fault(&self) -> bool
pub fn is_db_proxy_endpoint_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateDBProxyEndpointError::DbProxyEndpointQuotaExceededFault
.
sourcepub fn is_db_proxy_not_found_fault(&self) -> bool
pub fn is_db_proxy_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateDBProxyEndpointError::DbProxyNotFoundFault
.
sourcepub fn is_invalid_db_proxy_state_fault(&self) -> bool
pub fn is_invalid_db_proxy_state_fault(&self) -> bool
Returns true
if the error kind is CreateDBProxyEndpointError::InvalidDbProxyStateFault
.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true
if the error kind is CreateDBProxyEndpointError::InvalidSubnet
.
Trait Implementations§
source§impl CreateUnhandledError for CreateDBProxyEndpointError
impl CreateUnhandledError for CreateDBProxyEndpointError
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 CreateDBProxyEndpointError
impl Debug for CreateDBProxyEndpointError
source§impl Display for CreateDBProxyEndpointError
impl Display for CreateDBProxyEndpointError
source§impl Error for CreateDBProxyEndpointError
impl Error for CreateDBProxyEndpointError
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<CreateDBProxyEndpointError> for Error
impl From<CreateDBProxyEndpointError> for Error
source§fn from(err: CreateDBProxyEndpointError) -> Self
fn from(err: CreateDBProxyEndpointError) -> Self
source§impl ProvideErrorMetadata for CreateDBProxyEndpointError
impl ProvideErrorMetadata for CreateDBProxyEndpointError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateDBProxyEndpointError
impl RequestId for CreateDBProxyEndpointError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.