Package com.e1c.langtool.external
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
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.
-
Constructor Summary
ConstructorsConstructorDescriptionTranslationServiceException(String message) TranslationServiceException(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TranslationServiceException
public TranslationServiceException()- See Also:
-
TranslationServiceException
- See Also:
-
TranslationServiceException
- See Also:
-
TranslationServiceException
- See Also:
-