DBusError.getRemoteError

string getRemoteError(glib.error.ErrorWrap 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.dbus_connection.DBusConnection.callFinish]) unless [gio.global.dbusErrorStripRemoteError] has been used on error.

Parameters

errora #GError

Returns

an allocated string or null if the

D-Bus error name could not be found. Free with [glib.global.gfree].