Package org.gnome.secret
Enum Class SecretError
- All Implemented Interfaces:
Serializable,Comparable<SecretError>,Constable,Enumeration
@Generated("io.github.jwharm.JavaGI")
public enum SecretError
extends Enum<SecretError>
implements Enumeration
Errors returned by the Secret Service.
None of the errors are appropriate for display to the user. It is up to the application to handle them appropriately.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiona relevant item or collection already existsattribute list passed to secret_attributes_validate has no elements to validatethe file format is not validthe item or collection is locked and the operation cannot be performedthe xdg:schema attribute of the table does not match the schema nameattribute contained in table not found in corresponding schemano such item or collection found in the Secret Servicereceived an invalid data or message from the Secret Serviceattribute could not be parsed according to its type reported in the table's schema -
Method Summary
Modifier and TypeMethodDescriptionstatic QuarkgetQuark()Get the error quark.static @Nullable TypegetType()Get the GType of the SecretError classintgetValue()Get the numeric value of this enumstatic SecretErrorof(int value) Create a new SecretError for the provided valuestatic SecretErrorof(MemorySegment address) Create a new SecretError for the value in the provided memory address.static SecretErrorReturns the enum constant of this class with the specified name.static SecretError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROTOCOL
received an invalid data or message from the Secret Service -
IS_LOCKED
the item or collection is locked and the operation cannot be performed -
NO_SUCH_OBJECT
no such item or collection found in the Secret Service -
ALREADY_EXISTS
a relevant item or collection already exists -
INVALID_FILE_FORMAT
the file format is not valid -
MISMATCHED_SCHEMA
the xdg:schema attribute of the table does not match the schema name- Since:
- 0.21.2
-
NO_MATCHING_ATTRIBUTE
attribute contained in table not found in corresponding schema- Since:
- 0.21.2
-
WRONG_TYPE
attribute could not be parsed according to its type reported in the table's schema- Since:
- 0.21.2
-
EMPTY_TABLE
attribute list passed to secret_attributes_validate has no elements to validate- Since:
- 0.21.2
-
-
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 SecretError 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 SecretError 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
-
getQuark
-