On 11/19/2009 09:42 AM, Markus Armbruster wrote:
>
>    It's probably convenient to have qjson emitting QError, I'm unsure
>  if we should do that for all kinds of QObjects though.

For a general purpose system, I'd recommend to cover all types.  But as
long as this has just one user (QEMU), it can use the special purpose
excuse not to.

You're not sending QErrors on the wire yet, are you? Once you do, I suspect it will be easiest to handle to_json for QError too (or make it a virtual method as it was in my patches...).

Paolo



Reply via email to