-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
55 lines (45 loc) · 1.87 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 rdsdataservice
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// 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{
"BadRequestException": newErrorBadRequestException,
"ForbiddenException": newErrorForbiddenException,
"InternalServerErrorException": newErrorInternalServerErrorException,
"NotFoundException": newErrorNotFoundException,
"ServiceUnavailableError": newErrorServiceUnavailableError,
"StatementTimeoutException": newErrorStatementTimeoutException,
}