]> git.proxmox.com Git - mirror_qemu.git/blame - include/qapi/qmp/qerror.h
ui: Improve some set_passwd, expire_password error messages
[mirror_qemu.git] / include / qapi / qmp / qerror.h
CommitLineData
9f9daf9a 1/*
41836a9f 2 * QError Module
9f9daf9a
LC
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
9f9daf9a 15/*
4629ed1e
MA
16 * These macros will go away, please don't use in new code, and do not
17 * add new ones!
9f9daf9a 18 */
019b8cbf 19
8eae73b5 20#define QERR_BUS_NO_HOTPLUG \
c6bd8c70 21 "Bus '%s' does not support hotplugging"
8eae73b5 22
939a1cc3 23#define QERR_DEVICE_HAS_NO_MEDIUM \
c6bd8c70 24 "Device '%s' has no medium"
939a1cc3 25
5124eb59 26#define QERR_DEVICE_IN_USE \
c6bd8c70 27 "Device '%s' is in use"
5124eb59 28
c1303596 29#define QERR_DEVICE_NO_HOTPLUG \
c6bd8c70 30 "Device '%s' does not support hotplugging"
c1303596 31
c1303596 32#define QERR_FEATURE_DISABLED \
c6bd8c70 33 "The feature '%s' is not enabled"
c1303596 34
7a046f5f 35#define QERR_INVALID_PARAMETER \
c6bd8c70 36 "Invalid parameter '%s'"
7a046f5f 37
4b9d4683 38#define QERR_INVALID_PARAMETER_TYPE \
c6bd8c70 39 "Invalid parameter type for '%s', expected: %s"
4b9d4683 40
985a3e52 41#define QERR_INVALID_PARAMETER_VALUE \
c6bd8c70 42 "Parameter '%s' expects %s"
985a3e52 43
58898873 44#define QERR_IO_ERROR \
c6bd8c70 45 "An IO error has occurred"
58898873 46
a4acc064 47#define QERR_MIGRATION_ACTIVE \
c6bd8c70 48 "There's a migration process in progress"
a4acc064 49
4b9d4683 50#define QERR_MISSING_PARAMETER \
c6bd8c70 51 "Parameter '%s' is missing"
4b9d4683 52
44677ded 53#define QERR_PERMISSION_DENIED \
c6bd8c70 54 "Insufficient permission to perform this operation"
44677ded 55
06b4a703 56#define QERR_PROPERTY_VALUE_BAD \
c6bd8c70 57 "Property '%s.%s' doesn't take value '%s'"
06b4a703 58
6aced82c 59#define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
c6bd8c70 60 "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")"
6aced82c 61
c1303596 62#define QERR_QGA_COMMAND_FAILED \
c6bd8c70 63 "Guest agent command failed, error was '%s'"
c1303596 64
4c9ab1e6
AG
65#define QERR_REPLAY_NOT_SUPPORTED \
66 "Record/replay feature is not supported for '%s'"
67
fc5469d8 68#define QERR_UNDEFINED_ERROR \
c6bd8c70 69 "An undefined error has occurred"
fc5469d8 70
c1303596 71#define QERR_UNSUPPORTED \
c6bd8c70 72 "this feature or command is not currently supported"
c1303596 73
9f9daf9a 74#endif /* QERROR_H */