-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
107 lines (91 loc) · 4.78 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package kinesisanalytics
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeCodeValidationException for service response error code
// "CodeValidationException".
//
// User-provided application code (query) is invalid. This can be a simple syntax
// error.
ErrCodeCodeValidationException = "CodeValidationException"
// 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"
// ErrCodeInvalidApplicationConfigurationException for service response error code
// "InvalidApplicationConfigurationException".
//
// User-provided application configuration is not valid.
ErrCodeInvalidApplicationConfigurationException = "InvalidApplicationConfigurationException"
// ErrCodeInvalidArgumentException for service response error code
// "InvalidArgumentException".
//
// Specified input parameter value is invalid.
ErrCodeInvalidArgumentException = "InvalidArgumentException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// Exceeded the number of applications allowed.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// Application is not available for this operation.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// Specified application can't be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeResourceProvisionedThroughputExceededException for service response error code
// "ResourceProvisionedThroughputExceededException".
//
// Discovery failed to get a record from the streaming source because of the
// Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information,
// see GetRecords (https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html)
// in the Amazon Kinesis Streams API Reference.
ErrCodeResourceProvisionedThroughputExceededException = "ResourceProvisionedThroughputExceededException"
// ErrCodeServiceUnavailableException for service response error code
// "ServiceUnavailableException".
//
// The service is unavailable. Back off and retry the operation.
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// Application created with too many tags, or too many tags added to an application.
// Note that the maximum number of application tags includes system tags. The
// maximum number of user-defined application tags is 50.
ErrCodeTooManyTagsException = "TooManyTagsException"
// ErrCodeUnableToDetectSchemaException for service response error code
// "UnableToDetectSchemaException".
//
// Data format is not valid. Amazon Kinesis Analytics is not able to detect
// schema for the given streaming source.
ErrCodeUnableToDetectSchemaException = "UnableToDetectSchemaException"
// ErrCodeUnsupportedOperationException for service response error code
// "UnsupportedOperationException".
//
// The request was rejected because a specified parameter is not supported or
// a specified resource is not valid for this operation.
ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"CodeValidationException": newErrorCodeValidationException,
"ConcurrentModificationException": newErrorConcurrentModificationException,
"InvalidApplicationConfigurationException": newErrorInvalidApplicationConfigurationException,
"InvalidArgumentException": newErrorInvalidArgumentException,
"LimitExceededException": newErrorLimitExceededException,
"ResourceInUseException": newErrorResourceInUseException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ResourceProvisionedThroughputExceededException": newErrorResourceProvisionedThroughputExceededException,
"ServiceUnavailableException": newErrorServiceUnavailableException,
"TooManyTagsException": newErrorTooManyTagsException,
"UnableToDetectSchemaException": newErrorUnableToDetectSchemaException,
"UnsupportedOperationException": newErrorUnsupportedOperationException,
}