@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectedLanguageLowConfidenceException extends AmazonTranslateException
The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence level is acceptable for your application, you can use the language in the exception to call Amazon Translate again. For more information, see the DetectDominantLanguage operation in the Amazon Comprehend Developer Guide.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
DetectedLanguageLowConfidenceException(String message)
Constructs a new DetectedLanguageLowConfidenceException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDetectedLanguageCode()
The language code of the auto-detected language from Amazon Comprehend.
|
void |
setDetectedLanguageCode(String detectedLanguageCode)
The language code of the auto-detected language from Amazon Comprehend.
|
DetectedLanguageLowConfidenceException |
withDetectedLanguageCode(String detectedLanguageCode)
The language code of the auto-detected language from Amazon Comprehend.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DetectedLanguageLowConfidenceException(String message)
message - Describes the error encountered.public void setDetectedLanguageCode(String detectedLanguageCode)
The language code of the auto-detected language from Amazon Comprehend.
detectedLanguageCode - The language code of the auto-detected language from Amazon Comprehend.public String getDetectedLanguageCode()
The language code of the auto-detected language from Amazon Comprehend.
public DetectedLanguageLowConfidenceException withDetectedLanguageCode(String detectedLanguageCode)
The language code of the auto-detected language from Amazon Comprehend.
detectedLanguageCode - The language code of the auto-detected language from Amazon Comprehend.