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 GQuark

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.

Meta

Since

2.26