Enum aws_sdk_comprehendmedical::Error
source · #[non_exhaustive]pub enum Error {
InternalServerException(InternalServerException),
InvalidEncodingException(InvalidEncodingException),
InvalidRequestException(InvalidRequestException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceUnavailableException(ServiceUnavailableException),
TextSizeLimitExceededException(TextSizeLimitExceededException),
TooManyRequestsException(TooManyRequestsException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InternalServerException(InternalServerException)
An internal server error occurred. Retry your request.
InvalidEncodingException(InvalidEncodingException)
The input text was not in valid UTF-8 character encoding. Check your text then retry your request.
InvalidRequestException(InvalidRequestException)
The request that you made is invalid. Check your request to determine why it's invalid and then retry the request.
ResourceNotFoundException(ResourceNotFoundException)
The resource identified by the specified Amazon Resource Name (ARN) was not found. Check the ARN and try your request again.
The Amazon Comprehend Medical service is temporarily unavailable. Please wait and then retry your request.
TextSizeLimitExceededException(TextSizeLimitExceededException)
The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller document and then retry your request.
TooManyRequestsException(TooManyRequestsException)
You have made too many requests within a short period of time. Wait for a short time and then try your request again. Contact customer support for more information about a service limit increase.
ValidationException(ValidationException)
The filter that you specified for the operation is invalid. Check the filter values that you entered and try your request again.
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<DescribeEntitiesDetectionV2JobError> for Error
impl From<DescribeEntitiesDetectionV2JobError> for Error
source§fn from(err: DescribeEntitiesDetectionV2JobError) -> Self
fn from(err: DescribeEntitiesDetectionV2JobError) -> Self
source§impl From<DescribeICD10CMInferenceJobError> for Error
impl From<DescribeICD10CMInferenceJobError> for Error
source§fn from(err: DescribeICD10CMInferenceJobError) -> Self
fn from(err: DescribeICD10CMInferenceJobError) -> Self
source§impl From<DescribePHIDetectionJobError> for Error
impl From<DescribePHIDetectionJobError> for Error
source§fn from(err: DescribePHIDetectionJobError) -> Self
fn from(err: DescribePHIDetectionJobError) -> Self
source§impl From<DescribeRxNormInferenceJobError> for Error
impl From<DescribeRxNormInferenceJobError> for Error
source§fn from(err: DescribeRxNormInferenceJobError) -> Self
fn from(err: DescribeRxNormInferenceJobError) -> Self
source§impl From<DescribeSNOMEDCTInferenceJobError> for Error
impl From<DescribeSNOMEDCTInferenceJobError> for Error
source§fn from(err: DescribeSNOMEDCTInferenceJobError) -> Self
fn from(err: DescribeSNOMEDCTInferenceJobError) -> Self
source§impl From<DetectEntitiesError> for Error
impl From<DetectEntitiesError> for Error
source§fn from(err: DetectEntitiesError) -> Self
fn from(err: DetectEntitiesError) -> Self
source§impl From<DetectEntitiesV2Error> for Error
impl From<DetectEntitiesV2Error> for Error
source§fn from(err: DetectEntitiesV2Error) -> Self
fn from(err: DetectEntitiesV2Error) -> Self
source§impl From<DetectPHIError> for Error
impl From<DetectPHIError> for Error
source§fn from(err: DetectPHIError) -> Self
fn from(err: DetectPHIError) -> Self
source§impl From<InferICD10CMError> for Error
impl From<InferICD10CMError> for Error
source§fn from(err: InferICD10CMError) -> Self
fn from(err: InferICD10CMError) -> Self
source§impl From<InferRxNormError> for Error
impl From<InferRxNormError> for Error
source§fn from(err: InferRxNormError) -> Self
fn from(err: InferRxNormError) -> Self
source§impl From<InferSNOMEDCTError> for Error
impl From<InferSNOMEDCTError> for Error
source§fn from(err: InferSNOMEDCTError) -> Self
fn from(err: InferSNOMEDCTError) -> Self
source§impl From<ListEntitiesDetectionV2JobsError> for Error
impl From<ListEntitiesDetectionV2JobsError> for Error
source§fn from(err: ListEntitiesDetectionV2JobsError) -> Self
fn from(err: ListEntitiesDetectionV2JobsError) -> Self
source§impl From<ListICD10CMInferenceJobsError> for Error
impl From<ListICD10CMInferenceJobsError> for Error
source§fn from(err: ListICD10CMInferenceJobsError) -> Self
fn from(err: ListICD10CMInferenceJobsError) -> Self
source§impl From<ListPHIDetectionJobsError> for Error
impl From<ListPHIDetectionJobsError> for Error
source§fn from(err: ListPHIDetectionJobsError) -> Self
fn from(err: ListPHIDetectionJobsError) -> Self
source§impl From<ListRxNormInferenceJobsError> for Error
impl From<ListRxNormInferenceJobsError> for Error
source§fn from(err: ListRxNormInferenceJobsError) -> Self
fn from(err: ListRxNormInferenceJobsError) -> Self
source§impl From<ListSNOMEDCTInferenceJobsError> for Error
impl From<ListSNOMEDCTInferenceJobsError> for Error
source§fn from(err: ListSNOMEDCTInferenceJobsError) -> Self
fn from(err: ListSNOMEDCTInferenceJobsError) -> Self
source§impl<R> From<SdkError<DescribeEntitiesDetectionV2JobError, R>> for Error
impl<R> From<SdkError<DescribeEntitiesDetectionV2JobError, R>> for Error
source§fn from(err: SdkError<DescribeEntitiesDetectionV2JobError, R>) -> Self
fn from(err: SdkError<DescribeEntitiesDetectionV2JobError, R>) -> Self
source§impl<R> From<SdkError<DescribeICD10CMInferenceJobError, R>> for Error
impl<R> From<SdkError<DescribeICD10CMInferenceJobError, R>> for Error
source§fn from(err: SdkError<DescribeICD10CMInferenceJobError, R>) -> Self
fn from(err: SdkError<DescribeICD10CMInferenceJobError, R>) -> Self
source§impl<R> From<SdkError<DescribePHIDetectionJobError, R>> for Error
impl<R> From<SdkError<DescribePHIDetectionJobError, R>> for Error
source§fn from(err: SdkError<DescribePHIDetectionJobError, R>) -> Self
fn from(err: SdkError<DescribePHIDetectionJobError, R>) -> Self
source§impl<R> From<SdkError<DescribeRxNormInferenceJobError, R>> for Error
impl<R> From<SdkError<DescribeRxNormInferenceJobError, R>> for Error
source§fn from(err: SdkError<DescribeRxNormInferenceJobError, R>) -> Self
fn from(err: SdkError<DescribeRxNormInferenceJobError, R>) -> Self
source§impl<R> From<SdkError<DescribeSNOMEDCTInferenceJobError, R>> for Error
impl<R> From<SdkError<DescribeSNOMEDCTInferenceJobError, R>> for Error
source§fn from(err: SdkError<DescribeSNOMEDCTInferenceJobError, R>) -> Self
fn from(err: SdkError<DescribeSNOMEDCTInferenceJobError, R>) -> Self
source§impl<R> From<SdkError<DetectEntitiesError, R>> for Error
impl<R> From<SdkError<DetectEntitiesError, R>> for Error
source§fn from(err: SdkError<DetectEntitiesError, R>) -> Self
fn from(err: SdkError<DetectEntitiesError, R>) -> Self
source§impl<R> From<SdkError<DetectEntitiesV2Error, R>> for Error
impl<R> From<SdkError<DetectEntitiesV2Error, R>> for Error
source§fn from(err: SdkError<DetectEntitiesV2Error, R>) -> Self
fn from(err: SdkError<DetectEntitiesV2Error, R>) -> Self
source§impl<R> From<SdkError<DetectPHIError, R>> for Error
impl<R> From<SdkError<DetectPHIError, R>> for Error
source§fn from(err: SdkError<DetectPHIError, R>) -> Self
fn from(err: SdkError<DetectPHIError, R>) -> Self
source§impl<R> From<SdkError<InferICD10CMError, R>> for Error
impl<R> From<SdkError<InferICD10CMError, R>> for Error
source§fn from(err: SdkError<InferICD10CMError, R>) -> Self
fn from(err: SdkError<InferICD10CMError, R>) -> Self
source§impl<R> From<SdkError<InferRxNormError, R>> for Error
impl<R> From<SdkError<InferRxNormError, R>> for Error
source§fn from(err: SdkError<InferRxNormError, R>) -> Self
fn from(err: SdkError<InferRxNormError, R>) -> Self
source§impl<R> From<SdkError<InferSNOMEDCTError, R>> for Error
impl<R> From<SdkError<InferSNOMEDCTError, R>> for Error
source§fn from(err: SdkError<InferSNOMEDCTError, R>) -> Self
fn from(err: SdkError<InferSNOMEDCTError, R>) -> Self
source§impl<R> From<SdkError<ListEntitiesDetectionV2JobsError, R>> for Error
impl<R> From<SdkError<ListEntitiesDetectionV2JobsError, R>> for Error
source§fn from(err: SdkError<ListEntitiesDetectionV2JobsError, R>) -> Self
fn from(err: SdkError<ListEntitiesDetectionV2JobsError, R>) -> Self
source§impl<R> From<SdkError<ListICD10CMInferenceJobsError, R>> for Error
impl<R> From<SdkError<ListICD10CMInferenceJobsError, R>> for Error
source§fn from(err: SdkError<ListICD10CMInferenceJobsError, R>) -> Self
fn from(err: SdkError<ListICD10CMInferenceJobsError, R>) -> Self
source§impl<R> From<SdkError<ListPHIDetectionJobsError, R>> for Error
impl<R> From<SdkError<ListPHIDetectionJobsError, R>> for Error
source§fn from(err: SdkError<ListPHIDetectionJobsError, R>) -> Self
fn from(err: SdkError<ListPHIDetectionJobsError, R>) -> Self
source§impl<R> From<SdkError<ListRxNormInferenceJobsError, R>> for Error
impl<R> From<SdkError<ListRxNormInferenceJobsError, R>> for Error
source§fn from(err: SdkError<ListRxNormInferenceJobsError, R>) -> Self
fn from(err: SdkError<ListRxNormInferenceJobsError, R>) -> Self
source§impl<R> From<SdkError<ListSNOMEDCTInferenceJobsError, R>> for Error
impl<R> From<SdkError<ListSNOMEDCTInferenceJobsError, R>> for Error
source§fn from(err: SdkError<ListSNOMEDCTInferenceJobsError, R>) -> Self
fn from(err: SdkError<ListSNOMEDCTInferenceJobsError, R>) -> Self
source§impl<R> From<SdkError<StartEntitiesDetectionV2JobError, R>> for Error
impl<R> From<SdkError<StartEntitiesDetectionV2JobError, R>> for Error
source§fn from(err: SdkError<StartEntitiesDetectionV2JobError, R>) -> Self
fn from(err: SdkError<StartEntitiesDetectionV2JobError, R>) -> Self
source§impl<R> From<SdkError<StartICD10CMInferenceJobError, R>> for Error
impl<R> From<SdkError<StartICD10CMInferenceJobError, R>> for Error
source§fn from(err: SdkError<StartICD10CMInferenceJobError, R>) -> Self
fn from(err: SdkError<StartICD10CMInferenceJobError, R>) -> Self
source§impl<R> From<SdkError<StartPHIDetectionJobError, R>> for Error
impl<R> From<SdkError<StartPHIDetectionJobError, R>> for Error
source§fn from(err: SdkError<StartPHIDetectionJobError, R>) -> Self
fn from(err: SdkError<StartPHIDetectionJobError, R>) -> Self
source§impl<R> From<SdkError<StartRxNormInferenceJobError, R>> for Error
impl<R> From<SdkError<StartRxNormInferenceJobError, R>> for Error
source§fn from(err: SdkError<StartRxNormInferenceJobError, R>) -> Self
fn from(err: SdkError<StartRxNormInferenceJobError, R>) -> Self
source§impl<R> From<SdkError<StartSNOMEDCTInferenceJobError, R>> for Error
impl<R> From<SdkError<StartSNOMEDCTInferenceJobError, R>> for Error
source§fn from(err: SdkError<StartSNOMEDCTInferenceJobError, R>) -> Self
fn from(err: SdkError<StartSNOMEDCTInferenceJobError, R>) -> Self
source§impl<R> From<SdkError<StopEntitiesDetectionV2JobError, R>> for Error
impl<R> From<SdkError<StopEntitiesDetectionV2JobError, R>> for Error
source§fn from(err: SdkError<StopEntitiesDetectionV2JobError, R>) -> Self
fn from(err: SdkError<StopEntitiesDetectionV2JobError, R>) -> Self
source§impl<R> From<SdkError<StopICD10CMInferenceJobError, R>> for Error
impl<R> From<SdkError<StopICD10CMInferenceJobError, R>> for Error
source§fn from(err: SdkError<StopICD10CMInferenceJobError, R>) -> Self
fn from(err: SdkError<StopICD10CMInferenceJobError, R>) -> Self
source§impl<R> From<SdkError<StopPHIDetectionJobError, R>> for Error
impl<R> From<SdkError<StopPHIDetectionJobError, R>> for Error
source§fn from(err: SdkError<StopPHIDetectionJobError, R>) -> Self
fn from(err: SdkError<StopPHIDetectionJobError, R>) -> Self
source§impl<R> From<SdkError<StopRxNormInferenceJobError, R>> for Error
impl<R> From<SdkError<StopRxNormInferenceJobError, R>> for Error
source§fn from(err: SdkError<StopRxNormInferenceJobError, R>) -> Self
fn from(err: SdkError<StopRxNormInferenceJobError, R>) -> Self
source§impl<R> From<SdkError<StopSNOMEDCTInferenceJobError, R>> for Error
impl<R> From<SdkError<StopSNOMEDCTInferenceJobError, R>> for Error
source§fn from(err: SdkError<StopSNOMEDCTInferenceJobError, R>) -> Self
fn from(err: SdkError<StopSNOMEDCTInferenceJobError, R>) -> Self
source§impl From<StartEntitiesDetectionV2JobError> for Error
impl From<StartEntitiesDetectionV2JobError> for Error
source§fn from(err: StartEntitiesDetectionV2JobError) -> Self
fn from(err: StartEntitiesDetectionV2JobError) -> Self
source§impl From<StartICD10CMInferenceJobError> for Error
impl From<StartICD10CMInferenceJobError> for Error
source§fn from(err: StartICD10CMInferenceJobError) -> Self
fn from(err: StartICD10CMInferenceJobError) -> Self
source§impl From<StartPHIDetectionJobError> for Error
impl From<StartPHIDetectionJobError> for Error
source§fn from(err: StartPHIDetectionJobError) -> Self
fn from(err: StartPHIDetectionJobError) -> Self
source§impl From<StartRxNormInferenceJobError> for Error
impl From<StartRxNormInferenceJobError> for Error
source§fn from(err: StartRxNormInferenceJobError) -> Self
fn from(err: StartRxNormInferenceJobError) -> Self
source§impl From<StartSNOMEDCTInferenceJobError> for Error
impl From<StartSNOMEDCTInferenceJobError> for Error
source§fn from(err: StartSNOMEDCTInferenceJobError) -> Self
fn from(err: StartSNOMEDCTInferenceJobError) -> Self
source§impl From<StopEntitiesDetectionV2JobError> for Error
impl From<StopEntitiesDetectionV2JobError> for Error
source§fn from(err: StopEntitiesDetectionV2JobError) -> Self
fn from(err: StopEntitiesDetectionV2JobError) -> Self
source§impl From<StopICD10CMInferenceJobError> for Error
impl From<StopICD10CMInferenceJobError> for Error
source§fn from(err: StopICD10CMInferenceJobError) -> Self
fn from(err: StopICD10CMInferenceJobError) -> Self
source§impl From<StopPHIDetectionJobError> for Error
impl From<StopPHIDetectionJobError> for Error
source§fn from(err: StopPHIDetectionJobError) -> Self
fn from(err: StopPHIDetectionJobError) -> Self
source§impl From<StopRxNormInferenceJobError> for Error
impl From<StopRxNormInferenceJobError> for Error
source§fn from(err: StopRxNormInferenceJobError) -> Self
fn from(err: StopRxNormInferenceJobError) -> Self
source§impl From<StopSNOMEDCTInferenceJobError> for Error
impl From<StopSNOMEDCTInferenceJobError> for Error
source§fn from(err: StopSNOMEDCTInferenceJobError) -> Self
fn from(err: StopSNOMEDCTInferenceJobError) -> 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