@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UnsupportedLanguagePairException extends AmazonTranslateException
Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see Supported languages.
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.
|
UnsupportedLanguagePairException |
withSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the input text.
|
UnsupportedLanguagePairException |
withTargetLanguageCode(String targetLanguageCode)
The language code for the language of the translated text.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnsupportedLanguagePairException(String message)
message
- Describes the error encountered.public void setSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the input text.
sourceLanguageCode
- The language code for the language of the input text.public String getSourceLanguageCode()
The language code for the language of the input text.
public UnsupportedLanguagePairException withSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the input text.
sourceLanguageCode
- The language code for the language of the input text.public void setTargetLanguageCode(String targetLanguageCode)
The language code for the language of the translated text.
targetLanguageCode
- The language code for the language of the translated text.public String getTargetLanguageCode()
The language code for the language of the translated text.
public UnsupportedLanguagePairException withTargetLanguageCode(String targetLanguageCode)
The language code for the language of the translated text.
targetLanguageCode
- The language code for the language of the translated text.