/
errors.go
90 lines (75 loc) · 3.48 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package connect
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeContactNotFoundException for service response error code
// "ContactNotFoundException".
//
// The contact with the specified ID is not active or does not exist.
ErrCodeContactNotFoundException = "ContactNotFoundException"
// ErrCodeDestinationNotAllowedException for service response error code
// "DestinationNotAllowedException".
//
// Outbound calls to the destination number are not allowed.
ErrCodeDestinationNotAllowedException = "DestinationNotAllowedException"
// ErrCodeDuplicateResourceException for service response error code
// "DuplicateResourceException".
//
// A resource with the specified name already exists.
ErrCodeDuplicateResourceException = "DuplicateResourceException"
// ErrCodeInternalServiceException for service response error code
// "InternalServiceException".
//
// Request processing failed due to an error or failure with the service.
ErrCodeInternalServiceException = "InternalServiceException"
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameterException".
//
// One or more of the specified parameters are not valid.
ErrCodeInvalidParameterException = "InvalidParameterException"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// The request is not valid.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The allowed limit for the resource has been exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeOutboundContactNotPermittedException for service response error code
// "OutboundContactNotPermittedException".
//
// The contact is not permitted.
ErrCodeOutboundContactNotPermittedException = "OutboundContactNotPermittedException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified resource was not found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// The throttling limit has been exceeded.
ErrCodeThrottlingException = "ThrottlingException"
// ErrCodeUserNotFoundException for service response error code
// "UserNotFoundException".
//
// No user with the specified credentials was found in the Amazon Connect instance.
ErrCodeUserNotFoundException = "UserNotFoundException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ContactNotFoundException": newErrorContactNotFoundException,
"DestinationNotAllowedException": newErrorDestinationNotAllowedException,
"DuplicateResourceException": newErrorDuplicateResourceException,
"InternalServiceException": newErrorInternalServiceException,
"InvalidParameterException": newErrorInvalidParameterException,
"InvalidRequestException": newErrorInvalidRequestException,
"LimitExceededException": newErrorLimitExceededException,
"OutboundContactNotPermittedException": newErrorOutboundContactNotPermittedException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ThrottlingException": newErrorThrottlingException,
"UserNotFoundException": newErrorUserNotFoundException,
}