Gio.DBusMessage.prototype.new_method_error_literal
function new_method_error_literal(error_name: String, error_message: String): Gio.DBusMessage {
// Gjs wrapper for g_dbus_message_new_method_error_literal()
}
Creates a new Gio.DBusMessage that is an error reply to method_call_message.
Since 2.26
- error_name
A valid D-Bus error name.
- error_message
The D-Bus error message.
- Returns
A Gio.DBusMessage. Free with GObject.Object.prototype.unref.