github.com/aavshr/aws-sdk-go@v1.41.3/service/redshiftdataapiservice/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package redshiftdataapiservice 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeActiveStatementsExceededException for service response error code 12 // "ActiveStatementsExceededException". 13 // 14 // The number of active statements exceeds the limit. 15 ErrCodeActiveStatementsExceededException = "ActiveStatementsExceededException" 16 17 // ErrCodeBatchExecuteStatementException for service response error code 18 // "BatchExecuteStatementException". 19 // 20 // An SQL statement encountered an environmental error while running. 21 ErrCodeBatchExecuteStatementException = "BatchExecuteStatementException" 22 23 // ErrCodeExecuteStatementException for service response error code 24 // "ExecuteStatementException". 25 // 26 // The SQL statement encountered an environmental error while running. 27 ErrCodeExecuteStatementException = "ExecuteStatementException" 28 29 // ErrCodeInternalServerException for service response error code 30 // "InternalServerException". 31 // 32 // The Amazon Redshift Data API operation failed due to invalid input. 33 ErrCodeInternalServerException = "InternalServerException" 34 35 // ErrCodeResourceNotFoundException for service response error code 36 // "ResourceNotFoundException". 37 // 38 // The Amazon Redshift Data API operation failed due to a missing resource. 39 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 40 41 // ErrCodeValidationException for service response error code 42 // "ValidationException". 43 // 44 // The Amazon Redshift Data API operation failed due to invalid input. 45 ErrCodeValidationException = "ValidationException" 46 ) 47 48 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 49 "ActiveStatementsExceededException": newErrorActiveStatementsExceededException, 50 "BatchExecuteStatementException": newErrorBatchExecuteStatementException, 51 "ExecuteStatementException": newErrorExecuteStatementException, 52 "InternalServerException": newErrorInternalServerException, 53 "ResourceNotFoundException": newErrorResourceNotFoundException, 54 "ValidationException": newErrorValidationException, 55 }