Enum aws_sdk_backupstorage::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
DataAlreadyExistsException(DataAlreadyExistsException),
IllegalArgumentException(IllegalArgumentException),
KmsInvalidKeyUsageException(KmsInvalidKeyUsageException),
NotReadableInputStreamException(NotReadableInputStreamException),
ResourceNotFoundException(ResourceNotFoundException),
RetryableException(RetryableException),
ServiceInternalException(ServiceInternalException),
ServiceUnavailableException(ServiceUnavailableException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
DataAlreadyExistsException(DataAlreadyExistsException)
Non-retryable exception. Attempted to create already existing object or chunk. This message contains a checksum of already presented data.
IllegalArgumentException(IllegalArgumentException)
Non-retryable exception, indicates client error (wrong argument passed to API). See exception message for details.
KmsInvalidKeyUsageException(KmsInvalidKeyUsageException)
Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message for details.
NotReadableInputStreamException(NotReadableInputStreamException)
Retryalble exception. Indicated issues while reading an input stream due to the networking issues or connection drop on the client side.
ResourceNotFoundException(ResourceNotFoundException)
Non-retryable exception. Attempted to make an operation on non-existing or expired resource.
RetryableException(RetryableException)
Retryable exception. In general indicates internal failure that can be fixed by retry.
ServiceInternalException(ServiceInternalException)
Deprecated. To be removed from the model.
Retryable exception, indicates internal server error.
ThrottlingException(ThrottlingException)
Increased rate over throttling limits. Can be retried with exponential backoff.
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).