github.com/aavshr/aws-sdk-go@v1.41.3/service/codeartifact/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package codeartifact 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 // The operation did not succeed because of an unauthorized access attempt. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // The operation did not succeed because prerequisites are not met. 21 ErrCodeConflictException = "ConflictException" 22 23 // ErrCodeInternalServerException for service response error code 24 // "InternalServerException". 25 // 26 // The operation did not succeed because of an error that occurred inside AWS 27 // CodeArtifact. 28 ErrCodeInternalServerException = "InternalServerException" 29 30 // ErrCodeResourceNotFoundException for service response error code 31 // "ResourceNotFoundException". 32 // 33 // The operation did not succeed because the resource requested is not found 34 // in the service. 35 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 36 37 // ErrCodeServiceQuotaExceededException for service response error code 38 // "ServiceQuotaExceededException". 39 // 40 // The operation did not succeed because it would have exceeded a service limit 41 // for your account. 42 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 43 44 // ErrCodeThrottlingException for service response error code 45 // "ThrottlingException". 46 // 47 // The operation did not succeed because too many requests are sent to the service. 48 ErrCodeThrottlingException = "ThrottlingException" 49 50 // ErrCodeValidationException for service response error code 51 // "ValidationException". 52 // 53 // The operation did not succeed because a parameter in the request was sent 54 // with an invalid value. 55 ErrCodeValidationException = "ValidationException" 56 ) 57 58 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 59 "AccessDeniedException": newErrorAccessDeniedException, 60 "ConflictException": newErrorConflictException, 61 "InternalServerException": newErrorInternalServerException, 62 "ResourceNotFoundException": newErrorResourceNotFoundException, 63 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 64 "ThrottlingException": newErrorThrottlingException, 65 "ValidationException": newErrorValidationException, 66 }