github.com/aavshr/aws-sdk-go@v1.41.3/service/customerprofiles/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package customerprofiles 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 // ErrCodeBadRequestException for service response error code 18 // "BadRequestException". 19 // 20 // The input you provided is invalid. 21 ErrCodeBadRequestException = "BadRequestException" 22 23 // ErrCodeInternalServerException for service response error code 24 // "InternalServerException". 25 // 26 // An internal service error occurred. 27 ErrCodeInternalServerException = "InternalServerException" 28 29 // ErrCodeResourceNotFoundException for service response error code 30 // "ResourceNotFoundException". 31 // 32 // The requested resource does not exist, or access was denied. 33 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 34 35 // ErrCodeThrottlingException for service response error code 36 // "ThrottlingException". 37 // 38 // You exceeded the maximum number of requests. 39 ErrCodeThrottlingException = "ThrottlingException" 40 ) 41 42 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 43 "AccessDeniedException": newErrorAccessDeniedException, 44 "BadRequestException": newErrorBadRequestException, 45 "InternalServerException": newErrorInternalServerException, 46 "ResourceNotFoundException": newErrorResourceNotFoundException, 47 "ThrottlingException": newErrorThrottlingException, 48 }