qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 00/35]: add new error format


From: Luiz Capitulino
Subject: Re: [Qemu-devel] [PATCH v3 00/35]: add new error format
Date: Mon, 13 Aug 2012 10:32:03 -0300

On Sat, 11 Aug 2012 09:05:33 +0200
Markus Armbruster <address@hidden> wrote:

> Luiz Capitulino <address@hidden> writes:
> 
> [...]
> > This series implements the 'Plan for error handling in QMP' as described
> > by Anthony in this email:
> >
> >     http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg03764.html
> >
> > Basically, this replaces almost all error classes by GenericError (the
> > exception are a few error classes used by libvirt) and drops the error
> > data memeber. This also adds a free form string to error_set().
> >
> > On the wire, we go from:
> >
> >     { "error": { "class": "DeviceNotRemovable",
> >                  "data": { "device": "virtio0" },
> >                  "desc": "Device 'virtio0' is not removable" } }
> >
> > to:
> >
> >      { "error": { "class": "GenericError",
> >                   "desc": "Device 'virtio0' is not removable" } }
> >
> > Internally, we go from:
> >
> >   void error_set(Error **err, const char *fmt, ...);
> >
> > to:
> >
> >   void error_set(Error **err, ErrorClass err_class, const char *fmt, ...);
> 
> Glad to see this change in good shape in time for the release.  Thanks,
> Luiz!

Thank you for your review!

> 
> Reviewed-by: Markus Armbruster <address@hidden>
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]