DBusError.registerError

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 #GQuark for an error domain.

struct DBusError
static
bool
registerError

Parameters

errorDomain glib.types.Quark

A #GQuark for an error domain.

errorCode int

An error code.

dbusErrorName string

A D-Bus error name.

Return Value

Type: bool

true if the association was created, false if it already exists.