-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
107 lines (90 loc) · 4.12 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package sesv2
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccountSuspendedException for service response error code
// "AccountSuspendedException".
//
// The message can't be sent because the account's ability to send email has
// been permanently restricted.
ErrCodeAccountSuspendedException = "AccountSuspendedException"
// ErrCodeAlreadyExistsException for service response error code
// "AlreadyExistsException".
//
// The resource specified in your request already exists.
ErrCodeAlreadyExistsException = "AlreadyExistsException"
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// The input you provided is invalid.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// The resource is being modified by another operation or thread.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// If there is already an ongoing account details update under review.
ErrCodeConflictException = "ConflictException"
// ErrCodeInternalServiceErrorException for service response error code
// "InternalServiceErrorException".
//
// The request couldn't be processed because an error occurred with the Amazon
// SES API v2.
ErrCodeInternalServiceErrorException = "InternalServiceErrorException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The specified request includes an invalid or expired token.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// There are too many instances of the specified resource type.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeMailFromDomainNotVerifiedException for service response error code
// "MailFromDomainNotVerifiedException".
//
// The message can't be sent because the sending domain isn't verified.
ErrCodeMailFromDomainNotVerifiedException = "MailFromDomainNotVerifiedException"
// ErrCodeMessageRejected for service response error code
// "MessageRejected".
//
// The message can't be sent because it contains invalid content.
ErrCodeMessageRejected = "MessageRejected"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The resource you attempted to access doesn't exist.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeSendingPausedException for service response error code
// "SendingPausedException".
//
// The message can't be sent because the account's ability to send email is
// currently paused.
ErrCodeSendingPausedException = "SendingPausedException"
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
//
// Too many requests have been made to the operation.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccountSuspendedException": newErrorAccountSuspendedException,
"AlreadyExistsException": newErrorAlreadyExistsException,
"BadRequestException": newErrorBadRequestException,
"ConcurrentModificationException": newErrorConcurrentModificationException,
"ConflictException": newErrorConflictException,
"InternalServiceErrorException": newErrorInternalServiceErrorException,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
"LimitExceededException": newErrorLimitExceededException,
"MailFromDomainNotVerifiedException": newErrorMailFromDomainNotVerifiedException,
"MessageRejected": newErrorMessageRejected,
"NotFoundException": newErrorNotFoundException,
"SendingPausedException": newErrorSendingPausedException,
"TooManyRequestsException": newErrorTooManyRequestsException,
}