Gio.DBusMethodInvocation.prototype.return_dbus_error
function return_dbus_error(error_name: String, error_message: String): void { // Gjs wrapper for g_dbus_method_invocation_return_dbus_error() }
Finishes handling a D-Bus method call by returning an error.
This method will free invocation, you cannot use it afterwards.
Since 2.26
- error_name
A valid D-Bus error name.
- error_message
A valid D-Bus error message.