GIO Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
#include <gio/gio.h> #define G_IO_ERROR enum GIOErrorEnum; GIOErrorEnum g_io_error_from_errno (gint err_no
); GIOErrorEnum g_io_error_from_win32_error (gint error_code
);
#define G_IO_ERROR g_io_error_quark()
Error domain for GIO. Errors in this domain will be from the GIOErrorEnum enumeration. See GError for more information on error domains.
typedef enum { G_IO_ERROR_FAILED, G_IO_ERROR_NOT_FOUND, G_IO_ERROR_EXISTS, G_IO_ERROR_IS_DIRECTORY, G_IO_ERROR_NOT_DIRECTORY, G_IO_ERROR_NOT_EMPTY, G_IO_ERROR_NOT_REGULAR_FILE, G_IO_ERROR_NOT_SYMBOLIC_LINK, G_IO_ERROR_NOT_MOUNTABLE_FILE, G_IO_ERROR_FILENAME_TOO_LONG, G_IO_ERROR_INVALID_FILENAME, G_IO_ERROR_TOO_MANY_LINKS, G_IO_ERROR_NO_SPACE, G_IO_ERROR_INVALID_ARGUMENT, G_IO_ERROR_PERMISSION_DENIED, G_IO_ERROR_NOT_SUPPORTED, G_IO_ERROR_NOT_MOUNTED, G_IO_ERROR_ALREADY_MOUNTED, G_IO_ERROR_CLOSED, G_IO_ERROR_CANCELLED, G_IO_ERROR_PENDING, G_IO_ERROR_READ_ONLY, G_IO_ERROR_CANT_CREATE_BACKUP, G_IO_ERROR_WRONG_ETAG, G_IO_ERROR_TIMED_OUT, G_IO_ERROR_WOULD_RECURSE, G_IO_ERROR_BUSY, G_IO_ERROR_WOULD_BLOCK, G_IO_ERROR_HOST_NOT_FOUND, G_IO_ERROR_WOULD_MERGE, G_IO_ERROR_FAILED_HANDLED, G_IO_ERROR_TOO_MANY_OPEN_FILES, G_IO_ERROR_NOT_INITIALIZED, G_IO_ERROR_ADDRESS_IN_USE, G_IO_ERROR_PARTIAL_INPUT, G_IO_ERROR_INVALID_DATA, G_IO_ERROR_DBUS_ERROR, G_IO_ERROR_HOST_UNREACHABLE, G_IO_ERROR_NETWORK_UNREACHABLE, G_IO_ERROR_CONNECTION_REFUSED, G_IO_ERROR_PROXY_FAILED, G_IO_ERROR_PROXY_AUTH_FAILED, G_IO_ERROR_PROXY_NEED_AUTH, G_IO_ERROR_PROXY_NOT_ALLOWED } GIOErrorEnum;
Error codes returned by GIO functions.
Generic error condition for when any operation fails. | |
File not found error. | |
File already exists error. | |
File is a directory error. | |
File is not a directory. | |
File is a directory that isn't empty. | |
File is not a regular file. | |
File is not a symbolic link. | |
File cannot be mounted. | |
Filename is too many characters. | |
Filename is invalid or contains invalid characters. | |
File contains too many symbolic links. | |
No space left on drive. | |
Invalid argument. | |
Permission denied. | |
Operation not supported for the current backend. | |
File isn't mounted. | |
File is already mounted. | |
File was closed. | |
Operation was cancelled. See GCancellable. | |
Operations are still pending. | |
File is read only. | |
Backup couldn't be created. | |
File's Entity Tag was incorrect. | |
Operation timed out. | |
Operation would be recursive. | |
File is busy. | |
Operation would block. | |
Host couldn't be found (remote operations). | |
Operation would merge files. | |
Operation failed and a helper program has already interacted with the user. Do not display any error dialog. | |
The current process has too many files open and can't open any more. Duplicate descriptors do count toward this limit. Since 2.20 | |
The object has not been initialized. Since 2.22 | |
The requested address is already in use. Since 2.22 | |
Need more input to finish operation. Since 2.24 | |
There input data was invalid. Since 2.24 | |
A remote object generated an error that
doesn't correspond to a locally registered GError error
domain. Use g_dbus_error_get_remote_error() to extract the D-Bus
error name and g_dbus_error_strip_remote_error() to fix up the
message so it matches what was received on the wire. Since 2.26.
|
|
Host unreachable. Since 2.26 | |
Network unreachable. Since 2.26 | |
Connection refused. Since 2.26 | |
Connection to proxy server failed. Since 2.26 | |
Proxy authentication failed. Since 2.26 | |
Proxy server needs authentication. Since 2.26 | |
Proxy connection is not allowed by ruleset. Since 2.26 |
GIOErrorEnum g_io_error_from_errno (gint err_no
);
Converts errno.h error codes into GIO error codes.
|
Error number as defined in errno.h. |
Returns : |
GIOErrorEnum value for the given errno.h error number. |
GIOErrorEnum g_io_error_from_win32_error (gint error_code
);
Converts some common error codes into GIO error codes. The fallback value G_IO_ERROR_FAILED is returned for error codes not handled.
|
Windows error number. |
Returns : |
GIOErrorEnum value for the given error number. |
Since 2.26