DBusMethodInvocation.returnDbusError

void returnDbusError(string errorName, string errorMessage)

Finishes handling a D-Bus method call by returning an error.

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

Parameters

errorNameA valid D-Bus error name.
errorMessageA valid D-Bus error message.