Enum aws_sdk_kinesisanalytics::Error
source · #[non_exhaustive]pub enum Error {
Show 13 variants
CodeValidationException(CodeValidationException),
ConcurrentModificationException(ConcurrentModificationException),
InvalidApplicationConfigurationException(InvalidApplicationConfigurationException),
InvalidArgumentException(InvalidArgumentException),
LimitExceededException(LimitExceededException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceProvisionedThroughputExceededException(ResourceProvisionedThroughputExceededException),
ServiceUnavailableException(ServiceUnavailableException),
TooManyTagsException(TooManyTagsException),
UnableToDetectSchemaException(UnableToDetectSchemaException),
UnsupportedOperationException(UnsupportedOperationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CodeValidationException(CodeValidationException)
User-provided application code (query) is invalid. This can be a simple syntax error.
ConcurrentModificationException(ConcurrentModificationException)
Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
InvalidApplicationConfigurationException(InvalidApplicationConfigurationException)
User-provided application configuration is not valid.
InvalidArgumentException(InvalidArgumentException)
Specified input parameter value is invalid.
LimitExceededException(LimitExceededException)
Exceeded the number of applications allowed.
ResourceInUseException(ResourceInUseException)
Application is not available for this operation.
ResourceNotFoundException(ResourceNotFoundException)
Specified application can't be found.
ResourceProvisionedThroughputExceededException(ResourceProvisionedThroughputExceededException)
Discovery failed to get a record from the streaming source because of the Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, see GetRecords in the Amazon Kinesis Streams API Reference.
The service is unavailable. Back off and retry the operation.
TooManyTagsException(TooManyTagsException)
Application created with too many tags, or too many tags added to an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50.
UnableToDetectSchemaException(UnableToDetectSchemaException)
Data format is not valid. Amazon Kinesis Analytics is not able to detect schema for the given streaming source.
UnsupportedOperationException(UnsupportedOperationException)
The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.
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<AddApplicationCloudWatchLoggingOptionError> for Error
impl From<AddApplicationCloudWatchLoggingOptionError> for Error
source§fn from(err: AddApplicationCloudWatchLoggingOptionError) -> Self
fn from(err: AddApplicationCloudWatchLoggingOptionError) -> Self
source§impl From<AddApplicationInputError> for Error
impl From<AddApplicationInputError> for Error
source§fn from(err: AddApplicationInputError) -> Self
fn from(err: AddApplicationInputError) -> Self
source§impl From<AddApplicationInputProcessingConfigurationError> for Error
impl From<AddApplicationInputProcessingConfigurationError> for Error
source§fn from(err: AddApplicationInputProcessingConfigurationError) -> Self
fn from(err: AddApplicationInputProcessingConfigurationError) -> Self
source§impl From<AddApplicationOutputError> for Error
impl From<AddApplicationOutputError> for Error
source§fn from(err: AddApplicationOutputError) -> Self
fn from(err: AddApplicationOutputError) -> Self
source§impl From<AddApplicationReferenceDataSourceError> for Error
impl From<AddApplicationReferenceDataSourceError> for Error
source§fn from(err: AddApplicationReferenceDataSourceError) -> Self
fn from(err: AddApplicationReferenceDataSourceError) -> Self
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<CreateApplicationError> for Error
impl From<CreateApplicationError> for Error
source§fn from(err: CreateApplicationError) -> Self
fn from(err: CreateApplicationError) -> Self
source§impl From<DeleteApplicationCloudWatchLoggingOptionError> for Error
impl From<DeleteApplicationCloudWatchLoggingOptionError> for Error
source§fn from(err: DeleteApplicationCloudWatchLoggingOptionError) -> Self
fn from(err: DeleteApplicationCloudWatchLoggingOptionError) -> Self
source§impl From<DeleteApplicationError> for Error
impl From<DeleteApplicationError> for Error
source§fn from(err: DeleteApplicationError) -> Self
fn from(err: DeleteApplicationError) -> Self
source§impl From<DeleteApplicationInputProcessingConfigurationError> for Error
impl From<DeleteApplicationInputProcessingConfigurationError> for Error
source§fn from(err: DeleteApplicationInputProcessingConfigurationError) -> Self
fn from(err: DeleteApplicationInputProcessingConfigurationError) -> Self
source§impl From<DeleteApplicationOutputError> for Error
impl From<DeleteApplicationOutputError> for Error
source§fn from(err: DeleteApplicationOutputError) -> Self
fn from(err: DeleteApplicationOutputError) -> Self
source§impl From<DeleteApplicationReferenceDataSourceError> for Error
impl From<DeleteApplicationReferenceDataSourceError> for Error
source§fn from(err: DeleteApplicationReferenceDataSourceError) -> Self
fn from(err: DeleteApplicationReferenceDataSourceError) -> Self
source§impl From<DescribeApplicationError> for Error
impl From<DescribeApplicationError> for Error
source§fn from(err: DescribeApplicationError) -> Self
fn from(err: DescribeApplicationError) -> Self
source§impl From<DiscoverInputSchemaError> for Error
impl From<DiscoverInputSchemaError> for Error
source§fn from(err: DiscoverInputSchemaError) -> Self
fn from(err: DiscoverInputSchemaError) -> Self
source§impl From<ListApplicationsError> for Error
impl From<ListApplicationsError> for Error
source§fn from(err: ListApplicationsError) -> Self
fn from(err: ListApplicationsError) -> Self
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
source§impl<R> From<SdkError<AddApplicationCloudWatchLoggingOptionError, R>> for Error
impl<R> From<SdkError<AddApplicationCloudWatchLoggingOptionError, R>> for Error
source§fn from(err: SdkError<AddApplicationCloudWatchLoggingOptionError, R>) -> Self
fn from(err: SdkError<AddApplicationCloudWatchLoggingOptionError, R>) -> Self
source§impl<R> From<SdkError<AddApplicationInputError, R>> for Error
impl<R> From<SdkError<AddApplicationInputError, R>> for Error
source§fn from(err: SdkError<AddApplicationInputError, R>) -> Self
fn from(err: SdkError<AddApplicationInputError, R>) -> Self
source§impl<R> From<SdkError<AddApplicationInputProcessingConfigurationError, R>> for Error
impl<R> From<SdkError<AddApplicationInputProcessingConfigurationError, R>> for Error
source§fn from(
err: SdkError<AddApplicationInputProcessingConfigurationError, R>
) -> Self
fn from( err: SdkError<AddApplicationInputProcessingConfigurationError, R> ) -> Self
source§impl<R> From<SdkError<AddApplicationOutputError, R>> for Error
impl<R> From<SdkError<AddApplicationOutputError, R>> for Error
source§fn from(err: SdkError<AddApplicationOutputError, R>) -> Self
fn from(err: SdkError<AddApplicationOutputError, R>) -> Self
source§impl<R> From<SdkError<AddApplicationReferenceDataSourceError, R>> for Error
impl<R> From<SdkError<AddApplicationReferenceDataSourceError, R>> for Error
source§fn from(err: SdkError<AddApplicationReferenceDataSourceError, R>) -> Self
fn from(err: SdkError<AddApplicationReferenceDataSourceError, R>) -> Self
source§impl<R> From<SdkError<CreateApplicationError, R>> for Error
impl<R> From<SdkError<CreateApplicationError, R>> for Error
source§fn from(err: SdkError<CreateApplicationError, R>) -> Self
fn from(err: SdkError<CreateApplicationError, R>) -> Self
source§impl<R> From<SdkError<DeleteApplicationCloudWatchLoggingOptionError, R>> for Error
impl<R> From<SdkError<DeleteApplicationCloudWatchLoggingOptionError, R>> for Error
source§fn from(err: SdkError<DeleteApplicationCloudWatchLoggingOptionError, R>) -> Self
fn from(err: SdkError<DeleteApplicationCloudWatchLoggingOptionError, R>) -> Self
source§impl<R> From<SdkError<DeleteApplicationError, R>> for Error
impl<R> From<SdkError<DeleteApplicationError, R>> for Error
source§fn from(err: SdkError<DeleteApplicationError, R>) -> Self
fn from(err: SdkError<DeleteApplicationError, R>) -> Self
source§impl<R> From<SdkError<DeleteApplicationInputProcessingConfigurationError, R>> for Error
impl<R> From<SdkError<DeleteApplicationInputProcessingConfigurationError, R>> for Error
source§fn from(
err: SdkError<DeleteApplicationInputProcessingConfigurationError, R>
) -> Self
fn from( err: SdkError<DeleteApplicationInputProcessingConfigurationError, R> ) -> Self
source§impl<R> From<SdkError<DeleteApplicationOutputError, R>> for Error
impl<R> From<SdkError<DeleteApplicationOutputError, R>> for Error
source§fn from(err: SdkError<DeleteApplicationOutputError, R>) -> Self
fn from(err: SdkError<DeleteApplicationOutputError, R>) -> Self
source§impl<R> From<SdkError<DeleteApplicationReferenceDataSourceError, R>> for Error
impl<R> From<SdkError<DeleteApplicationReferenceDataSourceError, R>> for Error
source§fn from(err: SdkError<DeleteApplicationReferenceDataSourceError, R>) -> Self
fn from(err: SdkError<DeleteApplicationReferenceDataSourceError, R>) -> Self
source§impl<R> From<SdkError<DescribeApplicationError, R>> for Error
impl<R> From<SdkError<DescribeApplicationError, R>> for Error
source§fn from(err: SdkError<DescribeApplicationError, R>) -> Self
fn from(err: SdkError<DescribeApplicationError, R>) -> Self
source§impl<R> From<SdkError<DiscoverInputSchemaError, R>> for Error
impl<R> From<SdkError<DiscoverInputSchemaError, R>> for Error
source§fn from(err: SdkError<DiscoverInputSchemaError, R>) -> Self
fn from(err: SdkError<DiscoverInputSchemaError, R>) -> Self
source§impl<R> From<SdkError<ListApplicationsError, R>> for Error
impl<R> From<SdkError<ListApplicationsError, R>> for Error
source§fn from(err: SdkError<ListApplicationsError, R>) -> Self
fn from(err: SdkError<ListApplicationsError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
source§impl<R> From<SdkError<StartApplicationError, R>> for Error
impl<R> From<SdkError<StartApplicationError, R>> for Error
source§fn from(err: SdkError<StartApplicationError, R>) -> Self
fn from(err: SdkError<StartApplicationError, R>) -> Self
source§impl<R> From<SdkError<StopApplicationError, R>> for Error
impl<R> From<SdkError<StopApplicationError, R>> for Error
source§fn from(err: SdkError<StopApplicationError, R>) -> Self
fn from(err: SdkError<StopApplicationError, R>) -> Self
source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
source§impl<R> From<SdkError<UpdateApplicationError, R>> for Error
impl<R> From<SdkError<UpdateApplicationError, R>> for Error
source§fn from(err: SdkError<UpdateApplicationError, R>) -> Self
fn from(err: SdkError<UpdateApplicationError, R>) -> Self
source§impl From<StartApplicationError> for Error
impl From<StartApplicationError> for Error
source§fn from(err: StartApplicationError) -> Self
fn from(err: StartApplicationError) -> Self
source§impl From<StopApplicationError> for Error
impl From<StopApplicationError> for Error
source§fn from(err: StopApplicationError) -> Self
fn from(err: StopApplicationError) -> Self
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
source§impl From<UpdateApplicationError> for Error
impl From<UpdateApplicationError> for Error
source§fn from(err: UpdateApplicationError) -> Self
fn from(err: UpdateApplicationError) -> 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