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>.
failedGeneric error condition for when an operation fails and no more specific
<GIOErrorEnum> value is defined.
not-foundFile not found.
existsFile already exists.
is-directoryFile is a directory.
not-directoryFile is not a directory.
not-emptyFile is a directory that isn’t empty.
not-regular-fileFile is not a regular file.
not-symbolic-linkFile is not a symbolic link.
not-mountable-fileFile cannot be mounted.
filename-too-longFilename is too many characters.
invalid-filenameFilename is invalid or contains invalid characters.
too-many-linksFile contains too many symbolic links.
no-spaceNo space left on drive.
invalid-argumentInvalid argument.
permission-deniedPermission denied.
not-supportedOperation (or one of its parameters) not supported
not-mountedFile isn’t mounted.
already-mountedFile is already mounted.
closedFile was closed.
cancelledOperation was cancelled. See <GCancellable>.
pendingOperations are still pending.
read-onlyFile is read only.
cant-create-backupBackup couldn’t be created.
wrong-etagFile’s Entity Tag was incorrect.
timed-outOperation timed out.
would-recurseOperation would be recursive.
busyFile is busy.
would-blockOperation would block.
host-not-foundHost couldn’t be found (remote operations).
would-mergeOperation would merge files.
failed-handledOperation failed and a helper program has already interacted with the user. Do not display any error dialog.
too-many-open-filesThe current process has too many files open and can’t open any more. Duplicate descriptors do count toward this limit. Since 2.20
not-initializedThe object has not been initialized. Since 2.22
address-in-useThe requested address is already in use. Since 2.22
partial-inputNeed more input to finish operation. Since 2.24
invalid-dataThe input data was invalid. Since 2.24
dbus-errorA 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-unreachableHost unreachable. Since 2.26
network-unreachableNetwork unreachable. Since 2.26
connection-refusedConnection refused. Since 2.26
proxy-failedConnection to proxy server failed. Since 2.26
proxy-auth-failedProxy authentication failed. Since 2.26
proxy-need-authProxy server needs authentication. Since 2.26
proxy-not-allowedProxy connection is not allowed by ruleset. Since 2.26
broken-pipeBroken pipe. Since 2.36
connection-closedConnection 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-connectedTransport endpoint is not connected. Since 2.44
message-too-largeMessage too large. Since 2.48.
no-such-deviceNo such device found. Since 2.74
destination-unsetDestination address unset. Since 2.80