Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe archive file is invalid or corrupt.The extension specified background persistence that was not compatible with the platform or features requested.An invalid declarative net request entry was encountered.An invalidmanifest.jsonwas encountered.An invalid manifest entry was encountered.A resource failed the bundle's code signature checks.A specified resource was not found on disk.An unknown error occured.The manifest version is not supported. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the WebExtensionError class.intgetValue()Get the numeric value of this enumstatic WebExtensionErrorof(int value) Create a new WebExtensionError for the provided valuestatic WebExtensionErrorof(MemorySegment address) Create a new WebExtensionError for the value in the provided memory address.static Quarkquark()Gets the quark for the domain of Web Extension errors.static WebExtensionErrorReturns the enum constant of this class with the specified name.static WebExtensionError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
An unknown error occured. -
RESOURCE_NOT_FOUND
A specified resource was not found on disk. -
INVALID_RESOURCE_CODE_SIGNATURE
A resource failed the bundle's code signature checks. -
INVALID_MANIFEST
An invalidmanifest.jsonwas encountered. -
UNSUPPORTED_MANIFEST_VERSION
The manifest version is not supported. -
INVALID_MANIFEST_ENTRY
An invalid manifest entry was encountered. -
INVALID_DECLARATIVE_NET_REQUEST_ENTRY
An invalid declarative net request entry was encountered. -
INVALID_BACKGROUND_PERSISTENCE
The extension specified background persistence that was not compatible with the platform or features requested. -
INVALID_ARCHIVE
The archive file is invalid or corrupt.
-
-
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 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:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
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
Get the GType of the WebExtensionError class.- Returns:
- the GType
-
quark
Gets the quark for the domain of Web Extension errors.- Returns:
- web extension error domain.
- Since:
- 2.52
-