1
2
3
4
5
6
7
8
9
10
11
12#ifndef QERROR_H
13#define QERROR_H
14
15
16
17
18
19
20#define QERR_BUS_NO_HOTPLUG \
21 "Bus '%s' does not support hotplugging"
22
23#define QERR_DEVICE_HAS_NO_MEDIUM \
24 "Device '%s' has no medium"
25
26#define QERR_DEVICE_IN_USE \
27 "Device '%s' is in use"
28
29#define QERR_DEVICE_NO_HOTPLUG \
30 "Device '%s' does not support hotplugging"
31
32#define QERR_FEATURE_DISABLED \
33 "The feature '%s' is not enabled"
34
35#define QERR_INVALID_PARAMETER \
36 "Invalid parameter '%s'"
37
38#define QERR_INVALID_PARAMETER_TYPE \
39 "Invalid parameter type for '%s', expected: %s"
40
41#define QERR_INVALID_PARAMETER_VALUE \
42 "Parameter '%s' expects %s"
43
44#define QERR_IO_ERROR \
45 "An IO error has occurred"
46
47#define QERR_MIGRATION_ACTIVE \
48 "There's a migration process in progress"
49
50#define QERR_MISSING_PARAMETER \
51 "Parameter '%s' is missing"
52
53#define QERR_PERMISSION_DENIED \
54 "Insufficient permission to perform this operation"
55
56#define QERR_PROPERTY_VALUE_BAD \
57 "Property '%s.%s' doesn't take value '%s'"
58
59#define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
60 "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")"
61
62#define QERR_QGA_COMMAND_FAILED \
63 "Guest agent command failed, error was '%s'"
64
65#define QERR_REPLAY_NOT_SUPPORTED \
66 "Record/replay feature is not supported for '%s'"
67
68#define QERR_UNSUPPORTED \
69 "this feature or command is not currently supported"
70
71#endif
72