#[non_exhaustive]
pub enum InferRxNormErrorKind {
InternalServerException(InternalServerException),
InvalidEncodingException(InvalidEncodingException),
InvalidRequestException(InvalidRequestException),
ServiceUnavailableException(ServiceUnavailableException),
TextSizeLimitExceededException(TextSizeLimitExceededException),
TooManyRequestsException(TooManyRequestsException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
Types of errors that can occur for the InferRxNorm
operation.
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.
ServiceUnavailableException(ServiceUnavailableException)
The 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.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unexpected error, e.g. invalid JSON returned by the service or an unknown error code
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for InferRxNormErrorKind
impl Send for InferRxNormErrorKind
impl Sync for InferRxNormErrorKind
impl Unpin for InferRxNormErrorKind
impl !UnwindSafe for InferRxNormErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more