Package org.jcodings.exception
Enum EncodingError
- java.lang.Object
-
- java.lang.Enum<EncodingError>
-
- org.jcodings.exception.EncodingError
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EncodingError>
public enum EncodingError extends java.lang.Enum<EncodingError>
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private int
code
private static IntHash<EncodingError>
CODE_TO_ERROR
private java.lang.String
message
-
Constructor Summary
Constructors Modifier Constructor Description private
EncodingError(java.lang.String message, int code)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EncodingError
fromCode(int code)
int
getCode()
java.lang.String
getMessage()
static EncodingError
valueOf(java.lang.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
-
-
Field Detail
-
message
private final java.lang.String message
-
code
private final int code
-
CODE_TO_ERROR
private static final IntHash<EncodingError> CODE_TO_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(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
-
getMessage
public java.lang.String getMessage()
-
getCode
public int getCode()
-
fromCode
public static EncodingError fromCode(int code)
-
-