github.com/aavshr/aws-sdk-go@v1.41.3/service/comprehendmedical/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package comprehendmedical
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeInternalServerException for service response error code
    12  	// "InternalServerException".
    13  	//
    14  	// An internal server error occurred. Retry your request.
    15  	ErrCodeInternalServerException = "InternalServerException"
    16  
    17  	// ErrCodeInvalidEncodingException for service response error code
    18  	// "InvalidEncodingException".
    19  	//
    20  	// The input text was not in valid UTF-8 character encoding. Check your text
    21  	// then retry your request.
    22  	ErrCodeInvalidEncodingException = "InvalidEncodingException"
    23  
    24  	// ErrCodeInvalidRequestException for service response error code
    25  	// "InvalidRequestException".
    26  	//
    27  	// The request that you made is invalid. Check your request to determine why
    28  	// it's invalid and then retry the request.
    29  	ErrCodeInvalidRequestException = "InvalidRequestException"
    30  
    31  	// ErrCodeResourceNotFoundException for service response error code
    32  	// "ResourceNotFoundException".
    33  	//
    34  	// The resource identified by the specified Amazon Resource Name (ARN) was not
    35  	// found. Check the ARN and try your request again.
    36  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    37  
    38  	// ErrCodeServiceUnavailableException for service response error code
    39  	// "ServiceUnavailableException".
    40  	//
    41  	// The Amazon Comprehend Medical service is temporarily unavailable. Please
    42  	// wait and then retry your request.
    43  	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
    44  
    45  	// ErrCodeTextSizeLimitExceededException for service response error code
    46  	// "TextSizeLimitExceededException".
    47  	//
    48  	// The size of the text you submitted exceeds the size limit. Reduce the size
    49  	// of the text or use a smaller document and then retry your request.
    50  	ErrCodeTextSizeLimitExceededException = "TextSizeLimitExceededException"
    51  
    52  	// ErrCodeTooManyRequestsException for service response error code
    53  	// "TooManyRequestsException".
    54  	//
    55  	// You have made too many requests within a short period of time. Wait for a
    56  	// short time and then try your request again. Contact customer support for
    57  	// more information about a service limit increase.
    58  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
    59  
    60  	// ErrCodeValidationException for service response error code
    61  	// "ValidationException".
    62  	//
    63  	// The filter that you specified for the operation is invalid. Check the filter
    64  	// values that you entered and try your request again.
    65  	ErrCodeValidationException = "ValidationException"
    66  )
    67  
    68  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    69  	"InternalServerException":        newErrorInternalServerException,
    70  	"InvalidEncodingException":       newErrorInvalidEncodingException,
    71  	"InvalidRequestException":        newErrorInvalidRequestException,
    72  	"ResourceNotFoundException":      newErrorResourceNotFoundException,
    73  	"ServiceUnavailableException":    newErrorServiceUnavailableException,
    74  	"TextSizeLimitExceededException": newErrorTextSizeLimitExceededException,
    75  	"TooManyRequestsException":       newErrorTooManyRequestsException,
    76  	"ValidationException":            newErrorValidationException,
    77  }