| 1 | # -*- Mode: Python -*- |
| 2 | # vim: filetype=python |
| 3 | |
| 4 | ## |
| 5 | # ********** |
| 6 | # QMP errors |
| 7 | # ********** |
| 8 | ## |
| 9 | |
| 10 | ## |
| 11 | # @QapiErrorClass: |
| 12 | # |
| 13 | # QEMU error classes |
| 14 | # |
| 15 | # @GenericError: this is used for errors that don't require a specific |
| 16 | # error class. This should be the default case for most errors |
| 17 | # |
| 18 | # @CommandNotFound: the requested command has not been found |
| 19 | # |
| 20 | # @DeviceNotActive: a device has failed to be become active |
| 21 | # |
| 22 | # @DeviceNotFound: the requested device has not been found |
| 23 | # |
| 24 | # @KVMMissingCap: the requested operation can't be fulfilled because a |
| 25 | # required KVM capability is missing |
| 26 | # |
| 27 | # Since: 1.2 |
| 28 | ## |
| 29 | { 'enum': 'QapiErrorClass', |
| 30 | # Keep this in sync with ErrorClass in error.h |
| 31 | 'data': [ 'GenericError', 'CommandNotFound', |
| 32 | 'DeviceNotActive', 'DeviceNotFound', 'KVMMissingCap' ] } |