2019-08-12 13:23:33 +08:00
|
|
|
# -*- Mode: Python -*-
|
2020-07-30 02:50:24 +08:00
|
|
|
# vim: filetype=python
|
2019-08-12 13:23:33 +08:00
|
|
|
|
|
|
|
##
|
|
|
|
# = QMP errors
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
# @QapiErrorClass:
|
|
|
|
#
|
|
|
|
# QEMU error classes
|
|
|
|
#
|
2023-04-28 18:54:29 +08:00
|
|
|
# @GenericError: this is used for errors that don't require a specific
|
|
|
|
# error class. This should be the default case for most errors
|
2019-08-12 13:23:33 +08:00
|
|
|
#
|
|
|
|
# @CommandNotFound: the requested command has not been found
|
|
|
|
#
|
|
|
|
# @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
|
2023-04-28 18:54:29 +08:00
|
|
|
# required KVM capability is missing
|
2019-08-12 13:23:33 +08:00
|
|
|
#
|
|
|
|
# Since: 1.2
|
|
|
|
##
|
|
|
|
{ 'enum': 'QapiErrorClass',
|
|
|
|
# Keep this in sync with ErrorClass in error.h
|
|
|
|
'data': [ 'GenericError', 'CommandNotFound',
|
|
|
|
'DeviceNotActive', 'DeviceNotFound', 'KVMMissingCap' ] }
|