github.com/aavshr/aws-sdk-go@v1.41.3/service/sagemakerfeaturestoreruntime/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package sagemakerfeaturestoreruntime 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAccessForbidden for service response error code 12 // "AccessForbidden". 13 // 14 // You do not have permission to perform an action. 15 ErrCodeAccessForbidden = "AccessForbidden" 16 17 // ErrCodeInternalFailure for service response error code 18 // "InternalFailure". 19 // 20 // An internal failure occurred. Try your request again. If the problem persists, 21 // contact AWS customer support. 22 ErrCodeInternalFailure = "InternalFailure" 23 24 // ErrCodeResourceNotFound for service response error code 25 // "ResourceNotFound". 26 // 27 // A resource that is required to perform an action was not found. 28 ErrCodeResourceNotFound = "ResourceNotFound" 29 30 // ErrCodeServiceUnavailable for service response error code 31 // "ServiceUnavailable". 32 // 33 // The service is currently unavailable. 34 ErrCodeServiceUnavailable = "ServiceUnavailable" 35 36 // ErrCodeValidationError for service response error code 37 // "ValidationError". 38 // 39 // There was an error validating your request. 40 ErrCodeValidationError = "ValidationError" 41 ) 42 43 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 44 "AccessForbidden": newErrorAccessForbidden, 45 "InternalFailure": newErrorInternalFailure, 46 "ResourceNotFound": newErrorResourceNotFound, 47 "ServiceUnavailable": newErrorServiceUnavailable, 48 "ValidationError": newErrorValidationError, 49 }