Enum Class SecretError

java.lang.Object
java.lang.Enum<SecretError>
org.gnome.secret.SecretError
All Implemented Interfaces:
Serializable, Comparable<SecretError>, Constable, Enumeration

@Generated("org.javagi.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.

  • Enum Constant Details

    • PROTOCOL

      public static final SecretError PROTOCOL
      received an invalid data or message from the Secret Service
    • IS_LOCKED

      public static final SecretError IS_LOCKED
      the item or collection is locked and the operation cannot be performed
    • NO_SUCH_OBJECT

      public static final SecretError NO_SUCH_OBJECT
      no such item or collection found in the Secret Service
    • ALREADY_EXISTS

      public static final SecretError ALREADY_EXISTS
      a relevant item or collection already exists
    • INVALID_FILE_FORMAT

      public static final SecretError INVALID_FILE_FORMAT
      the file format is not valid
    • MISMATCHED_SCHEMA

      public static final SecretError MISMATCHED_SCHEMA
      the xdg:schema attribute of the table does not match the schema name
      Since:
      0.21.2
    • NO_MATCHING_ATTRIBUTE

      public static final SecretError NO_MATCHING_ATTRIBUTE
      attribute contained in table not found in corresponding schema
      Since:
      0.21.2
    • WRONG_TYPE

      public static final SecretError WRONG_TYPE
      attribute could not be parsed according to its type reported in the table's schema
      Since:
      0.21.2
    • EMPTY_TABLE

      public static final SecretError EMPTY_TABLE
      attribute list passed to secret_attributes_validate has no elements to validate
      Since:
      0.21.2
  • Method Details

    • values

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

      public static SecretError of(MemorySegment address)
      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

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

      public static Quark getQuark()
      Get the error quark.
      Returns:
      the quark