-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
102 lines (86 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
95
96
97
98
99
100
101
102
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package devicefarm
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeArgumentException for service response error code
// "ArgumentException".
//
// An invalid argument was specified.
ErrCodeArgumentException = "ArgumentException"
// ErrCodeCannotDeleteException for service response error code
// "CannotDeleteException".
//
// The requested object could not be deleted.
ErrCodeCannotDeleteException = "CannotDeleteException"
// ErrCodeIdempotencyException for service response error code
// "IdempotencyException".
//
// An entity with the same name already exists.
ErrCodeIdempotencyException = "IdempotencyException"
// ErrCodeInternalServiceException for service response error code
// "InternalServiceException".
//
// An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com
// (mailto:aws-devicefarm-support@amazon.com) if you see this error.
ErrCodeInternalServiceException = "InternalServiceException"
// ErrCodeInvalidOperationException for service response error code
// "InvalidOperationException".
//
// There was an error with the update request, or you do not have sufficient
// permissions to update this VPC endpoint configuration.
ErrCodeInvalidOperationException = "InvalidOperationException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// A limit was exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotEligibleException for service response error code
// "NotEligibleException".
//
// Exception gets thrown when a user is not eligible to perform the specified
// transaction.
ErrCodeNotEligibleException = "NotEligibleException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The specified entity was not found.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeServiceAccountException for service response error code
// "ServiceAccountException".
//
// There was a problem with the service account.
ErrCodeServiceAccountException = "ServiceAccountException"
// ErrCodeTagOperationException for service response error code
// "TagOperationException".
//
// The operation was not successful. Try again.
ErrCodeTagOperationException = "TagOperationException"
// ErrCodeTagPolicyException for service response error code
// "TagPolicyException".
//
// The request doesn't comply with the AWS Identity and Access Management (IAM)
// tag policy. Correct your request and then retry it.
ErrCodeTagPolicyException = "TagPolicyException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// The list of tags on the repository is over the limit. The maximum number
// of tags that can be applied to a repository is 50.
ErrCodeTooManyTagsException = "TooManyTagsException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ArgumentException": newErrorArgumentException,
"CannotDeleteException": newErrorCannotDeleteException,
"IdempotencyException": newErrorIdempotencyException,
"InternalServiceException": newErrorInternalServiceException,
"InvalidOperationException": newErrorInvalidOperationException,
"LimitExceededException": newErrorLimitExceededException,
"NotEligibleException": newErrorNotEligibleException,
"NotFoundException": newErrorNotFoundException,
"ServiceAccountException": newErrorServiceAccountException,
"TagOperationException": newErrorTagOperationException,
"TagPolicyException": newErrorTagPolicyException,
"TooManyTagsException": newErrorTooManyTagsException,
}