/
errors.go
55 lines (45 loc) · 2.05 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package qldb
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameterException".
//
// One or more parameters in the request aren't valid.
ErrCodeInvalidParameterException = "InvalidParameterException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// You have reached the limit on the maximum number of resources allowed.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeResourceAlreadyExistsException for service response error code
// "ResourceAlreadyExistsException".
//
// The specified resource already exists.
ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The specified resource can't be modified at this time.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified resource doesn't exist.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeResourcePreconditionNotMetException for service response error code
// "ResourcePreconditionNotMetException".
//
// The operation failed because a condition wasn't satisfied in advance.
ErrCodeResourcePreconditionNotMetException = "ResourcePreconditionNotMetException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"InvalidParameterException": newErrorInvalidParameterException,
"LimitExceededException": newErrorLimitExceededException,
"ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException,
"ResourceInUseException": newErrorResourceInUseException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ResourcePreconditionNotMetException": newErrorResourcePreconditionNotMetException,
}