public class UnsupportedLanguagePairException extends AmazonServiceException
Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see how-to-error-msg.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
UnsupportedLanguagePairException(String message)
Constructs a new UnsupportedLanguagePairException with the specified
error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSourceLanguageCode()
The language code for the language of the input text.
|
String |
getTargetLanguageCode()
The language code for the language of the translated text.
|
void |
setSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the input text.
|
void |
setTargetLanguageCode(String targetLanguageCode)
The language code for the language of the translated text.
|
getErrorCode, getErrorMessage, getErrorType, getMessage, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnsupportedLanguagePairException(String message)
message - Describes the error encountered.public String getSourceLanguageCode()
The language code for the language of the input text.
Constraints:
Length: 2 - 5
The language code for the language of the input text.
public void setSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the input text.
Constraints:
Length: 2 - 5
sourceLanguageCode - The language code for the language of the input text.
public String getTargetLanguageCode()
The language code for the language of the translated text.
Constraints:
Length: 2 - 5
The language code for the language of the translated text.
public void setTargetLanguageCode(String targetLanguageCode)
The language code for the language of the translated text.
Constraints:
Length: 2 - 5
targetLanguageCode - The language code for the language of the translated text.
Copyright © 2019. All rights reserved.