Enum Class EncodingError

java.lang.Object
java.lang.Enum<EncodingError>
org.jcodings.exception.EncodingError
All Implemented Interfaces:
Serializable, Comparable<EncodingError>, Constable

public enum EncodingError extends Enum<EncodingError>
  • Enum Constant Details

    • 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 Details

    • message

      private final String message
    • code

      private final int code
    • CODE_TO_ERROR

      private static final IntHash<EncodingError> CODE_TO_ERROR
  • Constructor Details

    • EncodingError

      private EncodingError(String message, int code)
  • Method Details

    • values

      public static EncodingError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EncodingError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMessage

      public String getMessage()
    • getCode

      public int getCode()
    • fromCode

      public static EncodingError fromCode(int code)