xref: /openbmc/qemu/include/qapi/qmp/qerror.h (revision 0a9516c2)
1 /*
2  * QError Module
3  *
4  * Copyright (C) 2009 Red Hat Inc.
5  *
6  * Authors:
7  *  Luiz Capitulino <lcapitulino@redhat.com>
8  *
9  * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10  * See the COPYING.LIB file in the top-level directory.
11  */
12 #ifndef QERROR_H
13 #define QERROR_H
14 
15 /*
16  * These macros will go away, please don't use in new code, and do not
17  * add new ones!
18  */
19 #define QERR_BASE_NOT_FOUND \
20     "Base '%s' not found"
21 
22 #define QERR_BLOCK_JOB_NOT_READY \
23     "The active block job for device '%s' cannot be completed"
24 
25 #define QERR_BUS_NO_HOTPLUG \
26     "Bus '%s' does not support hotplugging"
27 
28 #define QERR_DEVICE_HAS_NO_MEDIUM \
29     "Device '%s' has no medium"
30 
31 #define QERR_DEVICE_INIT_FAILED \
32     "Device '%s' could not be initialized"
33 
34 #define QERR_DEVICE_IN_USE \
35     "Device '%s' is in use"
36 
37 #define QERR_DEVICE_NO_HOTPLUG \
38     "Device '%s' does not support hotplugging"
39 
40 #define QERR_FD_NOT_FOUND \
41     "File descriptor named '%s' not found"
42 
43 #define QERR_FD_NOT_SUPPLIED \
44     "No file descriptor supplied via SCM_RIGHTS"
45 
46 #define QERR_FEATURE_DISABLED \
47     "The feature '%s' is not enabled"
48 
49 #define QERR_INVALID_BLOCK_FORMAT \
50     "Invalid block format '%s'"
51 
52 #define QERR_INVALID_PARAMETER \
53     "Invalid parameter '%s'"
54 
55 #define QERR_INVALID_PARAMETER_TYPE \
56     "Invalid parameter type for '%s', expected: %s"
57 
58 #define QERR_INVALID_PARAMETER_VALUE \
59     "Parameter '%s' expects %s"
60 
61 #define QERR_INVALID_PASSWORD \
62     "Password incorrect"
63 
64 #define QERR_IO_ERROR \
65     "An IO error has occurred"
66 
67 #define QERR_JSON_PARSING \
68     "Invalid JSON syntax"
69 
70 #define QERR_MIGRATION_ACTIVE \
71     "There's a migration process in progress"
72 
73 #define QERR_MISSING_PARAMETER \
74     "Parameter '%s' is missing"
75 
76 #define QERR_PERMISSION_DENIED \
77     "Insufficient permission to perform this operation"
78 
79 #define QERR_PROPERTY_VALUE_BAD \
80     "Property '%s.%s' doesn't take value '%s'"
81 
82 #define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
83     "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")"
84 
85 #define QERR_QGA_COMMAND_FAILED \
86     "Guest agent command failed, error was '%s'"
87 
88 #define QERR_QMP_BAD_INPUT_OBJECT \
89     "Expected '%s' in QMP input"
90 
91 #define QERR_QMP_BAD_INPUT_OBJECT_MEMBER \
92     "QMP input object member '%s' expects '%s'"
93 
94 #define QERR_QMP_EXTRA_MEMBER \
95     "QMP input object member '%s' is unexpected"
96 
97 #define QERR_SET_PASSWD_FAILED \
98     "Could not set password"
99 
100 #define QERR_UNDEFINED_ERROR \
101     "An undefined error has occurred"
102 
103 #define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \
104     "'%s' uses a %s feature which is not supported by this qemu version: %s"
105 
106 #define QERR_UNSUPPORTED \
107     "this feature or command is not currently supported"
108 
109 #define QERR_REPLAY_NOT_SUPPORTED \
110     "Record/replay feature is not supported for '%s'"
111 
112 #endif /* QERROR_H */
113