Gets the D-Bus error name used for error, if any.
This function is guaranteed to return a D-Bus error name for all [type@GLib.Error]s returned from functions handling remote method calls
(for example, [method@Gio.DBusConnection.call_finish]) unless [func@Gio.DBusError.strip_remote_error] has already been used on error
.
| error |
an error |
|
an allocated string, or `NULL` if the D-Bus error name could not be found |