/
errors.go
59 lines (49 loc) · 2.08 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package augmentedairuntime
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// Your request has the same name as another active human loop but has different
// input data. You cannot start two human loops with the same name and different
// input data.
ErrCodeConflictException = "ConflictException"
// ErrCodeInternalServerException for service response error code
// "InternalServerException".
//
// We couldn't process your request because of an issue with the server. Try
// again later.
ErrCodeInternalServerException = "InternalServerException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// We couldn't find the requested resource.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceQuotaExceededException for service response error code
// "ServiceQuotaExceededException".
//
// You exceeded your service quota. Delete some resources or request an increase
// in your service quota.
ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// You exceeded the maximum number of requests.
ErrCodeThrottlingException = "ThrottlingException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// The request isn't valid. Check the syntax and try again.
ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ConflictException": newErrorConflictException,
"InternalServerException": newErrorInternalServerException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
"ThrottlingException": newErrorThrottlingException,
"ValidationException": newErrorValidationException,
}