Method

GioDBusMessagenew_method_error

Declaration

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

Description

Creates a new GDBusMessage that is an error reply to method_call_message.

Available since:2.26
This method is not directly available to language bindings.

Parameters

error_name 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 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.
...
 

Arguments for error_message_format.

Return value

Returns: GDBusMessage
 

A GDBusMessage. Free with g_object_unref().

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