-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
80 lines (67 loc) · 3.03 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package bedrockagentruntime
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// The request is denied because of missing access permissions. Check your permissions
// and retry your request.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeBadGatewayException for service response error code
// "BadGatewayException".
//
// There was an issue with a dependency due to a server issue. Retry your request.
ErrCodeBadGatewayException = "BadGatewayException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// There was a conflict performing an operation. Resolve the conflict and retry
// your request.
ErrCodeConflictException = "ConflictException"
// ErrCodeDependencyFailedException for service response error code
// "DependencyFailedException".
//
// There was an issue with a dependency. Check the resource configurations and
// retry the request.
ErrCodeDependencyFailedException = "DependencyFailedException"
// ErrCodeInternalServerException for service response error code
// "InternalServerException".
//
// An internal server error occurred. Retry your request.
ErrCodeInternalServerException = "InternalServerException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified resource Amazon Resource Name (ARN) was not found. Check the
// Amazon Resource Name (ARN) and try your request again.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceQuotaExceededException for service response error code
// "ServiceQuotaExceededException".
//
// The number of requests exceeds the service quota. Resubmit your request later.
ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// The number of requests exceeds the limit. Resubmit your request later.
ErrCodeThrottlingException = "ThrottlingException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// Input validation failed. Check your request parameters and retry the request.
ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"BadGatewayException": newErrorBadGatewayException,
"ConflictException": newErrorConflictException,
"DependencyFailedException": newErrorDependencyFailedException,
"InternalServerException": newErrorInternalServerException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
"ThrottlingException": newErrorThrottlingException,
"ValidationException": newErrorValidationException,
}