Enum aws_sdk_lexruntime::Error
source · #[non_exhaustive]pub enum Error {
BadGatewayException(BadGatewayException),
BadRequestException(BadRequestException),
ConflictException(ConflictException),
DependencyFailedException(DependencyFailedException),
InternalFailureException(InternalFailureException),
LimitExceededException(LimitExceededException),
LoopDetectedException(LoopDetectedException),
NotAcceptableException(NotAcceptableException),
NotFoundException(NotFoundException),
RequestTimeoutException(RequestTimeoutException),
UnsupportedMediaTypeException(UnsupportedMediaTypeException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BadGatewayException(BadGatewayException)
Either the Amazon Lex bot is still building, or one of the dependent services (Amazon Polly, AWS Lambda) failed with an internal service error.
BadRequestException(BadRequestException)
Request validation failed, there is no usable message in the context, or the bot build failed, is still in progress, or contains unbuilt changes.
ConflictException(ConflictException)
Two clients are using the same AWS account, Amazon Lex bot, and user ID.
DependencyFailedException(DependencyFailedException)
One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. For example,
-
If Amazon Lex does not have sufficient permissions to call a Lambda function.
-
If a Lambda function takes longer than 30 seconds to execute.
-
If a fulfillment Lambda function returns a
Delegate
dialog action without removing any slot values.
InternalFailureException(InternalFailureException)
Internal service error. Retry the call.
LimitExceededException(LimitExceededException)
Exceeded a limit.
LoopDetectedException(LoopDetectedException)
This exception is not used.
NotAcceptableException(NotAcceptableException)
The accept header in the request does not have a valid value.
NotFoundException(NotFoundException)
The resource (such as the Amazon Lex bot or an alias) that is referred to is not found.
RequestTimeoutException(RequestTimeoutException)
The input speech is too long.
UnsupportedMediaTypeException(UnsupportedMediaTypeException)
The Content-Type header (PostContent
API) has an invalid value.
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<DeleteSessionError> for Error
impl From<DeleteSessionError> for Error
source§fn from(err: DeleteSessionError) -> Self
fn from(err: DeleteSessionError) -> Self
source§impl From<GetSessionError> for Error
impl From<GetSessionError> for Error
source§fn from(err: GetSessionError) -> Self
fn from(err: GetSessionError) -> Self
source§impl From<PostContentError> for Error
impl From<PostContentError> for Error
source§fn from(err: PostContentError) -> Self
fn from(err: PostContentError) -> Self
source§impl From<PostTextError> for Error
impl From<PostTextError> for Error
source§fn from(err: PostTextError) -> Self
fn from(err: PostTextError) -> Self
source§impl From<PutSessionError> for Error
impl From<PutSessionError> for Error
source§fn from(err: PutSessionError) -> Self
fn from(err: PutSessionError) -> Self
source§impl<R> From<SdkError<DeleteSessionError, R>> for Error
impl<R> From<SdkError<DeleteSessionError, R>> for Error
source§fn from(err: SdkError<DeleteSessionError, R>) -> Self
fn from(err: SdkError<DeleteSessionError, R>) -> Self
source§impl<R> From<SdkError<GetSessionError, R>> for Error
impl<R> From<SdkError<GetSessionError, R>> for Error
source§fn from(err: SdkError<GetSessionError, R>) -> Self
fn from(err: SdkError<GetSessionError, R>) -> Self
source§impl<R> From<SdkError<PostContentError, R>> for Error
impl<R> From<SdkError<PostContentError, R>> for Error
source§fn from(err: SdkError<PostContentError, R>) -> Self
fn from(err: SdkError<PostContentError, R>) -> Self
source§impl<R> From<SdkError<PostTextError, R>> for Error
impl<R> From<SdkError<PostTextError, R>> for Error
source§fn from(err: SdkError<PostTextError, R>) -> Self
fn from(err: SdkError<PostTextError, R>) -> Self
source§impl<R> From<SdkError<PutSessionError, R>> for Error
impl<R> From<SdkError<PutSessionError, R>> for Error
source§fn from(err: SdkError<PutSessionError, R>) -> Self
fn from(err: SdkError<PutSessionError, R>) -> 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