-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
77 lines (65 loc) · 3.1 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// 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,
}