On Thu, Jul 26, 2012 at 01:22:15PM -0500, anth...@codemonkey.ws 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

Reply via email to