If a match against a registered error is not found and the D-Bus
error name is in a form as returned by Gio.DBusError.encode_gerror
the error domain and code encoded in the name is used to
create the GLib.Error. Also, dbus_error_name is added to the error
message such that it can be recovered with
Gio.DBusError.get_remote_error.
Creates a GLib.Error based on the contents of
dbus_error_nameanddbus_error_message.Errors registered with Gio.DBusError.register_error will be looked up using
dbus_error_nameand if a match is found, the error domain and code is used. Applications can use Gio.DBusError.get_remote_error to recoverdbus_error_name.If a match against a registered error is not found and the D-Bus error name is in a form as returned by Gio.DBusError.encode_gerror the error domain and code encoded in the name is used to create the GLib.Error. Also,
dbus_error_nameis added to the error message such that it can be recovered with Gio.DBusError.get_remote_error.Otherwise, a GLib.Error with the error code Gio.IOErrorEnum.DBUS_ERROR in the Gio.IOErrorEnum error domain is returned. Also,
dbus_error_nameis added to the error message such that it can be recovered with Gio.DBusError.get_remote_error.In all three cases,
dbus_error_namecan always be recovered from the returned GLib.Error using the Gio.DBusError.get_remote_error function (unless Gio.DBusError.strip_remote_error hasn’t been used on the returned error).This function is typically only used in object mappings to prepare GLib.Error instances for applications. Regular applications should not use it.