github.com/aavshr/aws-sdk-go@v1.41.3/service/translate/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package translate 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeConcurrentModificationException for service response error code 12 // "ConcurrentModificationException". 13 // 14 // Another modification is being made. That modification must complete before 15 // you can make your change. 16 ErrCodeConcurrentModificationException = "ConcurrentModificationException" 17 18 // ErrCodeConflictException for service response error code 19 // "ConflictException". 20 // 21 // There was a conflict processing the request. Try your request again. 22 ErrCodeConflictException = "ConflictException" 23 24 // ErrCodeDetectedLanguageLowConfidenceException for service response error code 25 // "DetectedLanguageLowConfidenceException". 26 // 27 // The confidence that Amazon Comprehend accurately detected the source language 28 // is low. If a low confidence level is acceptable for your application, you 29 // can use the language in the exception to call Amazon Translate again. For 30 // more information, see the DetectDominantLanguage (https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html) 31 // operation in the Amazon Comprehend Developer Guide. 32 ErrCodeDetectedLanguageLowConfidenceException = "DetectedLanguageLowConfidenceException" 33 34 // ErrCodeInternalServerException for service response error code 35 // "InternalServerException". 36 // 37 // An internal server error occurred. Retry your request. 38 ErrCodeInternalServerException = "InternalServerException" 39 40 // ErrCodeInvalidFilterException for service response error code 41 // "InvalidFilterException". 42 // 43 // The filter specified for the operation is invalid. Specify a different filter. 44 ErrCodeInvalidFilterException = "InvalidFilterException" 45 46 // ErrCodeInvalidParameterValueException for service response error code 47 // "InvalidParameterValueException". 48 // 49 // The value of the parameter is invalid. Review the value of the parameter 50 // you are using to correct it, and then retry your operation. 51 ErrCodeInvalidParameterValueException = "InvalidParameterValueException" 52 53 // ErrCodeInvalidRequestException for service response error code 54 // "InvalidRequestException". 55 // 56 // The request that you made is invalid. Check your request to determine why 57 // it's invalid and then retry the request. 58 ErrCodeInvalidRequestException = "InvalidRequestException" 59 60 // ErrCodeLimitExceededException for service response error code 61 // "LimitExceededException". 62 // 63 // The specified limit has been exceeded. Review your request and retry it with 64 // a quantity below the stated limit. 65 ErrCodeLimitExceededException = "LimitExceededException" 66 67 // ErrCodeResourceNotFoundException for service response error code 68 // "ResourceNotFoundException". 69 // 70 // The resource you are looking for has not been found. Review the resource 71 // you're looking for and see if a different resource will accomplish your needs 72 // before retrying the revised request. 73 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 74 75 // ErrCodeServiceUnavailableException for service response error code 76 // "ServiceUnavailableException". 77 // 78 // The Amazon Translate service is temporarily unavailable. Please wait a bit 79 // and then retry your request. 80 ErrCodeServiceUnavailableException = "ServiceUnavailableException" 81 82 // ErrCodeTextSizeLimitExceededException for service response error code 83 // "TextSizeLimitExceededException". 84 // 85 // The size of the text you submitted exceeds the size limit. Reduce the size 86 // of the text or use a smaller document and then retry your request. 87 ErrCodeTextSizeLimitExceededException = "TextSizeLimitExceededException" 88 89 // ErrCodeTooManyRequestsException for service response error code 90 // "TooManyRequestsException". 91 // 92 // You have made too many requests within a short period of time. Wait for a 93 // short time and then try your request again. 94 ErrCodeTooManyRequestsException = "TooManyRequestsException" 95 96 // ErrCodeUnsupportedLanguagePairException for service response error code 97 // "UnsupportedLanguagePairException". 98 // 99 // Amazon Translate does not support translation from the language of the source 100 // text into the requested target language. For more information, see how-to-error-msg. 101 ErrCodeUnsupportedLanguagePairException = "UnsupportedLanguagePairException" 102 ) 103 104 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 105 "ConcurrentModificationException": newErrorConcurrentModificationException, 106 "ConflictException": newErrorConflictException, 107 "DetectedLanguageLowConfidenceException": newErrorDetectedLanguageLowConfidenceException, 108 "InternalServerException": newErrorInternalServerException, 109 "InvalidFilterException": newErrorInvalidFilterException, 110 "InvalidParameterValueException": newErrorInvalidParameterValueException, 111 "InvalidRequestException": newErrorInvalidRequestException, 112 "LimitExceededException": newErrorLimitExceededException, 113 "ResourceNotFoundException": newErrorResourceNotFoundException, 114 "ServiceUnavailableException": newErrorServiceUnavailableException, 115 "TextSizeLimitExceededException": newErrorTextSizeLimitExceededException, 116 "TooManyRequestsException": newErrorTooManyRequestsException, 117 "UnsupportedLanguagePairException": newErrorUnsupportedLanguagePairException, 118 }