forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
61 lines (51 loc) · 2.43 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package kinesisvideomedia
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeClientLimitExceededException for service response error code
// "ClientLimitExceededException".
//
// Kinesis Video Streams has throttled the request because you have exceeded
// the limit of allowed client calls. Try making the call later.
ErrCodeClientLimitExceededException = "ClientLimitExceededException"
// ErrCodeConnectionLimitExceededException for service response error code
// "ConnectionLimitExceededException".
//
// Kinesis Video Streams has throttled the request because you have exceeded
// the limit of allowed client connections.
ErrCodeConnectionLimitExceededException = "ConnectionLimitExceededException"
// ErrCodeInvalidArgumentException for service response error code
// "InvalidArgumentException".
//
// The value for this input parameter is invalid.
ErrCodeInvalidArgumentException = "InvalidArgumentException"
// ErrCodeInvalidEndpointException for service response error code
// "InvalidEndpointException".
//
// Status Code: 400, Caller used wrong endpoint to write data to a stream. On
// receiving such an exception, the user must call GetDataEndpoint with AccessMode
// set to "READ" and use the endpoint Kinesis Video returns in the next GetMedia
// call.
ErrCodeInvalidEndpointException = "InvalidEndpointException"
// ErrCodeNotAuthorizedException for service response error code
// "NotAuthorizedException".
//
// Status Code: 403, The caller is not authorized to perform an operation on
// the given stream, or the token has expired.
ErrCodeNotAuthorizedException = "NotAuthorizedException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// Status Code: 404, The stream with the given name does not exist.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ClientLimitExceededException": newErrorClientLimitExceededException,
"ConnectionLimitExceededException": newErrorConnectionLimitExceededException,
"InvalidArgumentException": newErrorInvalidArgumentException,
"InvalidEndpointException": newErrorInvalidEndpointException,
"NotAuthorizedException": newErrorNotAuthorizedException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
}