mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
dbusErrors: Add utility module for handling remote errors
We sometimes return custom D-Bus errors. Right now those errors are ad-hoc, which means receivers don't have a proper way of checking whether a thrown GLib.Error corresponds to a particular remote error. In order to change that, we should define proper error enums and domains, and register them with GDBus, so that there is an automatic mapping between D-Bus errors and GLib.Errors. The new module doesn't export any domains or enums yet, but provides internal tooling to make these exports more convenient. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3159>
This commit is contained in:
parent
a5d33026f0
commit
ca0ee2ae90
2 changed files with 30 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
|||
<file>misc/animationUtils.js</file>
|
||||
<file>misc/config.js</file>
|
||||
<file>misc/dateUtils.js</file>
|
||||
<file>misc/dbusErrors.js</file>
|
||||
<file>misc/dbusUtils.js</file>
|
||||
<file>misc/dependencies.js</file>
|
||||
<file>misc/errorUtils.js</file>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue