Gio.DBusError.register_error
Description: Reference for Gio.DBusError.register_error

### Function

# Gio DBusErrorregister_error

since: 2.26

#### Declaration [src]

    gboolean
    g_dbus_error_register_error (
      GQuark error_domain,
      gint error_code,
      const gchar* dbus_error_name
    )

#### Description [src]

Creates an association mapping between `dbus_error_name` and `GError`s specified by `error_domain` and `error_code`.

This is typically done in the function that returns the `GQuark` for an error domain.

Available since: 2.26

#### Parameters

`error_domain`

  Type: `GQuark`

  A `GQuark` for an error domain.

`error_code`

  Type: `gint`

  An error code.

`dbus_error_name`

  Type: `const gchar*`

  A D-Bus error name.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `gboolean`

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