Gio.DBusError.register_error
function register_error(error_domain: GLib.Quark, error_code: Number(gint), dbus_error_name: String): Boolean {
// Gjs wrapper for g_dbus_error_register_error()
}
Creates an association to map between dbus_error_name and #GErrors specified by error_domain and error_code.
This is typically done in the routine that returns the GLib.Quark for an error domain.
Since 2.26
- error_domain
A GLib.Quark for a error domain.
- error_code
An error code.
- dbus_error_name
A D-Bus error name.
- Returns
true if the association was created, false if it already exists.