Enum aws_sdk_firehose::Error
source · #[non_exhaustive]pub enum Error {
ConcurrentModificationException(ConcurrentModificationException),
InvalidArgumentException(InvalidArgumentException),
InvalidKmsResourceException(InvalidKmsResourceException),
LimitExceededException(LimitExceededException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceUnavailableException(ServiceUnavailableException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConcurrentModificationException(ConcurrentModificationException)
Another modification has already happened. Fetch VersionId
again and use it to update the destination.
InvalidArgumentException(InvalidArgumentException)
The specified input parameter has a value that is not valid.
InvalidKmsResourceException(InvalidKmsResourceException)
Kinesis Data Firehose throws this exception when an attempt to put records or to start or stop delivery stream encryption fails. This happens when the KMS service throws one of the following exception types: AccessDeniedException
, InvalidStateException
, DisabledException
, or NotFoundException
.
LimitExceededException(LimitExceededException)
You have already reached the limit for a requested resource.
ResourceInUseException(ResourceInUseException)
The resource is already in use and not available for this operation.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource could not be found.
The service is unavailable. Back off and retry the operation. If you continue to see the exception, throughput limits for the delivery stream may have been exceeded. For more information about limits and how to request an increase, see Amazon Kinesis Data Firehose Limits.
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).