to_gerror


Description:

public bool to_gerror () throws Error

Encodes the error in this as a [type@GLib.

Error].

If this is of type [enum@Gio.DBusMessageType.ERROR], this function calls [ func@Gio.DBusError.set_dbus_error] using the information in the [enum@Gio.DBusMessageHeaderField.ERROR_NAME] header field of this as well as the first string item in this’s body.

If this is not of type [enum@Gio.DBusMessageType.ERROR], this function does nothing and returns false.

Parameters:

this

a D-Bus message

Returns:

true if throws was set, false otherwise