class Gio::IOErrorEnum

Overview

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 %G_IO_ERROR_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 %G_IO_ERROR_FAILED.

See also #GPollableReturn for a cheaper way of returning %G_IO_ERROR_WOULD_BLOCK to callers without allocating a #GError.

Direct Known Subclasses

Defined in:

lib/gi-crystal/src/auto/gio-2.0/gio.cr

Instance methods inherited from class GLib::Error

code : Int32 code, domain : String domain, finalize finalize, to_unsafe : Pointer(LibGLib::Error) to_unsafe