public static enum TranslationException.ErrorCode extends java.lang.Enum<TranslationException.ErrorCode>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final TranslationException.ErrorCode GENERAL_EXCEPTION
public static final TranslationException.ErrorCode TRANSLATION_FAILED
public static final TranslationException.ErrorCode REQUEST_FAILED
public static final TranslationException.ErrorCode NO_ENGINE
public static final TranslationException.ErrorCode NOT_SUPPORTED_FORMAT
public static final TranslationException.ErrorCode REQUEST_TIMEOUT
public static final TranslationException.ErrorCode MISSING_PARAMETER
public static final TranslationException.ErrorCode REQUEST_INTERRUPT
public static final TranslationException.ErrorCode ENGINE_TEMP_UNAVAILABLE
public static final TranslationException.ErrorCode DETECTION_FAILURE
public static final TranslationException.ErrorCode TO_FROM_SAME_LANGUAGE
public static final TranslationException.ErrorCode UNKNOWN_LANGUAGE
public static final TranslationException.ErrorCode SERVICE_NOT_IMPLEMENTED
public static final TranslationException.ErrorCode NOT_SUPPORTED_LANG_DIRECTION
public static final TranslationException.ErrorCode INVALID_LANGUAGE
public static final TranslationException.ErrorCode NO_REGISTERED_FACTORIES
public static final TranslationException.ErrorCode UNKNOWN_FACTORY_NAME
public static final TranslationException.ErrorCode MISSING_CREDENTIALS
public static final TranslationException.ErrorCode UNSUPPORTED_LANGUAGE
public static final TranslationException.ErrorCode NOT_AUTHORIZED
public static TranslationException.ErrorCode[] values()
for (TranslationException.ErrorCode c : TranslationException.ErrorCode.values()) System.out.println(c);
public static TranslationException.ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"