GIOErrorEnum

Error codes returned by GIO functions.

Note that this domain may be extended in future GLib releases. In general, new error codes either only apply to new APIs, or else replace gio.types.IOErrorEnum.Failed in cases that were not explicitly distinguished before. You should therefore avoid writing code like

if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_FAILED))
  {
    // Assume that this is EPRINTERONFIRE
    ...
  }

but should instead treat all unrecognized error codes the same as gio.types.IOErrorEnum.Failed.

See also #GPollableReturn for a cheaper way of returning gio.types.IOErrorEnum.WouldBlock to callers without allocating a #GError.

Values

ValueMeaning
Failed0

Generic error condition for when an operation fails and no more specific #GIOErrorEnum value is defined.

NotFound1

File not found.

Exists2

File already exists.

IsDirectory3

File is a directory.

NotDirectory4

File is not a directory.

NotEmpty5

File is a directory that isn't empty.

NotRegularFile6

File is not a regular file.

NotMountableFile8

File cannot be mounted.

FilenameTooLong9

Filename is too many characters.

InvalidFilename10

Filename is invalid or contains invalid characters.

NoSpace12

No space left on drive.

InvalidArgument13

Invalid argument.

PermissionDenied14

Permission denied.

NotSupported15

Operation (or one of its parameters) not supported

NotMounted16

File isn't mounted.

AlreadyMounted17

File is already mounted.

Closed18

File was closed.

Cancelled19

Operation was cancelled. See #GCancellable.

Pending20

Operations are still pending.

ReadOnly21

File is read only.

CantCreateBackup22

Backup couldn't be created.

WrongEtag23

File's Entity Tag was incorrect.

TimedOut24

Operation timed out.

WouldRecurse25

Operation would be recursive.

Busy26

File is busy.

WouldBlock27

Operation would block.

HostNotFound28

Host couldn't be found (remote operations).

WouldMerge29

Operation would merge files.

FailedHandled30

Operation failed and a helper program has already interacted with the user. Do not display any error dialog.

TooManyOpenFiles31

The current process has too many files open and can't open any more. Duplicate descriptors do count toward this limit. Since 2.20

NotInitialized32

The object has not been initialized. Since 2.22

AddressInUse33

The requested address is already in use. Since 2.22

PartialInput34

Need more input to finish operation. Since 2.24

InvalidData35

The input data was invalid. Since 2.24

DbusError36

A remote object generated an error that doesn't correspond to a locally registered #GError error domain. Use gio.global.dbusErrorGetRemoteError to extract the D-Bus error name and gio.global.dbusErrorStripRemoteError to fix up the message so it matches what was received on the wire. Since 2.26.

HostUnreachable37

Host unreachable. Since 2.26

NetworkUnreachable38

Network unreachable. Since 2.26

ConnectionRefused39

Connection refused. Since 2.26

ProxyFailed40

Connection to proxy server failed. Since 2.26

ProxyAuthFailed41

Proxy authentication failed. Since 2.26

ProxyNeedAuth42

Proxy server needs authentication. Since 2.26

ProxyNotAllowed43

Proxy connection is not allowed by ruleset. Since 2.26

BrokenPipe44

Broken pipe. Since 2.36

ConnectionClosed44

Connection closed by peer. Note that this is the same code as gio.types.IOErrorEnum.BrokenPipe; before 2.44 some "connection closed" errors returned gio.types.IOErrorEnum.BrokenPipe, but others returned gio.types.IOErrorEnum.Failed. Now they should all return the same value, which has this more logical name. Since 2.44.

NotConnected45

Transport endpoint is not connected. Since 2.44

MessageTooLarge46

Message too large. Since 2.48.

NoSuchDevice47

No such device found. Since 2.74

DestinationUnset48

Destination address unset. Since 2.80