Received: from eggs.gnu.org ([208.118.235.92]:38363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T10dP-0001Bj-Dx for qemu-devel@nongnu.org; Mon, 13 Aug 2012 15:49:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T10dN-0003qW-TV for qemu-devel@nongnu.org; Mon, 13 Aug 2012 15:49:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T10dN-0003qR-LM for qemu-devel@nongnu.org; Mon, 13 Aug 2012 15:49:05 -0400 From: Luiz Capitulino Date: Mon, 13 Aug 2012 16:48:43 -0300 Message-Id: <1344887349-13041-23-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1344887349-13041-1-git-send-email-lcapitulino@redhat.com> References: <1344887349-13041-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 22/48] qapi-schema: add ErrorClass enum List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com Cc: qemu-devel@nongnu.org Signed-off-by: Luiz Capitulino Reviewed-by: Markus Armbruster --- qapi-schema.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index a62bf68..b513935 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3,6 +3,36 @@ # QAPI Schema ## +# @ErrorClass +# +# QEMU error classes +# +# @GenericError: this is used for errors that don't require a specific error +# class. This should be the default case for most errors +# +# @CommandNotFound: the requested command has not been found +# +# @DeviceEncrypted: the requested operation can't be fulfilled because the +# selected device is encrypted +# +# @DeviceNotActive: a device has failed to be become active +# +# @DeviceNotFound: the requested device has not been found +# +# @KVMMissingCap: the requested operation can't be fulfilled because a +# required KVM capability is missing +# +# @MigrationExpected: the requested operation can't be fulfilled because a +# migration process is expected +# +# Since: 1.2 +## +{ 'enum': 'ErrorClass', + 'data': [ 'GenericError', 'CommandNotFound', 'DeviceEncrypted', + 'DeviceNotActive', 'DeviceNotFound', 'KVMMissingCap', + 'MigrationExpected' ] } + +## # @NameInfo: # # Guest name information. -- 1.7.11.2.249.g31c7954.dirty