Enum aws_sdk_ebs::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConcurrentLimitExceededException(ConcurrentLimitExceededException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
RequestThrottledException(RequestThrottledException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You do not have sufficient access to perform this action.
ConcurrentLimitExceededException(ConcurrentLimitExceededException)
You have reached the limit for concurrent API requests. For more information, see Optimizing performance of the EBS direct APIs in the Amazon Elastic Compute Cloud User Guide.
ConflictException(ConflictException)
The request uses the same client token as a previous, but non-identical request.
InternalServerException(InternalServerException)
An internal error has occurred. For more information see Error retries.
RequestThrottledException(RequestThrottledException)
The number of API requests has exceeded the maximum allowed API request throttling limit for the snapshot. For more information see Error retries.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource does not exist.
ServiceQuotaExceededException(ServiceQuotaExceededException)
Your current service quotas do not allow you to perform this action.
ValidationException(ValidationException)
The input fails to satisfy the constraints of the EBS direct APIs.
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).