Enum TranslationXLIFFServiceException.ErrorCode
- java.lang.Object
-
- java.lang.Enum<TranslationXLIFFServiceException.ErrorCode>
-
- com.adobe.granite.translation.api.xliff.TranslationXLIFFServiceException.ErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TranslationXLIFFServiceException.ErrorCode>
- Enclosing class:
- TranslationXLIFFServiceException
public static enum TranslationXLIFFServiceException.ErrorCode extends java.lang.Enum<TranslationXLIFFServiceException.ErrorCode>
The Enum ErrorCode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENCODING_NOT_SUPPORTED
Unsupported content encoding.GENERAL_EXCEPTION
General exception.INVALID_XLIFF
Not a valid XLIFF.INVALID_XML
Not a valid XML.IO_EXCEPTION
IO failure.SERVICE_NOT_AVAILABLE
The translation xliff service is not available.VERSION_NOT_SUPPORTED
XLIFF version is not supported.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TranslationXLIFFServiceException.ErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TranslationXLIFFServiceException.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 TranslationXLIFFServiceException.ErrorCode GENERAL_EXCEPTION
General exception.
-
SERVICE_NOT_AVAILABLE
public static final TranslationXLIFFServiceException.ErrorCode SERVICE_NOT_AVAILABLE
The translation xliff service is not available.
-
INVALID_XML
public static final TranslationXLIFFServiceException.ErrorCode INVALID_XML
Not a valid XML.
-
INVALID_XLIFF
public static final TranslationXLIFFServiceException.ErrorCode INVALID_XLIFF
Not a valid XLIFF.
-
VERSION_NOT_SUPPORTED
public static final TranslationXLIFFServiceException.ErrorCode VERSION_NOT_SUPPORTED
XLIFF version is not supported.
-
ENCODING_NOT_SUPPORTED
public static final TranslationXLIFFServiceException.ErrorCode ENCODING_NOT_SUPPORTED
Unsupported content encoding.
-
IO_EXCEPTION
public static final TranslationXLIFFServiceException.ErrorCode IO_EXCEPTION
IO failure.
-
-
Method Detail
-
values
public static TranslationXLIFFServiceException.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 (TranslationXLIFFServiceException.ErrorCode c : TranslationXLIFFServiceException.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 TranslationXLIFFServiceException.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
-
-