File: //opt/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.8/service/comprehendmedical/errors.go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package comprehendmedical
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeInternalServerException for service response error code
// "InternalServerException".
//
// An internal server error occurred. Retry your request.
ErrCodeInternalServerException = "InternalServerException"
// ErrCodeInvalidEncodingException for service response error code
// "InvalidEncodingException".
//
// The input text was not in valid UTF-8 character encoding. Check your text
// then retry your request.
ErrCodeInvalidEncodingException = "InvalidEncodingException"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// The request that you made is invalid. Check your request to determine why
// it's invalid and then retry the request.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The resource identified by the specified Amazon Resource Name (ARN) was not
// found. Check the ARN and try your request again.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceUnavailableException for service response error code
// "ServiceUnavailableException".
//
// The Amazon Comprehend Medical service is temporarily unavailable. Please
// wait and then retry your request.
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
// ErrCodeTextSizeLimitExceededException for service response error code
// "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.
ErrCodeTextSizeLimitExceededException = "TextSizeLimitExceededException"
// ErrCodeTooManyRequestsException for service response error code
// "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.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// The filter that you specified for the operation is invalid. Check the filter
// values that you entered and try your request again.
ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"InternalServerException": newErrorInternalServerException,
"InvalidEncodingException": newErrorInvalidEncodingException,
"InvalidRequestException": newErrorInvalidRequestException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ServiceUnavailableException": newErrorServiceUnavailableException,
"TextSizeLimitExceededException": newErrorTextSizeLimitExceededException,
"TooManyRequestsException": newErrorTooManyRequestsException,
"ValidationException": newErrorValidationException,
}