-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
93 lines (79 loc) · 3.65 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appmesh
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// The request syntax was malformed. Check your request syntax and try again.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// The request contains a client token that was used for a previous update resource
// call with different specifications. Try the request again with a new client
// token.
ErrCodeConflictException = "ConflictException"
// ErrCodeForbiddenException for service response error code
// "ForbiddenException".
//
// You don't have permissions to perform this action.
ErrCodeForbiddenException = "ForbiddenException"
// ErrCodeInternalServerErrorException for service response error code
// "InternalServerErrorException".
//
// The request processing has failed because of an unknown error, exception,
// or failure.
ErrCodeInternalServerErrorException = "InternalServerErrorException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// You have exceeded a service limit for your account. For more information,
// see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service-quotas.html)
// in the AWS App Mesh User Guide.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The specified resource doesn't exist. Check your request syntax and try again.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// You can't delete the specified resource because it's in use or required by
// another resource.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeServiceUnavailableException for service response error code
// "ServiceUnavailableException".
//
// The request has failed due to a temporary failure of the service.
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
//
// The maximum request rate permitted by the App Mesh APIs has been exceeded
// for your account. For best results, use an increasing or variable sleep interval
// between requests.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// The request exceeds the maximum allowed number of tags allowed per resource.
// The current limit is 50 user tags per resource. You must reduce the number
// of tags in the request. None of the tags in this request were applied.
ErrCodeTooManyTagsException = "TooManyTagsException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"BadRequestException": newErrorBadRequestException,
"ConflictException": newErrorConflictException,
"ForbiddenException": newErrorForbiddenException,
"InternalServerErrorException": newErrorInternalServerErrorException,
"LimitExceededException": newErrorLimitExceededException,
"NotFoundException": newErrorNotFoundException,
"ResourceInUseException": newErrorResourceInUseException,
"ServiceUnavailableException": newErrorServiceUnavailableException,
"TooManyRequestsException": newErrorTooManyRequestsException,
"TooManyTagsException": newErrorTooManyTagsException,
}