[PATCH] net-dbus: Raise exception at 'introspector' if network is lost

Daniel P. Berrange dan at berrange.com
Mon Nov 28 14:30:16 PST 2011


On Mon, Nov 28, 2011 at 01:51:27PM -0800, Pavel Strashkin wrote:
> D-Bus is the protocol with a strict specification. Inside
> dbus/dbus-protocol.h i've found the following errors which binding
> probably should check for and do nothing:
> 
> 395 /** Interface you invoked a method on isn't known by the object. */
> 396 #define DBUS_ERROR_UNKNOWN_INTERFACE
> "org.freedesktop.DBus.Error.UnknownInterface"
> 
> 391 /** Method name you invoked isn't known by the object you invoked it on. */
> 392 #define DBUS_ERROR_UNKNOWN_METHOD
> "org.freedesktop.DBus.Error.UnknownMethod"
> 
> What do you think?

Unfortunately those error names are not part of the DBus specification[1].
They happen to be used by some, but not all, implementations / bindings [2].
So we can't really rely on those in this case.

Regards,
Daniel

[1] http://dbus.freedesktop.org/doc/dbus-specification.html
[2] http://www.freedesktop.org/wiki/Software/DBusBindingErrors
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


More information about the dbus mailing list