Task.returnNewErrorLiteral

Sets task’s result to a new glib.error.ErrorG 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.

class Task
void
returnNewErrorLiteral

Parameters

domain glib.types.Quark

a #GQuark.

code int

an error code.

message string

an error message