#[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
BadGatewayException(BadGatewayException),
ConflictException(ConflictException),
DependencyFailedException(DependencyFailedException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
The request is denied because of missing access permissions. Check your permissions and retry your request.
BadGatewayException(BadGatewayException)
There was an issue with a dependency due to a server issue. Retry your request.
ConflictException(ConflictException)
There was a conflict performing an operation. Resolve the conflict and retry your request.
DependencyFailedException(DependencyFailedException)
There was an issue with a dependency. Check the resource configurations and retry the request.
InternalServerException(InternalServerException)
An internal server error occurred. Retry your request.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The number of requests exceeds the service quota. Resubmit your request later.
ThrottlingException(ThrottlingException)
The number of requests exceeds the limit. Resubmit your request later.
ValidationException(ValidationException)
Input validation failed. Check your request parameters and retry the request.
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<DeleteAgentMemoryError> for Error
impl From<DeleteAgentMemoryError> for Error
source§fn from(err: DeleteAgentMemoryError) -> Self
fn from(err: DeleteAgentMemoryError) -> Self
source§impl From<FlowResponseStreamError> for Error
impl From<FlowResponseStreamError> for Error
source§fn from(err: FlowResponseStreamError) -> Self
fn from(err: FlowResponseStreamError) -> Self
source§impl From<GetAgentMemoryError> for Error
impl From<GetAgentMemoryError> for Error
source§fn from(err: GetAgentMemoryError) -> Self
fn from(err: GetAgentMemoryError) -> Self
source§impl From<InvokeAgentError> for Error
impl From<InvokeAgentError> for Error
source§fn from(err: InvokeAgentError) -> Self
fn from(err: InvokeAgentError) -> Self
source§impl From<InvokeFlowError> for Error
impl From<InvokeFlowError> for Error
source§fn from(err: InvokeFlowError) -> Self
fn from(err: InvokeFlowError) -> Self
source§impl From<ResponseStreamError> for Error
impl From<ResponseStreamError> for Error
source§fn from(err: ResponseStreamError) -> Self
fn from(err: ResponseStreamError) -> Self
source§impl From<RetrieveAndGenerateError> for Error
impl From<RetrieveAndGenerateError> for Error
source§fn from(err: RetrieveAndGenerateError) -> Self
fn from(err: RetrieveAndGenerateError) -> Self
source§impl From<RetrieveError> for Error
impl From<RetrieveError> for Error
source§fn from(err: RetrieveError) -> Self
fn from(err: RetrieveError) -> Self
source§impl<R> From<SdkError<DeleteAgentMemoryError, R>> for Error
impl<R> From<SdkError<DeleteAgentMemoryError, R>> for Error
source§fn from(err: SdkError<DeleteAgentMemoryError, R>) -> Self
fn from(err: SdkError<DeleteAgentMemoryError, R>) -> Self
source§impl<R> From<SdkError<FlowResponseStreamError, R>> for Error
impl<R> From<SdkError<FlowResponseStreamError, R>> for Error
source§fn from(err: SdkError<FlowResponseStreamError, R>) -> Self
fn from(err: SdkError<FlowResponseStreamError, R>) -> Self
source§impl<R> From<SdkError<GetAgentMemoryError, R>> for Error
impl<R> From<SdkError<GetAgentMemoryError, R>> for Error
source§fn from(err: SdkError<GetAgentMemoryError, R>) -> Self
fn from(err: SdkError<GetAgentMemoryError, R>) -> Self
source§impl<R> From<SdkError<InvokeAgentError, R>> for Error
impl<R> From<SdkError<InvokeAgentError, R>> for Error
source§fn from(err: SdkError<InvokeAgentError, R>) -> Self
fn from(err: SdkError<InvokeAgentError, R>) -> Self
source§impl<R> From<SdkError<InvokeFlowError, R>> for Error
impl<R> From<SdkError<InvokeFlowError, R>> for Error
source§fn from(err: SdkError<InvokeFlowError, R>) -> Self
fn from(err: SdkError<InvokeFlowError, R>) -> Self
source§impl<R> From<SdkError<ResponseStreamError, R>> for Error
impl<R> From<SdkError<ResponseStreamError, R>> for Error
source§fn from(err: SdkError<ResponseStreamError, R>) -> Self
fn from(err: SdkError<ResponseStreamError, R>) -> Self
source§impl<R> From<SdkError<RetrieveAndGenerateError, R>> for Error
impl<R> From<SdkError<RetrieveAndGenerateError, R>> for Error
source§fn from(err: SdkError<RetrieveAndGenerateError, R>) -> Self
fn from(err: SdkError<RetrieveAndGenerateError, R>) -> Self
source§impl<R> From<SdkError<RetrieveError, R>> for Error
impl<R> From<SdkError<RetrieveError, R>> for Error
source§fn from(err: SdkError<RetrieveError, R>) -> Self
fn from(err: SdkError<RetrieveError, 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