Package org.gnome.webkit
Enum Class PolicyError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<PolicyError>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum PolicyError
extends Enum<PolicyError>
implements Enumeration
Enum values used to denote the various policy errors.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLoad failure due to unsupported mime typeLoad failure due to URI that can not be shownLoad failure due to port restrictionGeneric load failure due to policy errorLoad failure due to frame load interruption by policy change -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the PolicyError classint
getValue()
Get the numeric value of this enumstatic PolicyError
of
(int value) Create a new PolicyError for the provided valuestatic Quark
quark()
Gets the quark for the domain of policy errors.static PolicyError
Returns the enum constant of this class with the specified name.static PolicyError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILED
Generic load failure due to policy error -
CANNOT_SHOW_MIME_TYPE
Load failure due to unsupported mime type -
CANNOT_SHOW_URI
Load failure due to URI that can not be shown -
FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE
Load failure due to frame load interruption by policy change -
CANNOT_USE_RESTRICTED_PORT
Load failure due to port restriction
-
-
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 PolicyError 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
Gets the quark for the domain of policy errors.- Returns:
- policy error domain.
- Throws:
UnsupportedPlatformException
- when run on a platform other than linux
-