Enum Class WebExtensionError

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

@Generated("org.javagi.JavaGI") public enum WebExtensionError extends Enum<WebExtensionError> implements Enumeration
Enum values used to denote errors happening when parsing a WebKitWebExtension
Since:
2.52
  • Enum Constant Details

    • UNKNOWN

      public static final WebExtensionError UNKNOWN
      An unknown error occured.
    • RESOURCE_NOT_FOUND

      public static final WebExtensionError RESOURCE_NOT_FOUND
      A specified resource was not found on disk.
    • INVALID_RESOURCE_CODE_SIGNATURE

      public static final WebExtensionError INVALID_RESOURCE_CODE_SIGNATURE
      A resource failed the bundle's code signature checks.
    • INVALID_MANIFEST

      public static final WebExtensionError INVALID_MANIFEST
      An invalid manifest.json was encountered.
    • UNSUPPORTED_MANIFEST_VERSION

      public static final WebExtensionError UNSUPPORTED_MANIFEST_VERSION
      The manifest version is not supported.
    • INVALID_MANIFEST_ENTRY

      public static final WebExtensionError INVALID_MANIFEST_ENTRY
      An invalid manifest entry was encountered.
    • INVALID_DECLARATIVE_NET_REQUEST_ENTRY

      public static final WebExtensionError INVALID_DECLARATIVE_NET_REQUEST_ENTRY
      An invalid declarative net request entry was encountered.
    • INVALID_BACKGROUND_PERSISTENCE

      public static final WebExtensionError INVALID_BACKGROUND_PERSISTENCE
      The extension specified background persistence that was not compatible with the platform or features requested.
    • INVALID_ARCHIVE

      public static final WebExtensionError INVALID_ARCHIVE
      The archive file is invalid or corrupt.
  • Method Details

    • values

      public static WebExtensionError[] 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 WebExtensionError 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 WebExtensionError of(int value)
      Create a new WebExtensionError 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 WebExtensionError of(MemorySegment address)
      Create a new WebExtensionError 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 WebExtensionError class.
      Returns:
      the GType
    • quark

      public static Quark quark()
      Gets the quark for the domain of Web Extension errors.
      Returns:
      web extension error domain.
      Since:
      2.52