Gio.DBusError.get_remote_error
function get_remote_error(error: GLib.Error): String {
// Gjs wrapper for g_dbus_error_get_remote_error()
}
Gets the D-Bus error name used for error, if any.
This function is guaranteed to return a D-Bus error name for all #GErrors returned from functions handling remote method calls (e.g. Gio.DBusConnection.prototype.call_finish) unless Gio.dbus_error_strip_remote_error has been used on error.
Since 2.26
- error
- Returns
an allocated string or null if the D-Bus error name could not be found. Free with GLib.free.