## UDisksError UDisksError — Possible errors that can be returned |

## Synopsis

    #define             UDISKS_ERROR
    enum                UDisksError;

## Description

Error codes and D-Bus errors.

## Details

### UDISKS_ERROR

    #define UDISKS_ERROR (udisks_error_quark ())

Error domain for UDisks. Errors in this domain will be form the UDisksError enumeration. See GError for more information on error domains.

### enum UDisksError

    typedef enum {
      UDISKS_ERROR_FAILED,                     /* org.freedesktop.UDisks2.Error.Failed */
      UDISKS_ERROR_CANCELLED,                  /* org.freedesktop.UDisks2.Error.Cancelled */
      UDISKS_ERROR_ALREADY_CANCELLED,          /* org.freedesktop.UDisks2.Error.AlreadyCancelled */
      UDISKS_ERROR_NOT_AUTHORIZED,             /* org.freedesktop.UDisks2.Error.NotAuthorized */
      UDISKS_ERROR_NOT_AUTHORIZED_CAN_OBTAIN,  /* org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain */
      UDISKS_ERROR_NOT_AUTHORIZED_DISMISSED,   /* org.freedesktop.UDisks2.Error.NotAuthorizedDismissed */
      UDISKS_ERROR_ALREADY_MOUNTED,            /* org.freedesktop.UDisks2.Error.AlreadyMounted */
      UDISKS_ERROR_NOT_MOUNTED,                /* org.freedesktop.UDisks2.Error.NotMounted */
      UDISKS_ERROR_OPTION_NOT_PERMITTED,       /* org.freedesktop.UDisks2.Error.OptionNotPermitted */
      UDISKS_ERROR_MOUNTED_BY_OTHER_USER,      /* org.freedesktop.UDisks2.Error.MountedByOtherUser */
      UDISKS_ERROR_ALREADY_UNMOUNTING,         /* org.freedesktop.UDisks2.Error.AlreadyUnmounting */
      UDISKS_ERROR_NOT_SUPPORTED,              /* org.freedesktop.UDisks2.Error.NotSupported */
      UDISKS_ERROR_TIMED_OUT,                  /* org.freedesktop.UDisks2.Error.Timedout */
      UDISKS_ERROR_WOULD_WAKEUP,               /* org.freedesktop.UDisks2.Error.WouldWakeup */
      UDISKS_ERROR_DEVICE_BUSY                 /* org.freedesktop.UDisks2.Error.DeviceBusy */
    } UDisksError;

Error codes for the UDISKS_ERROR error domain and the corresponding D-Bus error names.

`UDISKS_ERROR_FAILED` | The operation failed.
`UDISKS_ERROR_CANCELLED` | The operation was cancelled.
`UDISKS_ERROR_ALREADY_CANCELLED` | The operation has already been cancelled.
`UDISKS_ERROR_NOT_AUTHORIZED` | Not authorized to perform the requested operation.
`UDISKS_ERROR_NOT_AUTHORIZED_CAN_OBTAIN` | Like `UDISKS_ERROR_NOT_AUTHORIZED` but authorization can be obtained through e.g. authentication.
`UDISKS_ERROR_NOT_AUTHORIZED_DISMISSED` | Like `UDISKS_ERROR_NOT_AUTHORIZED` but an authentication was shown and the user dimissed it.
`UDISKS_ERROR_ALREADY_MOUNTED` | The device is already mounted.
`UDISKS_ERROR_NOT_MOUNTED` | The device is not mounted.
`UDISKS_ERROR_OPTION_NOT_PERMITTED` | Not permitted to use the requested option.
`UDISKS_ERROR_MOUNTED_BY_OTHER_USER` | The device is mounted by another user.
`UDISKS_ERROR_ALREADY_UNMOUNTING` | The device is already unmounting.
`UDISKS_ERROR_NOT_SUPPORTED` | The operation is not supported due to missing driver/tool support.
`UDISKS_ERROR_TIMED_OUT` | The operation timed out.
`UDISKS_ERROR_WOULD_WAKEUP` | The operation would wake up a disk that is in a deep-sleep state.
`UDISKS_ERROR_DEVICE_BUSY` | Attempting to unmount a device that is busy.