Package org.gnome.soup
Enum Class TLDError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TLDError>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum TLDError
extends Enum<TLDError>
implements Enumeration
Error codes for
SOUP_TLD_ERROR
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA hostname was syntactically invalid.The passed-in "hostname" was actually an IP address (and thus has no base domain or public suffix).The passed-in hostname has no recognized public suffix.The Public Suffix List was not available.The passed-in hostname did not have enough components. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the TLDError classint
getValue()
Get the numeric value of this enumstatic TLDError
of
(int value) Create a new TLDError for the provided valuestatic Quark
quark()
Registers error quark for soup_tld_get_base_domain() if needed.static TLDError
Returns the enum constant of this class with the specified name.static TLDError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_HOSTNAME
A hostname was syntactically invalid. -
IS_IP_ADDRESS
The passed-in "hostname" was actually an IP address (and thus has no base domain or public suffix). -
NOT_ENOUGH_DOMAINS
The passed-in hostname did not have enough components. Eg, callingSoup.tldGetBaseDomain(java.lang.String)
on <literal>"co.uk"</literal>. -
NO_BASE_DOMAIN
The passed-in hostname has no recognized public suffix. -
NO_PSL_DATA
The Public Suffix List was not available.
-
-
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 TLDError 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
-
getType
-
quark
Registers error quark for soup_tld_get_base_domain() if needed.- Returns:
- Error quark for Soup TLD functions.
- Throws:
UnsupportedPlatformException
- when run on a platform other than linux
-