Enum TranslationException.ErrorCode
java.lang.Object
java.lang.Enum<TranslationException.ErrorCode>
com.adobe.granite.translation.api.TranslationException.ErrorCode
- All Implemented Interfaces:
Serializable,Comparable<TranslationException.ErrorCode>,java.lang.constant.Constable
- Enclosing class:
TranslationException
The Enum ErrorCode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe detection failure.The engine temp unavailable.The general exception.The invalid language.The missing credentials.The missing parameter.The no engine.The no registered factories.The not authorized.The not supported format.The not supported lang direction.The request failed.The request interrupt.The request timeout.The service not implemented.The to from same language.The translation failed.The unknown factory name.The unknown language.The unsupported language. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static TranslationException.ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
GENERAL_EXCEPTION
The general exception. -
TRANSLATION_FAILED
The translation failed. -
REQUEST_FAILED
The request failed. -
NO_ENGINE
The no engine. -
NOT_SUPPORTED_FORMAT
The not supported format. -
REQUEST_TIMEOUT
The request timeout. -
MISSING_PARAMETER
The missing parameter. -
REQUEST_INTERRUPT
The request interrupt. -
ENGINE_TEMP_UNAVAILABLE
The engine temp unavailable. -
DETECTION_FAILURE
The detection failure. -
TO_FROM_SAME_LANGUAGE
The to from same language. -
UNKNOWN_LANGUAGE
The unknown language. -
SERVICE_NOT_IMPLEMENTED
The service not implemented. -
NOT_SUPPORTED_LANG_DIRECTION
The not supported lang direction. -
INVALID_LANGUAGE
The invalid language. -
NO_REGISTERED_FACTORIES
The no registered factories. -
UNKNOWN_FACTORY_NAME
The unknown factory name. -
MISSING_CREDENTIALS
The missing credentials. -
UNSUPPORTED_LANGUAGE
The unsupported language. -
NOT_AUTHORIZED
The not authorized.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-