Warning: util_unwrap_dbus_error is deprecated since 3.8.
The function takes a dbus_error
and tries to find a match in known_errors
for it, if it is a G_IO_ERROR,
G_IO_ERROR_DBUS_ERROR.
This function is no longer used.
If it is anything else then the dbus_error
is moved to client_error
.
The fail_when_none_matched
influences behaviour. If it's true
, and none of known_errors
matches,
or this is not a G_IO_ERROR_DBUS_ERROR, then false
is returned and the client_error
is left without change.
Otherwise, the fail_when_none_matched
is false
, the error is always processed and will result in E_CLIENT_ERROR,
E_CLIENT_ERROR_OTHER_ERROR if none of known_error
matches.
dbus_error |
DBus Error to unwrap |
client_error |
Resulting Error; can be |
known_errors |
List of known errors against which try to match |
known_errors_count |
How many items are stored in |
known_errors_domain |
Error domain for |
fail_when_none_matched |
Whether to fail when none of |