forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
42 lines (34 loc) · 1.35 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package apigatewaymanagementapi
import (
"github.com/rocketman317/aws-sdk-go/private/protocol"
)
const (
// ErrCodeForbiddenException for service response error code
// "ForbiddenException".
//
// The caller is not authorized to invoke this operation.
ErrCodeForbiddenException = "ForbiddenException"
// ErrCodeGoneException for service response error code
// "GoneException".
//
// The connection with the provided id no longer exists.
ErrCodeGoneException = "GoneException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The client is sending more than the allowed number of requests per unit of
// time or the WebSocket client side buffer is full.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodePayloadTooLargeException for service response error code
// "PayloadTooLargeException".
//
// The data has exceeded the maximum size allowed.
ErrCodePayloadTooLargeException = "PayloadTooLargeException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ForbiddenException": newErrorForbiddenException,
"GoneException": newErrorGoneException,
"LimitExceededException": newErrorLimitExceededException,
"PayloadTooLargeException": newErrorPayloadTooLargeException,
}