Package org.gnome.gio

Enum Class IOErrorEnum

java.lang.Object
java.lang.Enum<IOErrorEnum>
org.gnome.gio.IOErrorEnum
All Implemented Interfaces:
Enumeration, Serializable, Comparable<IOErrorEnum>, Constable

@Generated("io.github.jwharm.JavaGI") public enum IOErrorEnum extends Enum<IOErrorEnum> implements Enumeration
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.