Translate / Client / exceptions / UnsupportedLanguagePairException
UnsupportedLanguagePairException¶
- class Translate.Client.exceptions.UnsupportedLanguagePairException¶
- Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see Supported languages. - Example- try: ... except client.exceptions.UnsupportedLanguagePairException as e: print(e.response) - response¶
- The parsed error response. All exceptions have a top level - Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.- Syntax- { 'Message': 'string', 'SourceLanguageCode': 'string', 'TargetLanguageCode': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } } - Structure- (dict) – - Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see Supported languages. - Message (string) – 
- SourceLanguageCode (string) – - The language code for the language of the input text. 
- TargetLanguageCode (string) – - The language code for the language of the translated text. 
- Error (dict) – Normalized access to common exception attributes. - Code (string) – An identifier specifying the exception type. 
- Message (string) – A descriptive message explaining why the exception occured.