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(java.lang.String message)
Constructs a new UnsupportedLanguagePairException with the specified
error message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSourceLanguageCode()
The language code for the language of the input text.
|
java.lang.String |
getTargetLanguageCode()
The language code for the language of the translated text.
|
void |
setSourceLanguageCode(java.lang.String sourceLanguageCode)
The language code for the language of the input text.
|
void |
setTargetLanguageCode(java.lang.String targetLanguageCode)
The language code for the language of the translated text.
|
getErrorCode, getErrorMessage, getErrorType, getMessage, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRequestId, setServiceName, setStatusCode
isRetryable
public UnsupportedLanguagePairException(java.lang.String message)
message
- Describes the error encountered.public java.lang.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(java.lang.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 java.lang.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(java.lang.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 © 2018 Amazon Web Services, Inc. All Rights Reserved.