github.com/aavshr/aws-sdk-go@v1.41.3/service/athena/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package athena 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeInternalServerException for service response error code 12 // "InternalServerException". 13 // 14 // Indicates a platform issue, which may be due to a transient condition or 15 // outage. 16 ErrCodeInternalServerException = "InternalServerException" 17 18 // ErrCodeInvalidRequestException for service response error code 19 // "InvalidRequestException". 20 // 21 // Indicates that something is wrong with the input to the request. For example, 22 // a required parameter may be missing or out of range. 23 ErrCodeInvalidRequestException = "InvalidRequestException" 24 25 // ErrCodeMetadataException for service response error code 26 // "MetadataException". 27 // 28 // An exception that Athena received when it called a custom metastore. Occurs 29 // if the error is not caused by user input (InvalidRequestException) or from 30 // the Athena platform (InternalServerException). For example, if a user-created 31 // Lambda function is missing permissions, the Lambda 4XX exception is returned 32 // in a MetadataException. 33 ErrCodeMetadataException = "MetadataException" 34 35 // ErrCodeResourceNotFoundException for service response error code 36 // "ResourceNotFoundException". 37 // 38 // A resource, such as a workgroup, was not found. 39 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 40 41 // ErrCodeTooManyRequestsException for service response error code 42 // "TooManyRequestsException". 43 // 44 // Indicates that the request was throttled. 45 ErrCodeTooManyRequestsException = "TooManyRequestsException" 46 ) 47 48 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 49 "InternalServerException": newErrorInternalServerException, 50 "InvalidRequestException": newErrorInvalidRequestException, 51 "MetadataException": newErrorMetadataException, 52 "ResourceNotFoundException": newErrorResourceNotFoundException, 53 "TooManyRequestsException": newErrorTooManyRequestsException, 54 }