/
errors.go
59 lines (50 loc) · 2.16 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package transcribeservice
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// Your request didn't pass one or more validation tests. For example, if the
// transcription you're trying to delete doesn't exist or if it is in a non-terminal
// state (for example, it's "in progress"). See the exception Message field
// for more information.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// When you are using the CreateVocabulary operation, the JobName field is a
// duplicate of a previously entered job name. Resend your request with a different
// name.
//
// When you are using the UpdateVocabulary operation, there are two jobs running
// at the same time. Resend the second request later.
ErrCodeConflictException = "ConflictException"
// ErrCodeInternalFailureException for service response error code
// "InternalFailureException".
//
// There was an internal error. Check the error message and try your request
// again.
ErrCodeInternalFailureException = "InternalFailureException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// Either you have sent too many requests or your input file is too long. Wait
// before you resend your request, or use a smaller file and resend the request.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// We can't find the requested resource. Check the name and try your request
// again.
ErrCodeNotFoundException = "NotFoundException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"BadRequestException": newErrorBadRequestException,
"ConflictException": newErrorConflictException,
"InternalFailureException": newErrorInternalFailureException,
"LimitExceededException": newErrorLimitExceededException,
"NotFoundException": newErrorNotFoundException,
}