unicorn/qemu/include/qapi/qmp/qerror.h

125 lines
3 KiB
C
Raw Normal View History

2015-08-21 07:04:50 +00:00
/*
* QError Module
*
* Copyright (C) 2009 Red Hat Inc.
*
* Authors:
* Luiz Capitulino <lcapitulino@redhat.com>
*
* This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
* See the COPYING.LIB file in the top-level directory.
*/
#ifndef QERROR_H
#define QERROR_H
/*
* These macros will go away, please don't use in new code, and do not
* add new ones!
2015-08-21 07:04:50 +00:00
*/
#define QERR_BASE_NOT_FOUND \
"Base '%s' not found"
2015-08-21 07:04:50 +00:00
#define QERR_BLOCK_JOB_NOT_ACTIVE \
"No active block job on device '%s'"
2015-08-21 07:04:50 +00:00
#define QERR_BLOCK_JOB_NOT_READY \
"The active block job for device '%s' cannot be completed"
2015-08-21 07:04:50 +00:00
#define QERR_BLOCK_FORMAT_FEATURE_NOT_SUPPORTED \
"Block format '%s' used by device '%s' does not support feature '%s'"
2015-08-21 07:04:50 +00:00
#define QERR_BUS_NO_HOTPLUG \
"Bus '%s' does not support hotplugging"
2015-08-21 07:04:50 +00:00
#define QERR_BUS_NOT_FOUND \
"Bus '%s' not found"
2015-08-21 07:04:50 +00:00
#define QERR_COMMAND_NOT_FOUND \
"The command %s has not been found"
2015-08-21 07:04:50 +00:00
#define QERR_DEVICE_ENCRYPTED \
"'%s' (%s) is encrypted"
2015-08-21 07:04:50 +00:00
#define QERR_DEVICE_HAS_NO_MEDIUM \
"Device '%s' has no medium"
2015-08-21 07:04:50 +00:00
#define QERR_DEVICE_INIT_FAILED \
"Device '%s' could not be initialized"
2015-08-21 07:04:50 +00:00
#define QERR_DEVICE_IN_USE \
"Device '%s' is in use"
2015-08-21 07:04:50 +00:00
#define QERR_DEVICE_IS_READ_ONLY \
"Device '%s' is read only"
2015-08-21 07:04:50 +00:00
#define QERR_DEVICE_NO_HOTPLUG \
"Device '%s' does not support hotplugging"
2015-08-21 07:04:50 +00:00
#define QERR_DEVICE_NOT_ACTIVE \
"No %s device has been activated"
2015-08-21 07:04:50 +00:00
#define QERR_DEVICE_NOT_ENCRYPTED \
"Device '%s' is not encrypted"
2015-08-21 07:04:50 +00:00
#define QERR_FD_NOT_FOUND \
"File descriptor named '%s' not found"
2015-08-21 07:04:50 +00:00
#define QERR_FD_NOT_SUPPLIED \
"No file descriptor supplied via SCM_RIGHTS"
2015-08-21 07:04:50 +00:00
#define QERR_FEATURE_DISABLED \
"The feature '%s' is not enabled"
2015-08-21 07:04:50 +00:00
#define QERR_INVALID_BLOCK_FORMAT \
"Invalid block format '%s'"
2015-08-21 07:04:50 +00:00
#define QERR_INVALID_PARAMETER \
"Invalid parameter '%s'"
2015-08-21 07:04:50 +00:00
#define QERR_INVALID_PARAMETER_TYPE \
"Invalid parameter type for '%s', expected: %s"
2015-08-21 07:04:50 +00:00
#define QERR_INVALID_PARAMETER_VALUE \
"Parameter '%s' expects %s"
2015-08-21 07:04:50 +00:00
#define QERR_INVALID_PASSWORD \
"Password incorrect"
2015-08-21 07:04:50 +00:00
#define QERR_IO_ERROR \
"An IO error has occurred"
2015-08-21 07:04:50 +00:00
#define QERR_JSON_PARSING \
"Invalid JSON syntax"
2015-08-21 07:04:50 +00:00
#define QERR_KVM_MISSING_CAP \
"Using KVM without %s, %s unavailable"
2015-08-21 07:04:50 +00:00
#define QERR_MIGRATION_ACTIVE \
"There's a migration process in progress"
2015-08-21 07:04:50 +00:00
#define QERR_MISSING_PARAMETER \
"Parameter '%s' is missing"
2015-08-21 07:04:50 +00:00
#define QERR_PERMISSION_DENIED \
"Insufficient permission to perform this operation"
2015-08-21 07:04:50 +00:00
#define QERR_PROPERTY_VALUE_BAD \
"Property '%s.%s' doesn't take value '%s'"
2015-08-21 07:04:50 +00:00
#define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
"Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")"
2015-08-21 07:04:50 +00:00
#define QERR_QGA_COMMAND_FAILED \
"Guest agent command failed, error was '%s'"
2015-08-21 07:04:50 +00:00
#define QERR_SET_PASSWD_FAILED \
"Could not set password"
2015-08-21 07:04:50 +00:00
#define QERR_UNDEFINED_ERROR \
"An undefined error has occurred"
2015-08-21 07:04:50 +00:00
#define QERR_UNSUPPORTED \
"this feature or command is not currently supported"
2015-08-21 07:04:50 +00:00
#endif /* QERROR_H */