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.
| this |
a D-Bus message |
|
true if throws was set, false otherwise |