register_error


Description:

public static bool register_error (Quark error_domain, int error_code, string dbus_error_name)

Creates an association mapping between dbus_error_name and [type@GLib.

Error]s specified by error_domain and error_code.

This is typically done in the function that returns the [type@GLib.Quark] for an error domain.

Parameters:

error_domain

a [type@GLib.Quark] for an 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