@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, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.