2009-11-18 23:05:30 -02:00
|
|
|
/*
|
2010-05-12 16:34:42 -03:00
|
|
|
* QError Module
|
2009-11-18 23:05:30 -02:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
|
|
|
/*
|
2015-03-17 14:29:59 +01:00
|
|
|
* These macros will go away, please don't use in new code, and do not
|
|
|
|
* add new ones!
|
2009-11-18 23:05:30 -02:00
|
|
|
*/
|
2012-01-18 14:40:52 +00:00
|
|
|
#define QERR_BASE_NOT_FOUND \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Base '%s' not found"
|
2012-01-18 14:40:52 +00:00
|
|
|
|
2010-02-19 19:53:36 +01:00
|
|
|
#define QERR_BUS_NO_HOTPLUG \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Bus '%s' does not support hotplugging"
|
2010-02-19 19:53:36 +01:00
|
|
|
|
2012-01-04 22:23:34 +00:00
|
|
|
#define QERR_DEVICE_HAS_NO_MEDIUM \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Device '%s' has no medium"
|
2012-01-04 22:23:34 +00:00
|
|
|
|
2010-02-19 19:53:54 +01:00
|
|
|
#define QERR_DEVICE_INIT_FAILED \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Device '%s' could not be initialized"
|
2010-02-19 19:53:54 +01:00
|
|
|
|
2010-03-25 17:22:39 +01:00
|
|
|
#define QERR_DEVICE_IN_USE \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Device '%s' is in use"
|
2010-03-25 17:22:39 +01:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_DEVICE_NO_HOTPLUG \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Device '%s' does not support hotplugging"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2009-12-07 21:37:10 +01:00
|
|
|
#define QERR_FD_NOT_FOUND \
|
2015-03-17 11:54:50 +01:00
|
|
|
"File descriptor named '%s' not found"
|
2009-12-07 21:37:10 +01:00
|
|
|
|
2009-12-07 21:37:12 +01:00
|
|
|
#define QERR_FD_NOT_SUPPLIED \
|
2015-03-17 11:54:50 +01:00
|
|
|
"No file descriptor supplied via SCM_RIGHTS"
|
2009-12-07 21:37:12 +01:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_FEATURE_DISABLED \
|
2015-03-17 11:54:50 +01:00
|
|
|
"The feature '%s' is not enabled"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2009-12-07 21:37:06 +01:00
|
|
|
#define QERR_INVALID_BLOCK_FORMAT \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Invalid block format '%s'"
|
2009-12-07 21:37:06 +01:00
|
|
|
|
2009-12-07 21:37:13 +01:00
|
|
|
#define QERR_INVALID_PARAMETER \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Invalid parameter '%s'"
|
2009-12-07 21:37:13 +01:00
|
|
|
|
2009-11-26 22:58:57 -02:00
|
|
|
#define QERR_INVALID_PARAMETER_TYPE \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Invalid parameter type for '%s', expected: %s"
|
2009-11-26 22:58:57 -02:00
|
|
|
|
2010-03-25 17:22:33 +01:00
|
|
|
#define QERR_INVALID_PARAMETER_VALUE \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Parameter '%s' expects %s"
|
2010-03-25 17:22:33 +01:00
|
|
|
|
2009-12-04 15:24:08 -02:00
|
|
|
#define QERR_INVALID_PASSWORD \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Password incorrect"
|
2009-12-07 21:37:02 +01:00
|
|
|
|
2011-11-22 16:29:52 -02:00
|
|
|
#define QERR_IO_ERROR \
|
2015-03-17 11:54:50 +01:00
|
|
|
"An IO error has occurred"
|
2011-11-22 16:29:52 -02:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_JSON_PARSING \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Invalid JSON syntax"
|
2011-07-19 14:50:33 -05:00
|
|
|
|
2011-12-02 14:58:12 -02:00
|
|
|
#define QERR_MIGRATION_ACTIVE \
|
2015-03-17 11:54:50 +01:00
|
|
|
"There's a migration process in progress"
|
2011-12-02 14:58:12 -02:00
|
|
|
|
2009-11-26 22:58:57 -02:00
|
|
|
#define QERR_MISSING_PARAMETER \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Parameter '%s' is missing"
|
2009-11-26 22:58:57 -02:00
|
|
|
|
2011-12-12 14:29:26 -06:00
|
|
|
#define QERR_PERMISSION_DENIED \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Insufficient permission to perform this operation"
|
2011-12-12 14:29:26 -06:00
|
|
|
|
2010-02-19 13:17:58 +01:00
|
|
|
#define QERR_PROPERTY_VALUE_BAD \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Property '%s.%s' doesn't take value '%s'"
|
2010-02-19 13:17:58 +01:00
|
|
|
|
2011-12-18 17:05:08 +01:00
|
|
|
#define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")"
|
2011-12-18 17:05:08 +01:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_QGA_COMMAND_FAILED \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Guest agent command failed, error was '%s'"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2009-11-26 22:58:57 -02:00
|
|
|
#define QERR_QMP_BAD_INPUT_OBJECT \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Expected '%s' in QMP input"
|
2009-11-26 22:58:57 -02:00
|
|
|
|
2010-04-07 14:46:33 -03:00
|
|
|
#define QERR_QMP_BAD_INPUT_OBJECT_MEMBER \
|
2015-03-17 11:54:50 +01:00
|
|
|
"QMP input object member '%s' expects '%s'"
|
2010-04-07 14:46:33 -03:00
|
|
|
|
2010-06-01 16:15:23 -03:00
|
|
|
#define QERR_QMP_EXTRA_MEMBER \
|
2015-03-17 11:54:50 +01:00
|
|
|
"QMP input object member '%s' is unexpected"
|
2010-06-01 16:15:23 -03:00
|
|
|
|
2009-12-07 21:37:07 +01:00
|
|
|
#define QERR_SET_PASSWD_FAILED \
|
2015-03-17 11:54:50 +01:00
|
|
|
"Could not set password"
|
2009-12-07 21:37:07 +01:00
|
|
|
|
2010-02-19 17:42:46 +01:00
|
|
|
#define QERR_UNDEFINED_ERROR \
|
2015-03-17 11:54:50 +01:00
|
|
|
"An undefined error has occurred"
|
2010-02-19 17:42:46 +01:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_UNSUPPORTED \
|
2015-03-17 11:54:50 +01:00
|
|
|
"this feature or command is not currently supported"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2015-09-17 19:25:13 +03:00
|
|
|
#define QERR_REPLAY_NOT_SUPPORTED \
|
|
|
|
"Record/replay feature is not supported for '%s'"
|
|
|
|
|
2009-11-18 23:05:30 -02:00
|
|
|
#endif /* QERROR_H */
|