On Sun, Mar 06, 2011 at 07:22:45PM -0600, Anthony Liguori wrote: > The Error class is similar to QError (now deprecated) except that it supports > propagation. This allows for higher quality error handling. It's losely > modeled after glib style GErrors.
I know this offers more functionality than GError, but if we're going to be using GLib IMHO it would be very desirable to just use GError everywhere. Are the extra arbitary key,value pair fields really a compelling enough addition to make us not use GError ? libvirt started off with a very flexible error object that allowed extra string & int values to be passed with each error, but after 5 years dev there is not a single place in our code where we use this. Simple error code and formatted strings have been sufficient, much like GError would allow. Regards, Daniel -- |: 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 :|