From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAp3a-0006Mp-UH for qemu-devel@nongnu.org; Wed, 18 Nov 2009 13:15:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAp3W-0006KA-TY for qemu-devel@nongnu.org; Wed, 18 Nov 2009 13:15:06 -0500 Received: from [199.232.76.173] (port=55402 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAp3W-0006K7-Rq for qemu-devel@nongnu.org; Wed, 18 Nov 2009 13:15:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:29508) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAp3W-0006Fi-8T for qemu-devel@nongnu.org; Wed, 18 Nov 2009 13:15:02 -0500 Date: Wed, 18 Nov 2009 18:14:56 +0000 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] [PATCH 07/10] Introduce QError Message-ID: <20091118181456.GA29178@redhat.com> References: <1258487037-24950-1-git-send-email-lcapitulino@redhat.com> <1258487037-24950-8-git-send-email-lcapitulino@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1258487037-24950-8-git-send-email-lcapitulino@redhat.com> Reply-To: "Daniel P. Berrange" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: aliguori@us.ibm.com, kraxel@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com On Tue, Nov 17, 2009 at 05:43:54PM -0200, Luiz Capitulino wrote: > QError is a high-level data type which represents an exception > in QEMU, it stores the following error information: > > - class Error class name (eg. "ServiceUnavailable") > - description A detailed error description, which can contain > references to run-time error data > - filename The file name of where the error occurred > - line number The exact line number of the error If we're going to collect these two, then also add in the function name, since that's typically more useful than filename/line number alone. Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|