-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
134 lines (113 loc) · 5.63 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package codestarconnections
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You do not have sufficient access to perform this action.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// Exception thrown as a result of concurrent modification to an application.
// For example, two individuals attempting to edit the same application at the
// same time.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeConditionalCheckFailedException for service response error code
// "ConditionalCheckFailedException".
//
// The conditional check failed. Try again later.
ErrCodeConditionalCheckFailedException = "ConditionalCheckFailedException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// Two conflicting operations have been made on the same resource.
ErrCodeConflictException = "ConflictException"
// ErrCodeInternalServerException for service response error code
// "InternalServerException".
//
// Received an internal server exception. Try again later.
ErrCodeInternalServerException = "InternalServerException"
// ErrCodeInvalidInputException for service response error code
// "InvalidInputException".
//
// The input is not valid. Verify that the action is typed correctly.
ErrCodeInvalidInputException = "InvalidInputException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// Exceeded the maximum limit for connections.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeResourceAlreadyExistsException for service response error code
// "ResourceAlreadyExistsException".
//
// Unable to create resource. Resource already exists.
ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// Resource not found. Verify the connection resource ARN and try again.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeResourceUnavailableException for service response error code
// "ResourceUnavailableException".
//
// Resource not found. Verify the ARN for the host resource and try again.
ErrCodeResourceUnavailableException = "ResourceUnavailableException"
// ErrCodeRetryLatestCommitFailedException for service response error code
// "RetryLatestCommitFailedException".
//
// Retrying the latest commit failed. Try again later.
ErrCodeRetryLatestCommitFailedException = "RetryLatestCommitFailedException"
// ErrCodeSyncBlockerDoesNotExistException for service response error code
// "SyncBlockerDoesNotExistException".
//
// Unable to continue. The sync blocker does not exist.
ErrCodeSyncBlockerDoesNotExistException = "SyncBlockerDoesNotExistException"
// ErrCodeSyncConfigurationStillExistsException for service response error code
// "SyncConfigurationStillExistsException".
//
// Unable to continue. The sync blocker still exists.
ErrCodeSyncConfigurationStillExistsException = "SyncConfigurationStillExistsException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// The request was denied due to request throttling.
ErrCodeThrottlingException = "ThrottlingException"
// ErrCodeUnsupportedOperationException for service response error code
// "UnsupportedOperationException".
//
// The operation is not supported. Check the connection status and try again.
ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
// ErrCodeUnsupportedProviderTypeException for service response error code
// "UnsupportedProviderTypeException".
//
// The specified provider type is not supported for connections.
ErrCodeUnsupportedProviderTypeException = "UnsupportedProviderTypeException"
// ErrCodeUpdateOutOfSyncException for service response error code
// "UpdateOutOfSyncException".
//
// The update is out of sync. Try syncing again.
ErrCodeUpdateOutOfSyncException = "UpdateOutOfSyncException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"ConcurrentModificationException": newErrorConcurrentModificationException,
"ConditionalCheckFailedException": newErrorConditionalCheckFailedException,
"ConflictException": newErrorConflictException,
"InternalServerException": newErrorInternalServerException,
"InvalidInputException": newErrorInvalidInputException,
"LimitExceededException": newErrorLimitExceededException,
"ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ResourceUnavailableException": newErrorResourceUnavailableException,
"RetryLatestCommitFailedException": newErrorRetryLatestCommitFailedException,
"SyncBlockerDoesNotExistException": newErrorSyncBlockerDoesNotExistException,
"SyncConfigurationStillExistsException": newErrorSyncConfigurationStillExistsException,
"ThrottlingException": newErrorThrottlingException,
"UnsupportedOperationException": newErrorUnsupportedOperationException,
"UnsupportedProviderTypeException": newErrorUnsupportedProviderTypeException,
"UpdateOutOfSyncException": newErrorUpdateOutOfSyncException,
}