github.com/aavshr/aws-sdk-go@v1.41.3/service/codeguruprofiler/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package codeguruprofiler 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeConflictException for service response error code 12 // "ConflictException". 13 // 14 // The requested operation would cause a conflict with the current state of 15 // a service resource associated with the request. Resolve the conflict before 16 // retrying this request. 17 ErrCodeConflictException = "ConflictException" 18 19 // ErrCodeInternalServerException for service response error code 20 // "InternalServerException". 21 // 22 // The server encountered an internal error and is unable to complete the request. 23 ErrCodeInternalServerException = "InternalServerException" 24 25 // ErrCodeResourceNotFoundException for service response error code 26 // "ResourceNotFoundException". 27 // 28 // The resource specified in the request does not exist. 29 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 30 31 // ErrCodeServiceQuotaExceededException for service response error code 32 // "ServiceQuotaExceededException". 33 // 34 // You have exceeded your service quota. To perform the requested action, remove 35 // some of the relevant resources, or use Service Quotas (https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html) 36 // to request a service quota increase. 37 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 38 39 // ErrCodeThrottlingException for service response error code 40 // "ThrottlingException". 41 // 42 // The request was denied due to request throttling. 43 ErrCodeThrottlingException = "ThrottlingException" 44 45 // ErrCodeValidationException for service response error code 46 // "ValidationException". 47 // 48 // The parameter is not valid. 49 ErrCodeValidationException = "ValidationException" 50 ) 51 52 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 53 "ConflictException": newErrorConflictException, 54 "InternalServerException": newErrorInternalServerException, 55 "ResourceNotFoundException": newErrorResourceNotFoundException, 56 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 57 "ThrottlingException": newErrorThrottlingException, 58 "ValidationException": newErrorValidationException, 59 }