Task.returnNewErrorLiteral

void returnNewErrorLiteral(glib.types.Quark domain, int code, string message)

Sets task’s result to a new [glib.error.ErrorWrap] created from domain, code, message and completes the task.

See [gio.task.Task.returnPointer] for more discussion of exactly what ‘completing the task’ means.

See also [gio.task.Task.returnNewError].

Parameters

domaina #GQuark.
codean error code.
messagean error message