Constructor

GioDBusMessagenew_method_error

since: 2.26

Declaration [src]

GDBusMessage*
g_dbus_message_new_method_error (
  GDBusMessage* method_call_message,
  const gchar* error_name,
  const gchar* error_message_format,
  ...
)

Description [src]

Creates a new D-Bus message that is an error reply to method_call_message.

Available since: 2.26

This constructor is not directly available to language bindings.

Parameters

method_call_message

Type: GDBusMessage

A message of type G_DBUS_MESSAGE_TYPE_METHOD_CALL to create a reply message to.

The data is owned by the caller of the function.
error_name

Type: const gchar*

A valid D-Bus error name.

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

Type: const gchar*

The D-Bus error message in a printf() format.

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

Type: 

Arguments for error_message_format.

Return value

Type: GDBusMessage

The D-Bus message.

The caller of the function takes ownership of the data, and is responsible for freeing it.