github.com/aavshr/aws-sdk-go@v1.41.3/service/rdsdataservice/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package rdsdataservice 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeBadRequestException for service response error code 12 // "BadRequestException". 13 // 14 // There is an error in the call or in a SQL statement. 15 ErrCodeBadRequestException = "BadRequestException" 16 17 // ErrCodeForbiddenException for service response error code 18 // "ForbiddenException". 19 // 20 // There are insufficient privileges to make the call. 21 ErrCodeForbiddenException = "ForbiddenException" 22 23 // ErrCodeInternalServerErrorException for service response error code 24 // "InternalServerErrorException". 25 // 26 // An internal error occurred. 27 ErrCodeInternalServerErrorException = "InternalServerErrorException" 28 29 // ErrCodeNotFoundException for service response error code 30 // "NotFoundException". 31 // 32 // The resourceArn, secretArn, or transactionId value can't be found. 33 ErrCodeNotFoundException = "NotFoundException" 34 35 // ErrCodeServiceUnavailableError for service response error code 36 // "ServiceUnavailableError". 37 // 38 // The service specified by the resourceArn parameter is not available. 39 ErrCodeServiceUnavailableError = "ServiceUnavailableError" 40 41 // ErrCodeStatementTimeoutException for service response error code 42 // "StatementTimeoutException". 43 // 44 // The execution of the SQL statement timed out. 45 ErrCodeStatementTimeoutException = "StatementTimeoutException" 46 ) 47 48 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 49 "BadRequestException": newErrorBadRequestException, 50 "ForbiddenException": newErrorForbiddenException, 51 "InternalServerErrorException": newErrorInternalServerErrorException, 52 "NotFoundException": newErrorNotFoundException, 53 "ServiceUnavailableError": newErrorServiceUnavailableError, 54 "StatementTimeoutException": newErrorStatementTimeoutException, 55 }