Enum Class ConvertError

java.lang.Object
java.lang.Enum<ConvertError>
org.gnome.glib.ConvertError
All Implemented Interfaces:
Serializable, Comparable<ConvertError>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum ConvertError extends Enum<ConvertError> implements Enumeration
Error codes returned by character set conversion routines.
  • Enum Constant Details

    • NO_CONVERSION

      public static final ConvertError NO_CONVERSION
      Conversion between the requested character sets is not supported.
    • ILLEGAL_SEQUENCE

      public static final ConvertError ILLEGAL_SEQUENCE
      Invalid byte sequence in conversion input; or the character sequence could not be represented in the target character set.
    • FAILED

      public static final ConvertError FAILED
      Conversion failed for some reason.
    • PARTIAL_INPUT

      public static final ConvertError PARTIAL_INPUT
      Partial character sequence at end of input.
    • BAD_URI

      public static final ConvertError BAD_URI
      URI is invalid.
    • NOT_ABSOLUTE_PATH

      public static final ConvertError NOT_ABSOLUTE_PATH
      Pathname is not an absolute path.
    • NO_MEMORY

      public static final ConvertError NO_MEMORY
      No memory available. Since: 2.40
    • EMBEDDED_NUL

      public static final ConvertError EMBEDDED_NUL
      An embedded NUL character is present in conversion output where a NUL-terminated string is expected. Since: 2.56
  • Method Details

    • values

      public static ConvertError[] 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 ConvertError 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
    • of

      public static ConvertError of(int value)
      Create a new ConvertError for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static ConvertError of(MemorySegment address)
      Create a new ConvertError for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address