Enum aws_sdk_kms::error::DescribeKeyErrorKind
source · #[non_exhaustive]
pub enum DescribeKeyErrorKind {
DependencyTimeoutException(DependencyTimeoutException),
InvalidArnException(InvalidArnException),
KmsInternalException(KmsInternalException),
NotFoundException(NotFoundException),
Unhandled(Unhandled),
}
Expand description
Types of errors that can occur for the DescribeKey
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DependencyTimeoutException(DependencyTimeoutException)
The system timed out while trying to fulfill the request. The request can be retried.
InvalidArnException(InvalidArnException)
The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
KmsInternalException(KmsInternalException)
The request was rejected because an internal exception occurred. The request can be retried.
NotFoundException(NotFoundException)
The request was rejected because the specified entity or resource could not be found.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.