From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57509 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwYGQ-00018G-LK for qemu-devel@nongnu.org; Mon, 07 Mar 2011 06:06:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwYGP-00067i-FY for qemu-devel@nongnu.org; Mon, 07 Mar 2011 06:06:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:3305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwYGP-00067R-5q for qemu-devel@nongnu.org; Mon, 07 Mar 2011 06:06:09 -0500 Date: Mon, 7 Mar 2011 11:06:00 +0000 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] [PATCH 03/22] qapi: add Error object Message-ID: <20110307110600.GH21899@redhat.com> References: <1299460984-15849-1-git-send-email-aliguori@us.ibm.com> <1299460984-15849-4-git-send-email-aliguori@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1299460984-15849-4-git-send-email-aliguori@us.ibm.com> Reply-To: "Daniel P. Berrange" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Markus Armbruster , Luiz Capitulino , qemu-devel@nongnu.org, Adam Litke 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 :|