Merge remote-tracking branch 'remotes/palmer/tags/riscv-for-master-4.1-sf1-v3' into...
[qemu/ar7.git] / include / qapi / qmp / qerror.h
blob7c76e24aa7a75189d98e3dfb236e966129b4bd56
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
16 * These macros will go away, please don't use in new code, and do not
17 * add new ones!
19 #define QERR_BASE_NOT_FOUND \
20 "Base '%s' not found"
22 #define QERR_BUS_NO_HOTPLUG \
23 "Bus '%s' does not support hotplugging"
25 #define QERR_DEVICE_HAS_NO_MEDIUM \
26 "Device '%s' has no medium"
28 #define QERR_DEVICE_INIT_FAILED \
29 "Device '%s' could not be initialized"
31 #define QERR_DEVICE_IN_USE \
32 "Device '%s' is in use"
34 #define QERR_DEVICE_NO_HOTPLUG \
35 "Device '%s' does not support hotplugging"
37 #define QERR_FD_NOT_FOUND \
38 "File descriptor named '%s' not found"
40 #define QERR_FD_NOT_SUPPLIED \
41 "No file descriptor supplied via SCM_RIGHTS"
43 #define QERR_FEATURE_DISABLED \
44 "The feature '%s' is not enabled"
46 #define QERR_INVALID_BLOCK_FORMAT \
47 "Invalid block format '%s'"
49 #define QERR_INVALID_PARAMETER \
50 "Invalid parameter '%s'"
52 #define QERR_INVALID_PARAMETER_TYPE \
53 "Invalid parameter type for '%s', expected: %s"
55 #define QERR_INVALID_PARAMETER_VALUE \
56 "Parameter '%s' expects %s"
58 #define QERR_INVALID_PASSWORD \
59 "Password incorrect"
61 #define QERR_IO_ERROR \
62 "An IO error has occurred"
64 #define QERR_MIGRATION_ACTIVE \
65 "There's a migration process in progress"
67 #define QERR_MISSING_PARAMETER \
68 "Parameter '%s' is missing"
70 #define QERR_PERMISSION_DENIED \
71 "Insufficient permission to perform this operation"
73 #define QERR_PROPERTY_VALUE_BAD \
74 "Property '%s.%s' doesn't take value '%s'"
76 #define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
77 "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")"
79 #define QERR_QGA_COMMAND_FAILED \
80 "Guest agent command failed, error was '%s'"
82 #define QERR_REPLAY_NOT_SUPPORTED \
83 "Record/replay feature is not supported for '%s'"
85 #define QERR_SET_PASSWD_FAILED \
86 "Could not set password"
88 #define QERR_UNDEFINED_ERROR \
89 "An undefined error has occurred"
91 #define QERR_UNSUPPORTED \
92 "this feature or command is not currently supported"
94 #endif /* QERROR_H */