-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
94 lines (79 loc) · 3.69 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appsync
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You don't have access to perform this operation on this resource.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeApiKeyLimitExceededException for service response error code
// "ApiKeyLimitExceededException".
//
// The API key exceeded a limit. Try your request again.
ErrCodeApiKeyLimitExceededException = "ApiKeyLimitExceededException"
// ErrCodeApiKeyValidityOutOfBoundsException for service response error code
// "ApiKeyValidityOutOfBoundsException".
//
// The API key expiration must be set to a value between 1 and 365 days from
// creation (for CreateApiKey) or from update (for UpdateApiKey).
ErrCodeApiKeyValidityOutOfBoundsException = "ApiKeyValidityOutOfBoundsException"
// ErrCodeApiLimitExceededException for service response error code
// "ApiLimitExceededException".
//
// The GraphQL API exceeded a limit. Try your request again.
ErrCodeApiLimitExceededException = "ApiLimitExceededException"
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// The request is not well formed. For example, a value is invalid or a required
// field is missing. Check the field values, and then try again.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// Another modification is in progress at this time and it must complete before
// you can make your change.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeGraphQLSchemaException for service response error code
// "GraphQLSchemaException".
//
// The GraphQL schema is not valid.
ErrCodeGraphQLSchemaException = "GraphQLSchemaException"
// ErrCodeInternalFailureException for service response error code
// "InternalFailureException".
//
// An internal AppSync error occurred. Try your request again.
ErrCodeInternalFailureException = "InternalFailureException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The request exceeded a limit. Try your request again.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The resource specified in the request was not found. Check the resource,
// and then try again.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeUnauthorizedException for service response error code
// "UnauthorizedException".
//
// You aren't authorized to perform this operation.
ErrCodeUnauthorizedException = "UnauthorizedException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"ApiKeyLimitExceededException": newErrorApiKeyLimitExceededException,
"ApiKeyValidityOutOfBoundsException": newErrorApiKeyValidityOutOfBoundsException,
"ApiLimitExceededException": newErrorApiLimitExceededException,
"BadRequestException": newErrorBadRequestException,
"ConcurrentModificationException": newErrorConcurrentModificationException,
"GraphQLSchemaException": newErrorGraphQLSchemaException,
"InternalFailureException": newErrorInternalFailureException,
"LimitExceededException": newErrorLimitExceededException,
"NotFoundException": newErrorNotFoundException,
"UnauthorizedException": newErrorUnauthorizedException,
}