4.18 <GIOErrorEnum>

Enumeration: <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 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 failed.

See also <GPollableReturn> for a cheaper way of returning would-block to callers without allocating a <GError>.

Members

failed

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

not-found

File not found.

exists

File already exists.

is-directory

File is a directory.

not-directory

File is not a directory.

not-empty

File is a directory that isn’t empty.

not-regular-file

File is not a regular file.

not-symbolic-link

File is not a symbolic link.

not-mountable-file

File cannot be mounted.

filename-too-long

Filename is too many characters.

invalid-filename

Filename is invalid or contains invalid characters.

too-many-links

File contains too many symbolic links.

no-space

No space left on drive.

invalid-argument

Invalid argument.

permission-denied

Permission denied.

not-supported

Operation (or one of its parameters) not supported

not-mounted

File isn’t mounted.

already-mounted

File is already mounted.

closed

File was closed.

cancelled

Operation was cancelled. See <GCancellable>.

pending

Operations are still pending.

read-only

File is read only.

cant-create-backup

Backup couldn’t be created.

wrong-etag

File’s Entity Tag was incorrect.

timed-out

Operation timed out.

would-recurse

Operation would be recursive.

busy

File is busy.

would-block

Operation would block.

host-not-found

Host couldn’t be found (remote operations).

would-merge

Operation would merge files.

failed-handled

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

too-many-open-files

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

not-initialized

The object has not been initialized. Since 2.22

address-in-use

The requested address is already in use. Since 2.22

partial-input

Need more input to finish operation. Since 2.24

invalid-data

The input data was invalid. Since 2.24

dbus-error

A remote object generated an error that doesn’t correspond to a locally registered <GError> error domain. Use dbus-error-get-remote-error to extract the D-Bus error name and dbus-error-strip-remote-error? to fix up the message so it matches what was received on the wire. Since 2.26.

host-unreachable

Host unreachable. Since 2.26

network-unreachable

Network unreachable. Since 2.26

connection-refused

Connection refused. Since 2.26

proxy-failed

Connection to proxy server failed. Since 2.26

proxy-auth-failed

Proxy authentication failed. Since 2.26

proxy-need-auth

Proxy server needs authentication. Since 2.26

proxy-not-allowed

Proxy connection is not allowed by ruleset. Since 2.26

broken-pipe

Broken pipe. Since 2.36

connection-closed

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

not-connected

Transport endpoint is not connected. Since 2.44

message-too-large

Message too large. Since 2.48.

no-such-device

No such device found. Since 2.74

destination-unset

Destination address unset. Since 2.80