Enum Class UriError

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

@Generated("org.javagi.JavaGI") public enum UriError extends Enum<UriError> implements Enumeration
Error codes returned by GUri methods.
Since:
2.66
  • Enum Constant Details

    • FAILED

      public static final UriError FAILED
      Generic error if no more specific error is available. See the error message for details.
    • BAD_SCHEME

      public static final UriError BAD_SCHEME
      The scheme of a URI could not be parsed.
    • BAD_USER

      public static final UriError BAD_USER
      The user/userinfo of a URI could not be parsed.
    • BAD_PASSWORD

      public static final UriError BAD_PASSWORD
      The password of a URI could not be parsed.
    • BAD_AUTH_PARAMS

      public static final UriError BAD_AUTH_PARAMS
      The authentication parameters of a URI could not be parsed.
    • BAD_HOST

      public static final UriError BAD_HOST
      The host of a URI could not be parsed.
    • BAD_PORT

      public static final UriError BAD_PORT
      The port of a URI could not be parsed.
    • BAD_PATH

      public static final UriError BAD_PATH
      The path of a URI could not be parsed.
    • BAD_QUERY

      public static final UriError BAD_QUERY
      The query of a URI could not be parsed.
    • BAD_FRAGMENT

      public static final UriError BAD_FRAGMENT
      The fragment of a URI could not be parsed.
  • Method Details

    • values

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