diff options
author | Gaël Bonithon <gael@xfce.org> | 2021-12-26 00:06:34 +0100 |
---|---|---|
committer | Gaël Bonithon <gael@xfce.org> | 2021-12-26 18:30:04 +0100 |
commit | 49ffba98d7cf9626a1470bc49a53596300fe3550 (patch) | |
tree | 617a9acf683f60bcda0faa8446cacbefc8d423dc /tumblerd/tumbler-scheduler.h | |
parent | ef518751bd744a48a165dc7c285f98b960c64a75 (diff) | |
download | tumbler-49ffba98d7cf9626a1470bc49a53596300fe3550.tar.gz |
Error handling: Fit to the spec and complete message if needed
A parameter is added to Tumbler's internal error signals to account for
the error domain, and the error code `TUMBLER_ERROR_OTHER_ERROR_DOMAIN`
is added to indicate that the error originated from a third-party API.
When sending the error signal via D-Bus, cancelling errors are filtered
out, and when the error originates from a third-party API, the error
message is prefixed with the domain and code of that error, in a
possibly parsable format.
Fixes #49.
Diffstat (limited to 'tumblerd/tumbler-scheduler.h')
-rw-r--r-- | tumblerd/tumbler-scheduler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tumblerd/tumbler-scheduler.h b/tumblerd/tumbler-scheduler.h index 6f50a00..6423166 100644 --- a/tumblerd/tumbler-scheduler.h +++ b/tumblerd/tumbler-scheduler.h @@ -46,6 +46,7 @@ struct _TumblerSchedulerIface void (*error) (TumblerScheduler *scheduler, guint32 handle, const gchar *const *failed_uris, + GQuark error_domain, gint error_code, const gchar *message); void (*finished) (TumblerScheduler *scheduler, |