-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
94 lines (81 loc) · 3.83 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 mediaconnect
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAddFlowOutputs420Exception for service response error code
// "AddFlowOutputs420Exception".
//
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
ErrCodeAddFlowOutputs420Exception = "AddFlowOutputs420Exception"
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeCreateFlow420Exception for service response error code
// "CreateFlow420Exception".
//
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
ErrCodeCreateFlow420Exception = "CreateFlow420Exception"
// ErrCodeForbiddenException for service response error code
// "ForbiddenException".
//
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
ErrCodeForbiddenException = "ForbiddenException"
// ErrCodeGrantFlowEntitlements420Exception for service response error code
// "GrantFlowEntitlements420Exception".
//
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
ErrCodeGrantFlowEntitlements420Exception = "GrantFlowEntitlements420Exception"
// ErrCodeInternalServerErrorException for service response error code
// "InternalServerErrorException".
//
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
ErrCodeInternalServerErrorException = "InternalServerErrorException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeServiceUnavailableException for service response error code
// "ServiceUnavailableException".
//
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
//
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AddFlowOutputs420Exception": newErrorAddFlowOutputs420Exception,
"BadRequestException": newErrorBadRequestException,
"CreateFlow420Exception": newErrorCreateFlow420Exception,
"ForbiddenException": newErrorForbiddenException,
"GrantFlowEntitlements420Exception": newErrorGrantFlowEntitlements420Exception,
"InternalServerErrorException": newErrorInternalServerErrorException,
"NotFoundException": newErrorNotFoundException,
"ServiceUnavailableException": newErrorServiceUnavailableException,
"TooManyRequestsException": newErrorTooManyRequestsException,
}