]> git.proxmox.com Git - qemu.git/commitdiff
qapi-schema: add ErrorClass enum
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 27 Jul 2012 12:34:50 +0000 (09:34 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 13 Aug 2012 16:21:11 +0000 (13:21 -0300)
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
qapi-schema.json

index a62bf6867b32013b919a4307e968fc5264768a50..b513935a3900a5e971cc708f32c4b8815fc067a3 100644 (file)
@@ -2,6 +2,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:
 #