/
errors.go
62 lines (51 loc) · 2.14 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package rdsdataservice
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You do not have sufficient access to perform this action.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// There is an error in the call or in a SQL statement.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeForbiddenException for service response error code
// "ForbiddenException".
//
// There are insufficient privileges to make the call.
ErrCodeForbiddenException = "ForbiddenException"
// ErrCodeInternalServerErrorException for service response error code
// "InternalServerErrorException".
//
// An internal error occurred.
ErrCodeInternalServerErrorException = "InternalServerErrorException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The resourceArn, secretArn, or transactionId value can't be found.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeServiceUnavailableError for service response error code
// "ServiceUnavailableError".
//
// The service specified by the resourceArn parameter is not available.
ErrCodeServiceUnavailableError = "ServiceUnavailableError"
// ErrCodeStatementTimeoutException for service response error code
// "StatementTimeoutException".
//
// The execution of the SQL statement timed out.
ErrCodeStatementTimeoutException = "StatementTimeoutException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"BadRequestException": newErrorBadRequestException,
"ForbiddenException": newErrorForbiddenException,
"InternalServerErrorException": newErrorInternalServerErrorException,
"NotFoundException": newErrorNotFoundException,
"ServiceUnavailableError": newErrorServiceUnavailableError,
"StatementTimeoutException": newErrorStatementTimeoutException,
}