1 /* 2 * QError Module 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 15 /* 16 * These macros will go away, please don't use in new code, and do not 17 * add new ones! 18 */ 19 20 #define QERR_BUS_NO_HOTPLUG \ 21 "Bus '%s' does not support hotplugging" 22 23 #define QERR_DEVICE_HAS_NO_MEDIUM \ 24 "Device '%s' has no medium" 25 26 #define QERR_DEVICE_NO_HOTPLUG \ 27 "Device '%s' does not support hotplugging" 28 29 #define QERR_INVALID_PARAMETER \ 30 "Invalid parameter '%s'" 31 32 #define QERR_INVALID_PARAMETER_TYPE \ 33 "Invalid parameter type for '%s', expected: %s" 34 35 #define QERR_INVALID_PARAMETER_VALUE \ 36 "Parameter '%s' expects %s" 37 38 #define QERR_IO_ERROR \ 39 "An IO error has occurred" 40 41 #define QERR_MIGRATION_ACTIVE \ 42 "There's a migration process in progress" 43 44 #define QERR_MISSING_PARAMETER \ 45 "Parameter '%s' is missing" 46 47 #define QERR_PROPERTY_VALUE_BAD \ 48 "Property '%s.%s' doesn't take value '%s'" 49 50 #define QERR_PROPERTY_VALUE_OUT_OF_RANGE \ 51 "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")" 52 53 #define QERR_QGA_COMMAND_FAILED \ 54 "Guest agent command failed, error was '%s'" 55 56 #define QERR_UNSUPPORTED \ 57 "this feature or command is not currently supported" 58 59 #endif /* QERROR_H */ 60