qerror: Finally unused, clean up
[qemu/ar7.git] / include / qapi / qmp / qerror.h
blobf8182c75f00aa1423b1503c89be47c3d932e2bd0
1 /*
2 * QError Module
4 * Copyright (C) 2009 Red Hat Inc.
6 * Authors:
7 * Luiz Capitulino <lcapitulino@redhat.com>
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.
12 #ifndef QERROR_H
13 #define QERROR_H
15 #include "qapi/qmp/qstring.h"
16 #include "qemu/error-report.h"
19 * These macros will go away, please don't use in new code, and do not
20 * add new ones!
22 #define QERR_BASE_NOT_FOUND \
23 "Base '%s' not found"
25 #define QERR_BLOCK_JOB_NOT_READY \
26 "The active block job for device '%s' cannot be completed"
28 #define QERR_BUS_NO_HOTPLUG \
29 "Bus '%s' does not support hotplugging"
31 #define QERR_DEVICE_HAS_NO_MEDIUM \
32 "Device '%s' has no medium"
34 #define QERR_DEVICE_INIT_FAILED \
35 "Device '%s' could not be initialized"
37 #define QERR_DEVICE_IN_USE \
38 "Device '%s' is in use"
40 #define QERR_DEVICE_NO_HOTPLUG \
41 "Device '%s' does not support hotplugging"
43 #define QERR_FD_NOT_FOUND \
44 "File descriptor named '%s' not found"
46 #define QERR_FD_NOT_SUPPLIED \
47 "No file descriptor supplied via SCM_RIGHTS"
49 #define QERR_FEATURE_DISABLED \
50 "The feature '%s' is not enabled"
52 #define QERR_INVALID_BLOCK_FORMAT \
53 "Invalid block format '%s'"
55 #define QERR_INVALID_PARAMETER \
56 "Invalid parameter '%s'"
58 #define QERR_INVALID_PARAMETER_TYPE \
59 "Invalid parameter type for '%s', expected: %s"
61 #define QERR_INVALID_PARAMETER_VALUE \
62 "Parameter '%s' expects %s"
64 #define QERR_INVALID_PASSWORD \
65 "Password incorrect"
67 #define QERR_IO_ERROR \
68 "An IO error has occurred"
70 #define QERR_JSON_PARSING \
71 "Invalid JSON syntax"
73 #define QERR_MIGRATION_ACTIVE \
74 "There's a migration process in progress"
76 #define QERR_MISSING_PARAMETER \
77 "Parameter '%s' is missing"
79 #define QERR_PERMISSION_DENIED \
80 "Insufficient permission to perform this operation"
82 #define QERR_PROPERTY_VALUE_BAD \
83 "Property '%s.%s' doesn't take value '%s'"
85 #define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
86 "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")"
88 #define QERR_QGA_COMMAND_FAILED \
89 "Guest agent command failed, error was '%s'"
91 #define QERR_QMP_BAD_INPUT_OBJECT \
92 "Expected '%s' in QMP input"
94 #define QERR_QMP_BAD_INPUT_OBJECT_MEMBER \
95 "QMP input object member '%s' expects '%s'"
97 #define QERR_QMP_EXTRA_MEMBER \
98 "QMP input object member '%s' is unexpected"
100 #define QERR_SET_PASSWD_FAILED \
101 "Could not set password"
103 #define QERR_UNDEFINED_ERROR \
104 "An undefined error has occurred"
106 #define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \
107 "'%s' uses a %s feature which is not supported by this qemu version: %s"
109 #define QERR_UNSUPPORTED \
110 "this feature or command is not currently supported"
112 #endif /* QERROR_H */