error handling for method call without return value

Fritz Code codefritz at googlemail.com
Wed Jun 18 13:51:18 PDT 2008


Hi,

Error-handling:

On the on hand if you call a method of an object which has a return value
you simple use message_send_with_reply_and_block, you pass
a DBusError variable. Then you check the arguments if the returned message,
if it fails an error has ocured and you can output the error since you have
passed it before.

But how can such an error-handling be achieved when you invoke a message
without a return value by using message_send ?
There is no error variable which gets passed!?


And:
Using message_send_with_reply_and_block, makes only sense if the called
method has a return value, right?
A method with void as return should be called with message_send?

thanks so far...



-- 
Regards,
--Codefritz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20080618/b027e357/attachment.html 


More information about the dbus mailing list