Enum aws_sdk_rdsdata::Error
source · #[non_exhaustive]pub enum Error {
Show 16 variants
AccessDeniedException(AccessDeniedException),
BadRequestException(BadRequestException),
DatabaseErrorException(DatabaseErrorException),
DatabaseNotFoundException(DatabaseNotFoundException),
DatabaseUnavailableException(DatabaseUnavailableException),
ForbiddenException(ForbiddenException),
HttpEndpointNotEnabledException(HttpEndpointNotEnabledException),
InternalServerErrorException(InternalServerErrorException),
InvalidSecretException(InvalidSecretException),
NotFoundException(NotFoundException),
SecretsErrorException(SecretsErrorException),
ServiceUnavailableError(ServiceUnavailableError),
StatementTimeoutException(StatementTimeoutException),
TransactionNotFoundException(TransactionNotFoundException),
UnsupportedResultException(UnsupportedResultException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You don't have sufficient access to perform this action.
BadRequestException(BadRequestException)
There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)
DatabaseErrorException(DatabaseErrorException)
There was an error in processing the SQL statement.
DatabaseNotFoundException(DatabaseNotFoundException)
The DB cluster doesn't have a DB instance.
The writer instance in the DB cluster isn't available.
ForbiddenException(ForbiddenException)
There are insufficient privileges to make the call.
HttpEndpointNotEnabledException(HttpEndpointNotEnabledException)
The HTTP endpoint for using RDS Data API isn't enabled for the DB cluster.
InternalServerErrorException(InternalServerErrorException)
An internal error occurred.
InvalidSecretException(InvalidSecretException)
The Secrets Manager secret used with the request isn't valid.
NotFoundException(NotFoundException)
The resourceArn
, secretArn
, or transactionId
value can't be found.
SecretsErrorException(SecretsErrorException)
There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:
-
RDS Data API timed out retrieving the secret.
-
The secret provided wasn't found.
-
The secret couldn't be decrypted.
The service specified by the resourceArn
parameter isn't available.
StatementTimeoutException(StatementTimeoutException)
The execution of the SQL statement timed out.
TransactionNotFoundException(TransactionNotFoundException)
The transaction ID wasn't found.
UnsupportedResultException(UnsupportedResultException)
There was a problem with the result because of one of the following conditions:
-
It contained an unsupported data type.
-
It contained a multidimensional array.
-
The size was too large.
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).