[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Plan for error handling in QMP
From: |
Richard W.M. Jones |
Subject: |
Re: [Qemu-devel] Plan for error handling in QMP |
Date: |
Thu, 26 Jul 2012 22:16:05 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Jul 26, 2012 at 01:22:15PM -0500, address@hidden wrote:
> We had a violent^Wheated discussion on IRC about how to move forward
> with Luiz's proposed error series. I think we reached consensus. This
> note attempts to outline that.
>
> Principles
> ----------
> 1. Errors should be free formed strings with a class code
>
> 2. There should be a small number of class codes (10-15) added
> strictly when there are specific users of a code.
FWIW this is roughly the same scheme that libguestfs uses to report
errors: string + error code. It's been quite successful, and IMHO is
much better than the large and ill-defined 'virterror' struct that
libvirt returns.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
Re: [Qemu-devel] Plan for error handling in QMP, Eric Blake, 2012/07/26
Re: [Qemu-devel] Plan for error handling in QMP,
Richard W.M. Jones <=
Re: [Qemu-devel] Plan for error handling in QMP, Markus Armbruster, 2012/07/27
Re: [Qemu-devel] Plan for error handling in QMP, Paolo Bonzini, 2012/07/27