Snapd.Error
Description: Reference for Snapd.Error

### Enumeration

# SnapdError

since: 1.0

#### Declaration

    error-domain Snapd.Error

#### Description [src]

Error codes returned by snapd operations.

Available since: 1.0

#### Members

`SNAPD_ERROR_CONNECTION_FAILED`

  Not able to connect to snapd.

  - Value: `0`
  - Available since: 1.0
`SNAPD_ERROR_WRITE_FAILED`

  An error occurred while writing to snapd.

  - Value: `1`
  - Available since: 1.0
`SNAPD_ERROR_READ_FAILED`

  An error occurred while reading from snapd.

  - Value: `2`
  - Available since: 1.0
`SNAPD_ERROR_BAD_REQUEST`

  Snapd did not understand the request that was sent.

  - Value: `3`
  - Available since: 1.0
`SNAPD_ERROR_BAD_RESPONSE`

  The response received from snapd was not understood.

  - Value: `4`
  - Available since: 1.0
`SNAPD_ERROR_AUTH_DATA_REQUIRED`

  The requested operation requires authorization data.

  - Value: `5`
  - Available since: 1.0
`SNAPD_ERROR_AUTH_DATA_INVALID`

  The provided authorization data is invalid.

  - Value: `6`
  - Available since: 1.0
`SNAPD_ERROR_TWO_FACTOR_REQUIRED`

  Login requires a two factor code.

  - Value: `7`
  - Available since: 1.0
`SNAPD_ERROR_TWO_FACTOR_INVALID`

  The two factor code provided at login is invalid.

  - Value: `8`
  - Available since: 1.0
`SNAPD_ERROR_PERMISSION_DENIED`

  This user account is not permitted to perform the requested operation.

  - Value: `9`
  - Available since: 1.0
`SNAPD_ERROR_FAILED`

  An unspecified error occurred while communicating with snapd.

  - Value: `10`
  - Available since: 1.0
`SNAPD_ERROR_TERMS_NOT_ACCEPTED`

  This user has not accepted the store’s terms of service.

  - Value: `11`
  - Available since: 1.0
`SNAPD_ERROR_PAYMENT_NOT_SETUP`

  This user has not configured a payment method.

  - Value: `12`
  - Available since: 1.0
`SNAPD_ERROR_PAYMENT_DECLINED`

  This user has had their payment method declined by the payment provider.

  - Value: `13`
  - Available since: 1.0
`SNAPD_ERROR_ALREADY_INSTALLED`

  The requested snap is already installed.

  - Value: `14`
  - Available since: 1.0
`SNAPD_ERROR_NOT_INSTALLED`

  The requested snap is not installed.

  - Value: `15`
  - Available since: 1.0
`SNAPD_ERROR_NO_UPDATE_AVAILABLE`

  No update is available for this snap.

  - Value: `16`
  - Available since: 1.0
`SNAPD_ERROR_PASSWORD_POLICY_ERROR`

  Provided password is not valid.

  - Value: `17`
  - Available since: 1.0
`SNAPD_ERROR_NEEDS_DEVMODE`

  This snap needs to be installed using devmode.

  - Value: `18`
  - Available since: 1.0
`SNAPD_ERROR_NEEDS_CLASSIC`

  This snap needs to be installed using classic mode.

  - Value: `19`
  - Available since: 1.0
`SNAPD_ERROR_NEEDS_CLASSIC_SYSTEM`

  A classic system is required to install this snap.

  - Value: `20`
  - Available since: 1.0
`SNAPD_ERROR_BAD_QUERY`

  A bad query was provided.

  - Value: `21`
  - Available since: 1.0
`SNAPD_ERROR_NETWORK_TIMEOUT`

  A timeout occurred during the request.

  - Value: `22`
  - Available since: 1.0
`SNAPD_ERROR_NOT_FOUND`

  The requested snap couldn’t be found.

  - Value: `23`
  - Available since: 1.0
`SNAPD_ERROR_NOT_IN_STORE`

  The requested snap is not in the store.

  - Value: `24`
  - Available since: 1.0
`SNAPD_ERROR_AUTH_CANCELLED`

  Authentication was cancelled by the user.

  - Value: `25`
  - Available since: 1.0
`SNAPD_ERROR_NOT_CLASSIC`

  Snap not compatible with classic mode.

  - Value: `26`
  - Available since: 1.0
`SNAPD_ERROR_REVISION_NOT_AVAILABLE`

  Requested snap revision not available.

  - Value: `27`
  - Available since: 1.0
`SNAPD_ERROR_CHANNEL_NOT_AVAILABLE`

  Requested snap channel not available.

  - Value: `28`
  - Available since: 1.0
`SNAPD_ERROR_NOT_A_SNAP`

  The given snap or directory does not look like a snap.

  - Value: `29`
  - Available since: 1.0
`SNAPD_ERROR_DNS_FAILURE`

  A hostname failed to resolve during the request.

  - Value: `30`
  - Available since: 1.0
`SNAPD_ERROR_OPTION_NOT_FOUND`

  A requested configuration option is not set.

  - Value: `31`
  - Available since: 1.0
`SNAPD_ERROR_UNSUCCESSFUL`

  A snapctl command was unsuccessful.

  - Value: `32`
  - Available since: 1.0
`SNAPD_ERROR_APP_NOT_FOUND`

  The requested app coundn’t be found.

  - Value: `33`
  - Available since: 1.0
`SNAPD_ERROR_ARCHITECTURE_NOT_AVAILABLE`

  No snap revision on specified architecture.

  - Value: `34`
  - Available since: 1.0
`SNAPD_ERROR_CHANGE_CONFLICT`

  The requested operation would conflict with currently ongoing change.

  - Value: `35`
  - Available since: 1.0
`SNAPD_ERROR_INTERFACES_UNCHANGED`

  The requested interfaces’ operation would have no effect.

  - Value: `36`
  - Available since: 1.0
`SNAPD_ERROR_ALREADY_RUNNING`

  An async process is already running.

  - Value: `37`
  - Available since: 1.0
`SNAPD_ERROR_NOT_RUNNING`

  An async process is not running.

  - Value: `38`
  - Available since: 1.0

#### Type functions

###### snapd_error_quark

Gets the Snapd Error Quark.

since: 1.0