Method

GioDBusMessageto_gerror

since: 2.26

Declaration [src]

gboolean
g_dbus_message_to_gerror (
  GDBusMessage* message
  GError** error
)

Description [src]

Encodes the error in message as a GError.

If message is of type G_DBUS_MESSAGE_TYPE_ERROR, this function calls g_dbus_error_set_dbus_error() using the information in the G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field of message as well as the first string item in message’s body.

If message is not of type G_DBUS_MESSAGE_TYPE_ERROR, this function does nothing and returns false.

Available since: 2.26

Return value

Type: gboolean

True if error was set, false otherwise.