Package org.gnome.glib
Enum Class UriError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<UriError>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum UriError
extends Enum<UriError>
implements Enumeration
Error codes returned by
GUri
methods.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe authentication parameters of a URI could not be parsed.The fragment of a URI could not be parsed.The host of a URI could not be parsed.The password of a URI could not be parsed.The path of a URI could not be parsed.The port of a URI could not be parsed.The query of a URI could not be parsed.The scheme of a URI could not be parsed.The user/userinfo of a URI could not be parsed.Generic error if no more specific error is available. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic UriError
of
(int value) Create a new UriError for the provided valuestatic UriError
Returns the enum constant of this class with the specified name.static UriError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILED
Generic error if no more specific error is available. See the error message for details. -
BAD_SCHEME
The scheme of a URI could not be parsed. -
BAD_USER
The user/userinfo of a URI could not be parsed. -
BAD_PASSWORD
The password of a URI could not be parsed. -
BAD_AUTH_PARAMS
The authentication parameters of a URI could not be parsed. -
BAD_HOST
The host of a URI could not be parsed. -
BAD_PORT
The port of a URI could not be parsed. -
BAD_PATH
The path of a URI could not be parsed. -
BAD_QUERY
The query of a URI could not be parsed. -
BAD_FRAGMENT
The fragment of a URI could not be parsed.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
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 interfaceEnumeration
- Returns:
- the enum value
-