Creates a message for replying to a DBus method call.
Replying to a DBus method call in the case of failure requires a message of type ErrorMessage as well as the information to which method call it is replying to and which error occured.
|other ||the method call message it is replying to |
|error ||the error which occured during during the method call|
- a message suitable for appending arguments and for sending
- See also:
Definition at line 86 of file qdbusmessage.cpp.
message.d->type = DBUS_MESSAGE_TYPE_ERROR;
message.d->reply = dbus_message_ref(other.d->msg);
message.d->error = error;