-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
149 lines (129 loc) · 6.68 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package gamelift
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// The requested operation would cause a conflict with the current state of
// a service resource associated with the request. Resolve the conflict before
// retrying this request.
ErrCodeConflictException = "ConflictException"
// ErrCodeFleetCapacityExceededException for service response error code
// "FleetCapacityExceededException".
//
// The specified fleet has no available instances to fulfill a CreateGameSession
// request. Clients can retry such requests immediately or after a waiting period.
ErrCodeFleetCapacityExceededException = "FleetCapacityExceededException"
// ErrCodeGameSessionFullException for service response error code
// "GameSessionFullException".
//
// The game instance is currently full and cannot allow the requested player(s)
// to join. Clients can retry such requests immediately or after a waiting period.
ErrCodeGameSessionFullException = "GameSessionFullException"
// ErrCodeIdempotentParameterMismatchException for service response error code
// "IdempotentParameterMismatchException".
//
// A game session with this custom ID string already exists in this fleet. Resolve
// this conflict before retrying this request.
ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException"
// ErrCodeInternalServiceException for service response error code
// "InternalServiceException".
//
// The service encountered an unrecoverable internal failure while processing
// the request. Clients can retry such requests immediately or after a waiting
// period.
ErrCodeInternalServiceException = "InternalServiceException"
// ErrCodeInvalidFleetStatusException for service response error code
// "InvalidFleetStatusException".
//
// The requested operation would cause a conflict with the current state of
// a resource associated with the request and/or the fleet. Resolve the conflict
// before retrying.
ErrCodeInvalidFleetStatusException = "InvalidFleetStatusException"
// ErrCodeInvalidGameSessionStatusException for service response error code
// "InvalidGameSessionStatusException".
//
// The requested operation would cause a conflict with the current state of
// a resource associated with the request and/or the game instance. Resolve
// the conflict before retrying.
ErrCodeInvalidGameSessionStatusException = "InvalidGameSessionStatusException"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// One or more parameter values in the request are invalid. Correct the invalid
// parameter values before retrying.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The requested operation would cause the resource to exceed the allowed service
// limit. Resolve the issue before retrying.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// THe requested resources was not found. The resource was either not created
// yet or deleted.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeNotReadyException for service response error code
// "NotReadyException".
//
// The operation failed because Amazon GameLift has not yet finished validating
// this compute. We recommend attempting 8 to 10 retries over 3 to 5 minutes
// with exponential backoffs and jitter (http://aws.amazon.com/blogs/https:/aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/).
ErrCodeNotReadyException = "NotReadyException"
// ErrCodeOutOfCapacityException for service response error code
// "OutOfCapacityException".
//
// The specified game server group has no available game servers to fulfill
// a ClaimGameServer request. Clients can retry such requests immediately or
// after a waiting period.
ErrCodeOutOfCapacityException = "OutOfCapacityException"
// ErrCodeTaggingFailedException for service response error code
// "TaggingFailedException".
//
// The requested tagging operation did not succeed. This may be due to invalid
// tag format or the maximum tag limit may have been exceeded. Resolve the issue
// before retrying.
ErrCodeTaggingFailedException = "TaggingFailedException"
// ErrCodeTerminalRoutingStrategyException for service response error code
// "TerminalRoutingStrategyException".
//
// The service is unable to resolve the routing for a particular alias because
// it has a terminal RoutingStrategy associated with it. The message returned
// in this exception is the message defined in the routing strategy itself.
// Such requests should only be retried if the routing strategy for the specified
// alias is modified.
ErrCodeTerminalRoutingStrategyException = "TerminalRoutingStrategyException"
// ErrCodeUnauthorizedException for service response error code
// "UnauthorizedException".
//
// The client failed authentication. Clients should not retry such requests.
ErrCodeUnauthorizedException = "UnauthorizedException"
// ErrCodeUnsupportedRegionException for service response error code
// "UnsupportedRegionException".
//
// The requested operation is not supported in the Region specified.
ErrCodeUnsupportedRegionException = "UnsupportedRegionException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ConflictException": newErrorConflictException,
"FleetCapacityExceededException": newErrorFleetCapacityExceededException,
"GameSessionFullException": newErrorGameSessionFullException,
"IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException,
"InternalServiceException": newErrorInternalServiceException,
"InvalidFleetStatusException": newErrorInvalidFleetStatusException,
"InvalidGameSessionStatusException": newErrorInvalidGameSessionStatusException,
"InvalidRequestException": newErrorInvalidRequestException,
"LimitExceededException": newErrorLimitExceededException,
"NotFoundException": newErrorNotFoundException,
"NotReadyException": newErrorNotReadyException,
"OutOfCapacityException": newErrorOutOfCapacityException,
"TaggingFailedException": newErrorTaggingFailedException,
"TerminalRoutingStrategyException": newErrorTerminalRoutingStrategyException,
"UnauthorizedException": newErrorUnauthorizedException,
"UnsupportedRegionException": newErrorUnsupportedRegionException,
}