How to raise a dbus exceptions in GDBus



Hi, 

I am rewriting a dbus based extension in GDBus. Earlier I was using gjs's built-in dbus support (libdbus ?)
I need to raise a dbus exception in my extension. With the built-in dbus support I did this:

let err = new DBus.DBusError('net.connman.Agent.Error.Retry', 'retry this service');
throw err;

How do I achieve the same in GDBus?

I am using Ubuntu Percise Pangolin (12.04) and gnome-shell 3.4.1.

Thanks a lot,
Alok.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]