Enum Class ErrorType

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

@Generated("org.javagi.JavaGI") public enum ErrorType extends Enum<ErrorType> implements Enumeration
The possible errors, used in the vError field of GTokenValue, when the token is a TokenType.ERROR.
  • Enum Constant Details

    • UNKNOWN

      public static final ErrorType UNKNOWN
      unknown error
    • UNEXP_EOF

      public static final ErrorType UNEXP_EOF
      unexpected end of file
    • UNEXP_EOF_IN_STRING

      public static final ErrorType UNEXP_EOF_IN_STRING
      unterminated string constant
    • UNEXP_EOF_IN_COMMENT

      public static final ErrorType UNEXP_EOF_IN_COMMENT
      unterminated comment
    • NON_DIGIT_IN_CONST

      public static final ErrorType NON_DIGIT_IN_CONST
      non-digit character in a number
    • DIGIT_RADIX

      public static final ErrorType DIGIT_RADIX
      digit beyond radix in a number
    • FLOAT_RADIX

      public static final ErrorType FLOAT_RADIX
      non-decimal floating point number
    • FLOAT_MALFORMED

      public static final ErrorType FLOAT_MALFORMED
      malformed floating point number
  • Method Details

    • values

      public static ErrorType[] 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 ErrorType 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 ErrorType of(int value)
      Create a new ErrorType 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 ErrorType of(MemorySegment address)
      Create a new ErrorType 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