#[non_exhaustive]pub enum CreateDBProxyError {
DbProxyAlreadyExistsFault(DbProxyAlreadyExistsFault),
DbProxyQuotaExceededFault(DbProxyQuotaExceededFault),
InvalidSubnet(InvalidSubnet),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateDBProxyError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DbProxyAlreadyExistsFault(DbProxyAlreadyExistsFault)
The specified proxy name must be unique for all proxies owned by your Amazon Web Services account in the specified Amazon Web Services Region.
DbProxyQuotaExceededFault(DbProxyQuotaExceededFault)
Your Amazon Web Services account already has the maximum number of proxies in the specified Amazon Web Services Region.
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 CreateDBProxyError
impl CreateDBProxyError
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 CreateDBProxyError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateDBProxyError::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_already_exists_fault(&self) -> bool
pub fn is_db_proxy_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateDBProxyError::DbProxyAlreadyExistsFault
.
sourcepub fn is_db_proxy_quota_exceeded_fault(&self) -> bool
pub fn is_db_proxy_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateDBProxyError::DbProxyQuotaExceededFault
.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true
if the error kind is CreateDBProxyError::InvalidSubnet
.
Trait Implementations§
source§impl CreateUnhandledError for CreateDBProxyError
impl CreateUnhandledError for CreateDBProxyError
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 CreateDBProxyError
impl Debug for CreateDBProxyError
source§impl Display for CreateDBProxyError
impl Display for CreateDBProxyError
source§impl Error for CreateDBProxyError
impl Error for CreateDBProxyError
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<CreateDBProxyError> for Error
impl From<CreateDBProxyError> for Error
source§fn from(err: CreateDBProxyError) -> Self
fn from(err: CreateDBProxyError) -> Self
source§impl ProvideErrorMetadata for CreateDBProxyError
impl ProvideErrorMetadata for CreateDBProxyError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateDBProxyError
impl RequestId for CreateDBProxyError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.