github.com/aavshr/aws-sdk-go@v1.41.3/service/sagemakerruntime/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package sagemakerruntime 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeInternalFailure for service response error code 12 // "InternalFailure". 13 // 14 // An internal failure occurred. 15 ErrCodeInternalFailure = "InternalFailure" 16 17 // ErrCodeModelError for service response error code 18 // "ModelError". 19 // 20 // Model (owned by the customer in the container) returned 4xx or 5xx error 21 // code. 22 ErrCodeModelError = "ModelError" 23 24 // ErrCodeServiceUnavailable for service response error code 25 // "ServiceUnavailable". 26 // 27 // The service is unavailable. Try your call again. 28 ErrCodeServiceUnavailable = "ServiceUnavailable" 29 30 // ErrCodeValidationError for service response error code 31 // "ValidationError". 32 // 33 // Inspect your request and try again. 34 ErrCodeValidationError = "ValidationError" 35 ) 36 37 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 38 "InternalFailure": newErrorInternalFailure, 39 "ModelError": newErrorModelError, 40 "ServiceUnavailable": newErrorServiceUnavailable, 41 "ValidationError": newErrorValidationError, 42 }