- java.lang.Object
-
- java.lang.Enum<EncodingError>
-
- org.jcodings.exception.EncodingError
-
- All Implemented Interfaces:
Serializable,Comparable<EncodingError>
public enum EncodingError extends Enum<EncodingError>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EncodingErrorfromCode(int code)intgetCode()StringgetMessage()static EncodingErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static EncodingError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERR_TYPE_BUG
public static final EncodingError ERR_TYPE_BUG
-
ERR_TOO_BIG_WIDE_CHAR_VALUE
public static final EncodingError ERR_TOO_BIG_WIDE_CHAR_VALUE
-
ERR_TOO_LONG_WIDE_CHAR_VALUE
public static final EncodingError ERR_TOO_LONG_WIDE_CHAR_VALUE
-
ERR_INVALID_CHAR_PROPERTY_NAME
public static final EncodingError ERR_INVALID_CHAR_PROPERTY_NAME
-
ERR_INVALID_CODE_POINT_VALUE
public static final EncodingError ERR_INVALID_CODE_POINT_VALUE
-
ERR_ENCODING_CLASS_DEF_NOT_FOUND
public static final EncodingError ERR_ENCODING_CLASS_DEF_NOT_FOUND
-
ERR_ENCODING_LOAD_ERROR
public static final EncodingError ERR_ENCODING_LOAD_ERROR
-
ERR_ENCODING_ALREADY_REGISTERED
public static final EncodingError ERR_ENCODING_ALREADY_REGISTERED
-
ERR_ENCODING_ALIAS_ALREADY_REGISTERED
public static final EncodingError ERR_ENCODING_ALIAS_ALREADY_REGISTERED
-
ERR_ENCODING_REPLICA_ALREADY_REGISTERED
public static final EncodingError ERR_ENCODING_REPLICA_ALREADY_REGISTERED
-
ERR_NO_SUCH_ENCODNG
public static final EncodingError ERR_NO_SUCH_ENCODNG
-
ERR_COULD_NOT_REPLICATE
public static final EncodingError ERR_COULD_NOT_REPLICATE
-
ERR_TRANSCODER_ALREADY_REGISTERED
public static final EncodingError ERR_TRANSCODER_ALREADY_REGISTERED
-
ERR_TRANSCODER_CLASS_DEF_NOT_FOUND
public static final EncodingError ERR_TRANSCODER_CLASS_DEF_NOT_FOUND
-
ERR_TRANSCODER_LOAD_ERROR
public static final EncodingError ERR_TRANSCODER_LOAD_ERROR
-
-
Method Detail
-
values
public static EncodingError[] 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 (EncodingError c : EncodingError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EncodingError valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getMessage
public String getMessage()
-
getCode
public int getCode()
-
fromCode
public static EncodingError fromCode(int code)
-
-