github.com/aavshr/aws-sdk-go@v1.41.3/service/frauddetector/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package frauddetector 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 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 15 // This can occur if you submit a request, such as PutExternalModel, that specifies 16 // a role that is not in your account. 17 ErrCodeAccessDeniedException = "AccessDeniedException" 18 19 // ErrCodeConflictException for service response error code 20 // "ConflictException". 21 // 22 // An exception indicating there was a conflict during a delete operation. 23 ErrCodeConflictException = "ConflictException" 24 25 // ErrCodeInternalServerException for service response error code 26 // "InternalServerException". 27 // 28 // An exception indicating an internal server error. 29 ErrCodeInternalServerException = "InternalServerException" 30 31 // ErrCodeResourceNotFoundException for service response error code 32 // "ResourceNotFoundException". 33 // 34 // An exception indicating the specified resource was not found. 35 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 36 37 // ErrCodeResourceUnavailableException for service response error code 38 // "ResourceUnavailableException". 39 // 40 // An exception indicating that the attached customer-owned (external) model 41 // threw an exception when Amazon Fraud Detector invoked the model. 42 ErrCodeResourceUnavailableException = "ResourceUnavailableException" 43 44 // ErrCodeThrottlingException for service response error code 45 // "ThrottlingException". 46 // 47 // An exception indicating a throttling error. 48 ErrCodeThrottlingException = "ThrottlingException" 49 50 // ErrCodeValidationException for service response error code 51 // "ValidationException". 52 // 53 // An exception indicating a specified value is not allowed. 54 ErrCodeValidationException = "ValidationException" 55 ) 56 57 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 58 "AccessDeniedException": newErrorAccessDeniedException, 59 "ConflictException": newErrorConflictException, 60 "InternalServerException": newErrorInternalServerException, 61 "ResourceNotFoundException": newErrorResourceNotFoundException, 62 "ResourceUnavailableException": newErrorResourceUnavailableException, 63 "ThrottlingException": newErrorThrottlingException, 64 "ValidationException": newErrorValidationException, 65 }