-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
94 lines (79 loc) · 3.59 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 budgets
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You are not authorized to use this operation with the given parameters.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeCreationLimitExceededException for service response error code
// "CreationLimitExceededException".
//
// You've exceeded the notification or subscriber limit.
ErrCodeCreationLimitExceededException = "CreationLimitExceededException"
// ErrCodeDuplicateRecordException for service response error code
// "DuplicateRecordException".
//
// The budget name already exists. Budget names must be unique within an account.
ErrCodeDuplicateRecordException = "DuplicateRecordException"
// ErrCodeExpiredNextTokenException for service response error code
// "ExpiredNextTokenException".
//
// The pagination token expired.
ErrCodeExpiredNextTokenException = "ExpiredNextTokenException"
// ErrCodeInternalErrorException for service response error code
// "InternalErrorException".
//
// An error on the server occurred during the processing of your request. Try
// again later.
ErrCodeInternalErrorException = "InternalErrorException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The pagination token is invalid.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameterException".
//
// An error on the client occurred. Typically, the cause is an invalid input
// value.
ErrCodeInvalidParameterException = "InvalidParameterException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// We can’t locate the resource that you specified.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeResourceLockedException for service response error code
// "ResourceLockedException".
//
// The request was received and recognized by the server, but the server rejected
// that particular method for the requested resource.
ErrCodeResourceLockedException = "ResourceLockedException"
// ErrCodeServiceQuotaExceededException for service response error code
// "ServiceQuotaExceededException".
//
// You've reached the limit on the number of tags you can associate with a resource.
ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// The number of API requests has exceeded the maximum allowed API request throttling
// limit for the account.
ErrCodeThrottlingException = "ThrottlingException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"CreationLimitExceededException": newErrorCreationLimitExceededException,
"DuplicateRecordException": newErrorDuplicateRecordException,
"ExpiredNextTokenException": newErrorExpiredNextTokenException,
"InternalErrorException": newErrorInternalErrorException,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
"InvalidParameterException": newErrorInvalidParameterException,
"NotFoundException": newErrorNotFoundException,
"ResourceLockedException": newErrorResourceLockedException,
"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
"ThrottlingException": newErrorThrottlingException,
}