Secret.Error
Description: Reference for Secret.Error

### Enumeration

# SecretError

#### Declaration

    enum Secret.Error

#### Description [src]

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.

Stability: Stable

#### Members

`SECRET_ERROR_PROTOCOL`

  Received an invalid data or message from the Secret Service.

  - Value: `1`
  - Available since: 1
`SECRET_ERROR_IS_LOCKED`

  The item or collection is locked and the operation cannot be performed.

  - Value: `2`
  - Available since: 1
`SECRET_ERROR_NO_SUCH_OBJECT`

  No such item or collection found in the Secret Service.

  - Value: `3`
  - Available since: 1
`SECRET_ERROR_ALREADY_EXISTS`

  A relevant item or collection already exists.

  - Value: `4`
  - Available since: 1
`SECRET_ERROR_INVALID_FILE_FORMAT`

  The file format is not valid.

  - Value: `5`
  - Available since: 1
`SECRET_ERROR_MISMATCHED_SCHEMA`

  The xdg:schema attribute of the table does not match the schema name.

  - Value: `6`
  - Available since: 0.21.2
`SECRET_ERROR_NO_MATCHING_ATTRIBUTE`

  Attribute contained in table not found in corresponding schema.

  - Value: `7`
  - Available since: 0.21.2
`SECRET_ERROR_WRONG_TYPE`

  Attribute could not be parsed according to its type reported in the table’s schema.

  - Value: `8`
  - Available since: 0.21.2
`SECRET_ERROR_EMPTY_TABLE`

  Attribute list passed to secret_attributes_validate has no elements to validate.

  - Value: `9`
  - Available since: 0.21.2

#### Type functions

###### secret_error_get_quark

Get the error quark.