Enum TranslationException.ErrorCode
- java.lang.Object
-
- java.lang.Enum<TranslationException.ErrorCode>
-
- com.adobe.granite.translation.api.TranslationException.ErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TranslationException.ErrorCode>
- Enclosing class:
- TranslationException
public static enum TranslationException.ErrorCode extends java.lang.Enum<TranslationException.ErrorCode>
The Enum ErrorCode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DETECTION_FAILURE
The detection failure.ENGINE_TEMP_UNAVAILABLE
The engine temp unavailable.GENERAL_EXCEPTION
The general exception.INVALID_LANGUAGE
The invalid language.MISSING_CREDENTIALS
The missing credentials.MISSING_PARAMETER
The missing parameter.NO_ENGINE
The no engine.NO_REGISTERED_FACTORIES
The no registered factories.NOT_AUTHORIZED
The not authorized.NOT_SUPPORTED_FORMAT
The not supported format.NOT_SUPPORTED_LANG_DIRECTION
The not supported lang direction.REQUEST_FAILED
The request failed.REQUEST_INTERRUPT
The request interrupt.REQUEST_TIMEOUT
The request timeout.SERVICE_NOT_IMPLEMENTED
The service not implemented.TO_FROM_SAME_LANGUAGE
The to from same language.TRANSLATION_FAILED
The translation failed.UNKNOWN_FACTORY_NAME
The unknown factory name.UNKNOWN_LANGUAGE
The unknown language.UNSUPPORTED_LANGUAGE
The unsupported language.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TranslationException.ErrorCode
valueOf(java.lang.String name)
Returns 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.
-
-
-
Enum Constant Detail
-
GENERAL_EXCEPTION
public static final TranslationException.ErrorCode GENERAL_EXCEPTION
The general exception.
-
TRANSLATION_FAILED
public static final TranslationException.ErrorCode TRANSLATION_FAILED
The translation failed.
-
REQUEST_FAILED
public static final TranslationException.ErrorCode REQUEST_FAILED
The request failed.
-
NO_ENGINE
public static final TranslationException.ErrorCode NO_ENGINE
The no engine.
-
NOT_SUPPORTED_FORMAT
public static final TranslationException.ErrorCode NOT_SUPPORTED_FORMAT
The not supported format.
-
REQUEST_TIMEOUT
public static final TranslationException.ErrorCode REQUEST_TIMEOUT
The request timeout.
-
MISSING_PARAMETER
public static final TranslationException.ErrorCode MISSING_PARAMETER
The missing parameter.
-
REQUEST_INTERRUPT
public static final TranslationException.ErrorCode REQUEST_INTERRUPT
The request interrupt.
-
ENGINE_TEMP_UNAVAILABLE
public static final TranslationException.ErrorCode ENGINE_TEMP_UNAVAILABLE
The engine temp unavailable.
-
DETECTION_FAILURE
public static final TranslationException.ErrorCode DETECTION_FAILURE
The detection failure.
-
TO_FROM_SAME_LANGUAGE
public static final TranslationException.ErrorCode TO_FROM_SAME_LANGUAGE
The to from same language.
-
UNKNOWN_LANGUAGE
public static final TranslationException.ErrorCode UNKNOWN_LANGUAGE
The unknown language.
-
SERVICE_NOT_IMPLEMENTED
public static final TranslationException.ErrorCode SERVICE_NOT_IMPLEMENTED
The service not implemented.
-
NOT_SUPPORTED_LANG_DIRECTION
public static final TranslationException.ErrorCode NOT_SUPPORTED_LANG_DIRECTION
The not supported lang direction.
-
INVALID_LANGUAGE
public static final TranslationException.ErrorCode INVALID_LANGUAGE
The invalid language.
-
NO_REGISTERED_FACTORIES
public static final TranslationException.ErrorCode NO_REGISTERED_FACTORIES
The no registered factories.
-
UNKNOWN_FACTORY_NAME
public static final TranslationException.ErrorCode UNKNOWN_FACTORY_NAME
The unknown factory name.
-
MISSING_CREDENTIALS
public static final TranslationException.ErrorCode MISSING_CREDENTIALS
The missing credentials.
-
UNSUPPORTED_LANGUAGE
public static final TranslationException.ErrorCode UNSUPPORTED_LANGUAGE
The unsupported language.
-
NOT_AUTHORIZED
public static final TranslationException.ErrorCode NOT_AUTHORIZED
The not authorized.
-
-
Method Detail
-
values
public static TranslationException.ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TranslationException.ErrorCode c : TranslationException.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TranslationException.ErrorCode valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-