Class TranslationServiceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.e1c.langtool.external.TranslationServiceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExceededQuotaException, InvalidAccessKeyException, InvalidLanguagesException, InvalidTextException, ServiceUnavailableException

public class TranslationServiceException extends RuntimeException
Thrown to indicate about errors occured while translating. It can be thrown from IExternalTranslationProvider methods.

There are a few cases for throwing this exception:

  • Access key for service is invalid.
  • Limit for requested characters or another quota are exceeded.
  • Service doesn't support the given combination of source and target languages for translation.
  • The given text to translate is invalid. For example, length of text to translate can be too long.
See Also: