-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
205 lines (173 loc) · 8.31 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package glue
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// Access to a resource was denied.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeAlreadyExistsException for service response error code
// "AlreadyExistsException".
//
// A resource to be created or added already exists.
ErrCodeAlreadyExistsException = "AlreadyExistsException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// Two processes are trying to modify a resource simultaneously.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeConcurrentRunsExceededException for service response error code
// "ConcurrentRunsExceededException".
//
// Too many jobs are being run concurrently.
ErrCodeConcurrentRunsExceededException = "ConcurrentRunsExceededException"
// ErrCodeConditionCheckFailureException for service response error code
// "ConditionCheckFailureException".
//
// A specified condition was not satisfied.
ErrCodeConditionCheckFailureException = "ConditionCheckFailureException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// The CreatePartitions API was called on a table that has indexes enabled.
ErrCodeConflictException = "ConflictException"
// ErrCodeCrawlerNotRunningException for service response error code
// "CrawlerNotRunningException".
//
// The specified crawler is not running.
ErrCodeCrawlerNotRunningException = "CrawlerNotRunningException"
// ErrCodeCrawlerRunningException for service response error code
// "CrawlerRunningException".
//
// The operation cannot be performed because the crawler is already running.
ErrCodeCrawlerRunningException = "CrawlerRunningException"
// ErrCodeCrawlerStoppingException for service response error code
// "CrawlerStoppingException".
//
// The specified crawler is stopping.
ErrCodeCrawlerStoppingException = "CrawlerStoppingException"
// ErrCodeEncryptionException for service response error code
// "GlueEncryptionException".
//
// An encryption operation failed.
ErrCodeEncryptionException = "GlueEncryptionException"
// ErrCodeEntityNotFoundException for service response error code
// "EntityNotFoundException".
//
// A specified entity does not exist
ErrCodeEntityNotFoundException = "EntityNotFoundException"
// ErrCodeIdempotentParameterMismatchException for service response error code
// "IdempotentParameterMismatchException".
//
// The same unique identifier was associated with two different records.
ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException"
// ErrCodeIllegalBlueprintStateException for service response error code
// "IllegalBlueprintStateException".
ErrCodeIllegalBlueprintStateException = "IllegalBlueprintStateException"
// ErrCodeIllegalWorkflowStateException for service response error code
// "IllegalWorkflowStateException".
//
// The workflow is in an invalid state to perform a requested operation.
ErrCodeIllegalWorkflowStateException = "IllegalWorkflowStateException"
// ErrCodeInternalServiceException for service response error code
// "InternalServiceException".
//
// An internal service error occurred.
ErrCodeInternalServiceException = "InternalServiceException"
// ErrCodeInvalidInputException for service response error code
// "InvalidInputException".
//
// The input provided was not valid.
ErrCodeInvalidInputException = "InvalidInputException"
// ErrCodeInvalidStateException for service response error code
// "InvalidStateException".
//
// An error that indicates your data is in an invalid state.
ErrCodeInvalidStateException = "InvalidStateException"
// ErrCodeMLTransformNotReadyException for service response error code
// "MLTransformNotReadyException".
//
// The machine learning transform is not ready to run.
ErrCodeMLTransformNotReadyException = "MLTransformNotReadyException"
// ErrCodeNoScheduleException for service response error code
// "NoScheduleException".
//
// There is no applicable schedule.
ErrCodeNoScheduleException = "NoScheduleException"
// ErrCodeOperationTimeoutException for service response error code
// "OperationTimeoutException".
//
// The operation timed out.
ErrCodeOperationTimeoutException = "OperationTimeoutException"
// ErrCodePermissionTypeMismatchException for service response error code
// "PermissionTypeMismatchException".
ErrCodePermissionTypeMismatchException = "PermissionTypeMismatchException"
// ErrCodeResourceNotReadyException for service response error code
// "ResourceNotReadyException".
//
// A resource was not ready for a transaction.
ErrCodeResourceNotReadyException = "ResourceNotReadyException"
// ErrCodeResourceNumberLimitExceededException for service response error code
// "ResourceNumberLimitExceededException".
//
// A resource numerical limit was exceeded.
ErrCodeResourceNumberLimitExceededException = "ResourceNumberLimitExceededException"
// ErrCodeSchedulerNotRunningException for service response error code
// "SchedulerNotRunningException".
//
// The specified scheduler is not running.
ErrCodeSchedulerNotRunningException = "SchedulerNotRunningException"
// ErrCodeSchedulerRunningException for service response error code
// "SchedulerRunningException".
//
// The specified scheduler is already running.
ErrCodeSchedulerRunningException = "SchedulerRunningException"
// ErrCodeSchedulerTransitioningException for service response error code
// "SchedulerTransitioningException".
//
// The specified scheduler is transitioning.
ErrCodeSchedulerTransitioningException = "SchedulerTransitioningException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// A value could not be validated.
ErrCodeValidationException = "ValidationException"
// ErrCodeVersionMismatchException for service response error code
// "VersionMismatchException".
//
// There was a version conflict.
ErrCodeVersionMismatchException = "VersionMismatchException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"AlreadyExistsException": newErrorAlreadyExistsException,
"ConcurrentModificationException": newErrorConcurrentModificationException,
"ConcurrentRunsExceededException": newErrorConcurrentRunsExceededException,
"ConditionCheckFailureException": newErrorConditionCheckFailureException,
"ConflictException": newErrorConflictException,
"CrawlerNotRunningException": newErrorCrawlerNotRunningException,
"CrawlerRunningException": newErrorCrawlerRunningException,
"CrawlerStoppingException": newErrorCrawlerStoppingException,
"GlueEncryptionException": newErrorEncryptionException,
"EntityNotFoundException": newErrorEntityNotFoundException,
"IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException,
"IllegalBlueprintStateException": newErrorIllegalBlueprintStateException,
"IllegalWorkflowStateException": newErrorIllegalWorkflowStateException,
"InternalServiceException": newErrorInternalServiceException,
"InvalidInputException": newErrorInvalidInputException,
"InvalidStateException": newErrorInvalidStateException,
"MLTransformNotReadyException": newErrorMLTransformNotReadyException,
"NoScheduleException": newErrorNoScheduleException,
"OperationTimeoutException": newErrorOperationTimeoutException,
"PermissionTypeMismatchException": newErrorPermissionTypeMismatchException,
"ResourceNotReadyException": newErrorResourceNotReadyException,
"ResourceNumberLimitExceededException": newErrorResourceNumberLimitExceededException,
"SchedulerNotRunningException": newErrorSchedulerNotRunningException,
"SchedulerRunningException": newErrorSchedulerRunningException,
"SchedulerTransitioningException": newErrorSchedulerTransitioningException,
"ValidationException": newErrorValidationException,
"VersionMismatchException": newErrorVersionMismatchException,
}