return_error


Description:

public void return_error (Quark domain, int code, string format, ...)

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

See encode_gerror for details about what error name will be returned on the wire. In a nutshell, if the given error is registered using register_error the name given during registration is used. Otherwise, a name of the form `org.gtk.GDBus.UnmappedGError.Quark...` is used. This provides transparent mapping of Error between applications using GDBus.

If you are writing an application intended to be portable, always register errors with register_error or use return_dbus_error.

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

Parameters:

this

A DBusMethodInvocation.

domain

A Quark for the Error error domain.

code

The error code.

format

printf-style format.

...

Parameters for format.