Revision e16a1812 qerror.h
b/qerror.h | ||
---|---|---|
39 | 39 |
* QError class list |
40 | 40 |
*/ |
41 | 41 |
#define QERR_COMMAND_NOT_FOUND \ |
42 |
"{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"
|
|
42 |
"{ 'class': 'CommandNotFound', 'data': { 'name': %s } }" |
|
43 | 43 |
|
44 | 44 |
#define QERR_DEVICE_ENCRYPTED \ |
45 |
"{ 'class': 'DeviceEncrypted', 'data': { 'device': %s } }" |
|
46 |
|
|
47 |
#define QERR_DEVICE_NOT_FOUND \ |
|
48 |
"{ 'class': 'DeviceNotFound', 'data': { 'device': %s } }" |
|
45 |
"{ 'class': 'DeviceEncrypted', 'data': { 'device': %s } }" |
|
49 | 46 |
|
50 | 47 |
#define QERR_DEVICE_NOT_ACTIVE \ |
51 |
"{ 'class': 'DeviceNotActive', 'data': { 'device': %s } }" |
|
48 |
"{ 'class': 'DeviceNotActive', 'data': { 'device': %s } }" |
|
49 |
|
|
50 |
#define QERR_DEVICE_NOT_FOUND \ |
|
51 |
"{ 'class': 'DeviceNotFound', 'data': { 'device': %s } }" |
|
52 | 52 |
|
53 | 53 |
#define QERR_INVALID_PARAMETER_TYPE \ |
54 |
"{ 'class': 'InvalidParameterType', 'data': { 'name': %s,'expected': %s } }"
|
|
54 |
"{ 'class': 'InvalidParameterType', 'data': { 'name': %s,'expected': %s } }" |
|
55 | 55 |
|
56 | 56 |
#define QERR_INVALID_PASSWORD \ |
57 |
"{ 'class': 'InvalidPassword', 'data': {} }" |
|
57 |
"{ 'class': 'InvalidPassword', 'data': {} }" |
|
58 |
|
|
59 |
#define QERR_JSON_PARSING \ |
|
60 |
"{ 'class': 'JSONParsing', 'data': {} }" |
|
58 | 61 |
|
59 | 62 |
#define QERR_KVM_MISSING_CAP \ |
60 |
"{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }"
|
|
63 |
"{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }" |
|
61 | 64 |
|
62 | 65 |
#define QERR_MISSING_PARAMETER \ |
63 |
"{ 'class': 'MissingParameter', 'data': { 'name': %s } }"
|
|
66 |
"{ 'class': 'MissingParameter', 'data': { 'name': %s } }" |
|
64 | 67 |
|
65 | 68 |
#define QERR_QMP_BAD_INPUT_OBJECT \ |
66 |
"{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }" |
|
67 |
|
|
68 |
#define QERR_JSON_PARSING \ |
|
69 |
"{ 'class': 'JSONParsing', 'data': {} }" |
|
69 |
"{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }" |
|
70 | 70 |
|
71 | 71 |
#define QERR_UNDEFINED_ERROR \ |
72 |
"{ 'class': 'UndefinedError', 'data': {} }"
|
|
72 |
"{ 'class': 'UndefinedError', 'data': {} }" |
|
73 | 73 |
|
74 | 74 |
#endif /* QERROR_H */ |
Also available in: Unified diff