Enum Class PolicyError

java.lang.Object
java.lang.Enum<PolicyError>
org.webkitgtk.PolicyError
All Implemented Interfaces:
Serializable, Comparable<PolicyError>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum PolicyError extends Enum<PolicyError> implements Enumeration
Enum values used to denote the various policy errors.
  • Enum Constant Details

    • FAILED

      public static final PolicyError FAILED
      Generic load failure due to policy error
    • CANNOT_SHOW_MIME_TYPE

      public static final PolicyError CANNOT_SHOW_MIME_TYPE
      Load failure due to unsupported mime type
    • CANNOT_SHOW_URI

      public static final PolicyError CANNOT_SHOW_URI
      Load failure due to URI that can not be shown
    • FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE

      public static final PolicyError FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE
      Load failure due to frame load interruption by policy change
    • CANNOT_USE_RESTRICTED_PORT

      public static final PolicyError CANNOT_USE_RESTRICTED_PORT
      Load failure due to port restriction
  • Method Details

    • values

      public static PolicyError[] 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 PolicyError 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 PolicyError of(int value)
      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 interface Enumeration
      Returns:
      the enum value
    • of

      public static PolicyError of(MemorySegment address)
      Create a new PolicyError 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
    • getType

      public static @Nullable Type getType()
      Get the GType of the PolicyError class.
      Returns:
      the GType
    • quark

      public static Quark quark()
      Gets the quark for the domain of policy errors.
      Returns:
      policy error domain.