DBusMethodInvocation.returnErrorLiteral

Like g_dbus_method_invocation_return_error() but without printf()-style formatting.

This method will take ownership of invocation. See GDBusInterfaceVTable for more information about the ownership of invocation.

class DBusMethodInvocation
void
returnErrorLiteral
(,
int code
,
string message
)

Parameters

domain GQuark

A GQuark for the GError error domain.

code int

The error code.

message string

The error message.

Meta

Since

2.26