-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
231 lines (199 loc) · 11 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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package chatbot
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// There was an issue processing your request.
ErrCodeConflictException = "ConflictException"
// ErrCodeCreateChimeWebhookConfigurationException for service response error code
// "CreateChimeWebhookConfigurationException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeCreateChimeWebhookConfigurationException = "CreateChimeWebhookConfigurationException"
// ErrCodeCreateSlackChannelConfigurationException for service response error code
// "CreateSlackChannelConfigurationException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeCreateSlackChannelConfigurationException = "CreateSlackChannelConfigurationException"
// ErrCodeCreateTeamsChannelConfigurationException for service response error code
// "CreateTeamsChannelConfigurationException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeCreateTeamsChannelConfigurationException = "CreateTeamsChannelConfigurationException"
// ErrCodeDeleteChimeWebhookConfigurationException for service response error code
// "DeleteChimeWebhookConfigurationException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeDeleteChimeWebhookConfigurationException = "DeleteChimeWebhookConfigurationException"
// ErrCodeDeleteMicrosoftTeamsUserIdentityException for service response error code
// "DeleteMicrosoftTeamsUserIdentityException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeDeleteMicrosoftTeamsUserIdentityException = "DeleteMicrosoftTeamsUserIdentityException"
// ErrCodeDeleteSlackChannelConfigurationException for service response error code
// "DeleteSlackChannelConfigurationException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeDeleteSlackChannelConfigurationException = "DeleteSlackChannelConfigurationException"
// ErrCodeDeleteSlackUserIdentityException for service response error code
// "DeleteSlackUserIdentityException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeDeleteSlackUserIdentityException = "DeleteSlackUserIdentityException"
// ErrCodeDeleteSlackWorkspaceAuthorizationFault for service response error code
// "DeleteSlackWorkspaceAuthorizationFault".
//
// There was an issue deleting your Slack workspace.
ErrCodeDeleteSlackWorkspaceAuthorizationFault = "DeleteSlackWorkspaceAuthorizationFault"
// ErrCodeDeleteTeamsChannelConfigurationException for service response error code
// "DeleteTeamsChannelConfigurationException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeDeleteTeamsChannelConfigurationException = "DeleteTeamsChannelConfigurationException"
// ErrCodeDeleteTeamsConfiguredTeamException for service response error code
// "DeleteTeamsConfiguredTeamException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeDeleteTeamsConfiguredTeamException = "DeleteTeamsConfiguredTeamException"
// ErrCodeDescribeChimeWebhookConfigurationsException for service response error code
// "DescribeChimeWebhookConfigurationsException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeDescribeChimeWebhookConfigurationsException = "DescribeChimeWebhookConfigurationsException"
// ErrCodeDescribeSlackChannelConfigurationsException for service response error code
// "DescribeSlackChannelConfigurationsException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeDescribeSlackChannelConfigurationsException = "DescribeSlackChannelConfigurationsException"
// ErrCodeDescribeSlackUserIdentitiesException for service response error code
// "DescribeSlackUserIdentitiesException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeDescribeSlackUserIdentitiesException = "DescribeSlackUserIdentitiesException"
// ErrCodeDescribeSlackWorkspacesException for service response error code
// "DescribeSlackWorkspacesException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeDescribeSlackWorkspacesException = "DescribeSlackWorkspacesException"
// ErrCodeGetAccountPreferencesException for service response error code
// "GetAccountPreferencesException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeGetAccountPreferencesException = "GetAccountPreferencesException"
// ErrCodeGetTeamsChannelConfigurationException for service response error code
// "GetTeamsChannelConfigurationException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeGetTeamsChannelConfigurationException = "GetTeamsChannelConfigurationException"
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameterException".
//
// Your request input doesn't meet the constraints that AWS Chatbot requires.
ErrCodeInvalidParameterException = "InvalidParameterException"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// Your request input doesn't meet the constraints that AWS Chatbot requires.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// You have exceeded a service limit for AWS Chatbot.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeListMicrosoftTeamsConfiguredTeamsException for service response error code
// "ListMicrosoftTeamsConfiguredTeamsException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeListMicrosoftTeamsConfiguredTeamsException = "ListMicrosoftTeamsConfiguredTeamsException"
// ErrCodeListMicrosoftTeamsUserIdentitiesException for service response error code
// "ListMicrosoftTeamsUserIdentitiesException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeListMicrosoftTeamsUserIdentitiesException = "ListMicrosoftTeamsUserIdentitiesException"
// ErrCodeListTeamsChannelConfigurationsException for service response error code
// "ListTeamsChannelConfigurationsException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeListTeamsChannelConfigurationsException = "ListTeamsChannelConfigurationsException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// We were not able to find the resource for your request.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeUpdateAccountPreferencesException for service response error code
// "UpdateAccountPreferencesException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeUpdateAccountPreferencesException = "UpdateAccountPreferencesException"
// ErrCodeUpdateChimeWebhookConfigurationException for service response error code
// "UpdateChimeWebhookConfigurationException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeUpdateChimeWebhookConfigurationException = "UpdateChimeWebhookConfigurationException"
// ErrCodeUpdateSlackChannelConfigurationException for service response error code
// "UpdateSlackChannelConfigurationException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeUpdateSlackChannelConfigurationException = "UpdateSlackChannelConfigurationException"
// ErrCodeUpdateTeamsChannelConfigurationException for service response error code
// "UpdateTeamsChannelConfigurationException".
//
// We can’t process your request right now because of a server issue. Try
// again later.
ErrCodeUpdateTeamsChannelConfigurationException = "UpdateTeamsChannelConfigurationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ConflictException": newErrorConflictException,
"CreateChimeWebhookConfigurationException": newErrorCreateChimeWebhookConfigurationException,
"CreateSlackChannelConfigurationException": newErrorCreateSlackChannelConfigurationException,
"CreateTeamsChannelConfigurationException": newErrorCreateTeamsChannelConfigurationException,
"DeleteChimeWebhookConfigurationException": newErrorDeleteChimeWebhookConfigurationException,
"DeleteMicrosoftTeamsUserIdentityException": newErrorDeleteMicrosoftTeamsUserIdentityException,
"DeleteSlackChannelConfigurationException": newErrorDeleteSlackChannelConfigurationException,
"DeleteSlackUserIdentityException": newErrorDeleteSlackUserIdentityException,
"DeleteSlackWorkspaceAuthorizationFault": newErrorDeleteSlackWorkspaceAuthorizationFault,
"DeleteTeamsChannelConfigurationException": newErrorDeleteTeamsChannelConfigurationException,
"DeleteTeamsConfiguredTeamException": newErrorDeleteTeamsConfiguredTeamException,
"DescribeChimeWebhookConfigurationsException": newErrorDescribeChimeWebhookConfigurationsException,
"DescribeSlackChannelConfigurationsException": newErrorDescribeSlackChannelConfigurationsException,
"DescribeSlackUserIdentitiesException": newErrorDescribeSlackUserIdentitiesException,
"DescribeSlackWorkspacesException": newErrorDescribeSlackWorkspacesException,
"GetAccountPreferencesException": newErrorGetAccountPreferencesException,
"GetTeamsChannelConfigurationException": newErrorGetTeamsChannelConfigurationException,
"InvalidParameterException": newErrorInvalidParameterException,
"InvalidRequestException": newErrorInvalidRequestException,
"LimitExceededException": newErrorLimitExceededException,
"ListMicrosoftTeamsConfiguredTeamsException": newErrorListMicrosoftTeamsConfiguredTeamsException,
"ListMicrosoftTeamsUserIdentitiesException": newErrorListMicrosoftTeamsUserIdentitiesException,
"ListTeamsChannelConfigurationsException": newErrorListTeamsChannelConfigurationsException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"UpdateAccountPreferencesException": newErrorUpdateAccountPreferencesException,
"UpdateChimeWebhookConfigurationException": newErrorUpdateChimeWebhookConfigurationException,
"UpdateSlackChannelConfigurationException": newErrorUpdateSlackChannelConfigurationException,
"UpdateTeamsChannelConfigurationException": newErrorUpdateTeamsChannelConfigurationException,
}