Gio.DBusMethodInvocation.prototype.return_error_literal

function return_error_literal(domain: GLib.Quark, code: Number(gint), message: String): void {
    // Gjs wrapper for g_dbus_method_invocation_return_error_literal()
}
  

Like Gio.DBusMethodInvocation.return_error but without printf()-style formatting.

This method will free invocation, you cannot use it afterwards.

Since 2.26

domain

A GLib.Quark for the GLib.Error error domain.

code

The error code.

message

The error message.