From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suehp-00083b-Mj for qemu-devel@nongnu.org; Fri, 27 Jul 2012 03:11:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Suehl-00035u-PN for qemu-devel@nongnu.org; Fri, 27 Jul 2012 03:11:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suehl-00035W-Ht for qemu-devel@nongnu.org; Fri, 27 Jul 2012 03:11:21 -0400 Message-ID: <50123F14.80609@redhat.com> Date: Fri, 27 Jul 2012 09:11:16 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <87ipdacrhj.fsf@codemonkey.ws> In-Reply-To: <87ipdacrhj.fsf@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Plan for error handling in QMP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: Kevin Wolf , Markus Armbruster , qemu-devel@nongnu.org, Luiz Capitulino Il 26/07/2012 20:22, anthony@codemonkey.ws ha scritto: > 7. We need to make sure that anything we expose in 1.2 stays that way. > If we're dropping 'InvalidParameterType' as a class code, it should be > dropped in 1.2. This could be achieved by making all existing codes > except for those in (5) report 'UnknownError' or something.[*] > > [*] I took a little bit of license with these. Hopefully it's not > controversial. Sounds great, just a note: I think that at the source level in 1.2 we should not lose information on what was the "old" error type. It will guide the future conversion, also together with tables like http://pastebin.com/kZtfFnFK. So let's keep the names as "#define QERR_FOO UnknownError" for now. Paolo