github.com/aavshr/aws-sdk-go@v1.41.3/service/finspace/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package finspace 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAccessDeniedException for service response error code 12 // "AccessDeniedException". 13 // 14 // You do not have sufficient access to perform this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeInternalServerException for service response error code 18 // "InternalServerException". 19 // 20 // The request processing has failed because of an unknown error, exception 21 // or failure. 22 ErrCodeInternalServerException = "InternalServerException" 23 24 // ErrCodeInvalidRequestException for service response error code 25 // "InvalidRequestException". 26 // 27 // The request is invalid. Something is wrong with the input to the request. 28 ErrCodeInvalidRequestException = "InvalidRequestException" 29 30 // ErrCodeLimitExceededException for service response error code 31 // "LimitExceededException". 32 // 33 // A service limit or quota is exceeded. 34 ErrCodeLimitExceededException = "LimitExceededException" 35 36 // ErrCodeResourceNotFoundException for service response error code 37 // "ResourceNotFoundException". 38 // 39 // One or more resources can't be found. 40 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 41 42 // ErrCodeServiceQuotaExceededException for service response error code 43 // "ServiceQuotaExceededException". 44 // 45 // You have exceeded your service quota. To perform the requested action, remove 46 // some of the relevant resources, or use Service Quotas to request a service 47 // quota increase. 48 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 49 50 // ErrCodeThrottlingException for service response error code 51 // "ThrottlingException". 52 // 53 // The request was denied due to request throttling. 54 ErrCodeThrottlingException = "ThrottlingException" 55 56 // ErrCodeValidationException for service response error code 57 // "ValidationException". 58 // 59 // The input fails to satisfy the constraints specified by an AWS service. 60 ErrCodeValidationException = "ValidationException" 61 ) 62 63 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 64 "AccessDeniedException": newErrorAccessDeniedException, 65 "InternalServerException": newErrorInternalServerException, 66 "InvalidRequestException": newErrorInvalidRequestException, 67 "LimitExceededException": newErrorLimitExceededException, 68 "ResourceNotFoundException": newErrorResourceNotFoundException, 69 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 70 "ThrottlingException": newErrorThrottlingException, 71 "ValidationException": newErrorValidationException, 72 }