-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
145 lines (123 loc) · 6.02 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package lakeformation
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"
// ErrCodeEntityNotFoundException for service response error code
// "EntityNotFoundException".
//
// A specified entity does not exist.
ErrCodeEntityNotFoundException = "EntityNotFoundException"
// ErrCodeExpiredException for service response error code
// "ExpiredException".
//
// Contains details about an error where the query request expired.
ErrCodeExpiredException = "ExpiredException"
// ErrCodeGlueEncryptionException for service response error code
// "GlueEncryptionException".
//
// An encryption operation failed.
ErrCodeGlueEncryptionException = "GlueEncryptionException"
// 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"
// ErrCodeOperationTimeoutException for service response error code
// "OperationTimeoutException".
//
// The operation timed out.
ErrCodeOperationTimeoutException = "OperationTimeoutException"
// ErrCodePermissionTypeMismatchException for service response error code
// "PermissionTypeMismatchException".
//
// The engine does not support filtering data based on the enforced permissions.
// For example, if you call the GetTemporaryGlueTableCredentials operation with
// SupportedPermissionType equal to ColumnPermission, but cell-level permissions
// exist on the table, this exception is thrown.
ErrCodePermissionTypeMismatchException = "PermissionTypeMismatchException"
// ErrCodeResourceNotReadyException for service response error code
// "ResourceNotReadyException".
//
// Contains details about an error related to a resource which is not ready
// for a transaction.
ErrCodeResourceNotReadyException = "ResourceNotReadyException"
// ErrCodeResourceNumberLimitExceededException for service response error code
// "ResourceNumberLimitExceededException".
//
// A resource numerical limit was exceeded.
ErrCodeResourceNumberLimitExceededException = "ResourceNumberLimitExceededException"
// ErrCodeStatisticsNotReadyYetException for service response error code
// "StatisticsNotReadyYetException".
//
// Contains details about an error related to statistics not being ready.
ErrCodeStatisticsNotReadyYetException = "StatisticsNotReadyYetException"
// ErrCodeThrottledException for service response error code
// "ThrottledException".
//
// Contains details about an error where the query request was throttled.
ErrCodeThrottledException = "ThrottledException"
// ErrCodeTransactionCanceledException for service response error code
// "TransactionCanceledException".
//
// Contains details about an error related to a transaction that was cancelled.
ErrCodeTransactionCanceledException = "TransactionCanceledException"
// ErrCodeTransactionCommitInProgressException for service response error code
// "TransactionCommitInProgressException".
//
// Contains details about an error related to a transaction commit that was
// in progress.
ErrCodeTransactionCommitInProgressException = "TransactionCommitInProgressException"
// ErrCodeTransactionCommittedException for service response error code
// "TransactionCommittedException".
//
// Contains details about an error where the specified transaction has already
// been committed and cannot be used for UpdateTableObjects.
ErrCodeTransactionCommittedException = "TransactionCommittedException"
// ErrCodeWorkUnitsNotReadyYetException for service response error code
// "WorkUnitsNotReadyYetException".
//
// Contains details about an error related to work units not being ready.
ErrCodeWorkUnitsNotReadyYetException = "WorkUnitsNotReadyYetException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"AlreadyExistsException": newErrorAlreadyExistsException,
"ConcurrentModificationException": newErrorConcurrentModificationException,
"EntityNotFoundException": newErrorEntityNotFoundException,
"ExpiredException": newErrorExpiredException,
"GlueEncryptionException": newErrorGlueEncryptionException,
"InternalServiceException": newErrorInternalServiceException,
"InvalidInputException": newErrorInvalidInputException,
"OperationTimeoutException": newErrorOperationTimeoutException,
"PermissionTypeMismatchException": newErrorPermissionTypeMismatchException,
"ResourceNotReadyException": newErrorResourceNotReadyException,
"ResourceNumberLimitExceededException": newErrorResourceNumberLimitExceededException,
"StatisticsNotReadyYetException": newErrorStatisticsNotReadyYetException,
"ThrottledException": newErrorThrottledException,
"TransactionCanceledException": newErrorTransactionCanceledException,
"TransactionCommitInProgressException": newErrorTransactionCommitInProgressException,
"TransactionCommittedException": newErrorTransactionCommittedException,
"WorkUnitsNotReadyYetException": newErrorWorkUnitsNotReadyYetException,
}