Enum aws_sdk_firehose::Error
source · #[non_exhaustive]pub enum Error {
ConcurrentModificationException(ConcurrentModificationException),
InvalidArgumentException(InvalidArgumentException),
InvalidKmsResourceException(InvalidKmsResourceException),
InvalidSourceException(InvalidSourceException),
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)
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
.
InvalidSourceException(InvalidSourceException)
Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.
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 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).
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CreateDeliveryStreamError> for Error
impl From<CreateDeliveryStreamError> for Error
source§fn from(err: CreateDeliveryStreamError) -> Self
fn from(err: CreateDeliveryStreamError) -> Self
source§impl From<DeleteDeliveryStreamError> for Error
impl From<DeleteDeliveryStreamError> for Error
source§fn from(err: DeleteDeliveryStreamError) -> Self
fn from(err: DeleteDeliveryStreamError) -> Self
source§impl From<DescribeDeliveryStreamError> for Error
impl From<DescribeDeliveryStreamError> for Error
source§fn from(err: DescribeDeliveryStreamError) -> Self
fn from(err: DescribeDeliveryStreamError) -> Self
source§impl From<ListDeliveryStreamsError> for Error
impl From<ListDeliveryStreamsError> for Error
source§fn from(err: ListDeliveryStreamsError) -> Self
fn from(err: ListDeliveryStreamsError) -> Self
source§impl From<ListTagsForDeliveryStreamError> for Error
impl From<ListTagsForDeliveryStreamError> for Error
source§fn from(err: ListTagsForDeliveryStreamError) -> Self
fn from(err: ListTagsForDeliveryStreamError) -> Self
source§impl From<PutRecordBatchError> for Error
impl From<PutRecordBatchError> for Error
source§fn from(err: PutRecordBatchError) -> Self
fn from(err: PutRecordBatchError) -> Self
source§impl From<PutRecordError> for Error
impl From<PutRecordError> for Error
source§fn from(err: PutRecordError) -> Self
fn from(err: PutRecordError) -> Self
source§impl<R> From<SdkError<CreateDeliveryStreamError, R>> for Error
impl<R> From<SdkError<CreateDeliveryStreamError, R>> for Error
source§fn from(err: SdkError<CreateDeliveryStreamError, R>) -> Self
fn from(err: SdkError<CreateDeliveryStreamError, R>) -> Self
source§impl<R> From<SdkError<DeleteDeliveryStreamError, R>> for Error
impl<R> From<SdkError<DeleteDeliveryStreamError, R>> for Error
source§fn from(err: SdkError<DeleteDeliveryStreamError, R>) -> Self
fn from(err: SdkError<DeleteDeliveryStreamError, R>) -> Self
source§impl<R> From<SdkError<DescribeDeliveryStreamError, R>> for Error
impl<R> From<SdkError<DescribeDeliveryStreamError, R>> for Error
source§fn from(err: SdkError<DescribeDeliveryStreamError, R>) -> Self
fn from(err: SdkError<DescribeDeliveryStreamError, R>) -> Self
source§impl<R> From<SdkError<ListDeliveryStreamsError, R>> for Error
impl<R> From<SdkError<ListDeliveryStreamsError, R>> for Error
source§fn from(err: SdkError<ListDeliveryStreamsError, R>) -> Self
fn from(err: SdkError<ListDeliveryStreamsError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForDeliveryStreamError, R>> for Error
impl<R> From<SdkError<ListTagsForDeliveryStreamError, R>> for Error
source§fn from(err: SdkError<ListTagsForDeliveryStreamError, R>) -> Self
fn from(err: SdkError<ListTagsForDeliveryStreamError, R>) -> Self
source§impl<R> From<SdkError<PutRecordBatchError, R>> for Error
impl<R> From<SdkError<PutRecordBatchError, R>> for Error
source§fn from(err: SdkError<PutRecordBatchError, R>) -> Self
fn from(err: SdkError<PutRecordBatchError, R>) -> Self
source§impl<R> From<SdkError<PutRecordError, R>> for Error
impl<R> From<SdkError<PutRecordError, R>> for Error
source§fn from(err: SdkError<PutRecordError, R>) -> Self
fn from(err: SdkError<PutRecordError, R>) -> Self
source§impl<R> From<SdkError<StartDeliveryStreamEncryptionError, R>> for Error
impl<R> From<SdkError<StartDeliveryStreamEncryptionError, R>> for Error
source§fn from(err: SdkError<StartDeliveryStreamEncryptionError, R>) -> Self
fn from(err: SdkError<StartDeliveryStreamEncryptionError, R>) -> Self
source§impl<R> From<SdkError<StopDeliveryStreamEncryptionError, R>> for Error
impl<R> From<SdkError<StopDeliveryStreamEncryptionError, R>> for Error
source§fn from(err: SdkError<StopDeliveryStreamEncryptionError, R>) -> Self
fn from(err: SdkError<StopDeliveryStreamEncryptionError, R>) -> Self
source§impl<R> From<SdkError<TagDeliveryStreamError, R>> for Error
impl<R> From<SdkError<TagDeliveryStreamError, R>> for Error
source§fn from(err: SdkError<TagDeliveryStreamError, R>) -> Self
fn from(err: SdkError<TagDeliveryStreamError, R>) -> Self
source§impl<R> From<SdkError<UntagDeliveryStreamError, R>> for Error
impl<R> From<SdkError<UntagDeliveryStreamError, R>> for Error
source§fn from(err: SdkError<UntagDeliveryStreamError, R>) -> Self
fn from(err: SdkError<UntagDeliveryStreamError, R>) -> Self
source§impl<R> From<SdkError<UpdateDestinationError, R>> for Error
impl<R> From<SdkError<UpdateDestinationError, R>> for Error
source§fn from(err: SdkError<UpdateDestinationError, R>) -> Self
fn from(err: SdkError<UpdateDestinationError, R>) -> Self
source§impl From<StartDeliveryStreamEncryptionError> for Error
impl From<StartDeliveryStreamEncryptionError> for Error
source§fn from(err: StartDeliveryStreamEncryptionError) -> Self
fn from(err: StartDeliveryStreamEncryptionError) -> Self
source§impl From<StopDeliveryStreamEncryptionError> for Error
impl From<StopDeliveryStreamEncryptionError> for Error
source§fn from(err: StopDeliveryStreamEncryptionError) -> Self
fn from(err: StopDeliveryStreamEncryptionError) -> Self
source§impl From<TagDeliveryStreamError> for Error
impl From<TagDeliveryStreamError> for Error
source§fn from(err: TagDeliveryStreamError) -> Self
fn from(err: TagDeliveryStreamError) -> Self
source§impl From<UntagDeliveryStreamError> for Error
impl From<UntagDeliveryStreamError> for Error
source§fn from(err: UntagDeliveryStreamError) -> Self
fn from(err: UntagDeliveryStreamError) -> Self
source§impl From<UpdateDestinationError> for Error
impl From<UpdateDestinationError> for Error
source§fn from(err: UpdateDestinationError) -> Self
fn from(err: UpdateDestinationError) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more