qerror.h (75158ebbe259f0bd8bf435e8f4827a43ec89c877) | qerror.h (c6bd8c706a799eb0fece99f468aaa22b818036f3) |
---|---|
1/* 2 * QError Module 3 * 4 * Copyright (C) 2009 Red Hat Inc. 5 * 6 * Authors: 7 * Luiz Capitulino <lcapitulino@redhat.com> 8 * --- 21 unchanged lines hidden (view full) --- 30void qerror_report_err(Error *err); 31 32/* 33 * QError class list 34 * Please keep the definitions in alphabetical order. 35 * Use scripts/check-qerror.sh to check. 36 */ 37#define QERR_BASE_NOT_FOUND \ | 1/* 2 * QError Module 3 * 4 * Copyright (C) 2009 Red Hat Inc. 5 * 6 * Authors: 7 * Luiz Capitulino <lcapitulino@redhat.com> 8 * --- 21 unchanged lines hidden (view full) --- 30void qerror_report_err(Error *err); 31 32/* 33 * QError class list 34 * Please keep the definitions in alphabetical order. 35 * Use scripts/check-qerror.sh to check. 36 */ 37#define QERR_BASE_NOT_FOUND \ |
38 ERROR_CLASS_GENERIC_ERROR, "Base '%s' not found" | 38 "Base '%s' not found" |
39 40#define QERR_BLOCK_JOB_NOT_READY \ | 39 40#define QERR_BLOCK_JOB_NOT_READY \ |
41 ERROR_CLASS_GENERIC_ERROR, "The active block job for device '%s' cannot be completed" | 41 "The active block job for device '%s' cannot be completed" |
42 43#define QERR_BUS_NO_HOTPLUG \ | 42 43#define QERR_BUS_NO_HOTPLUG \ |
44 ERROR_CLASS_GENERIC_ERROR, "Bus '%s' does not support hotplugging" | 44 "Bus '%s' does not support hotplugging" |
45 46#define QERR_DEVICE_HAS_NO_MEDIUM \ | 45 46#define QERR_DEVICE_HAS_NO_MEDIUM \ |
47 ERROR_CLASS_GENERIC_ERROR, "Device '%s' has no medium" | 47 "Device '%s' has no medium" |
48 49#define QERR_DEVICE_INIT_FAILED \ | 48 49#define QERR_DEVICE_INIT_FAILED \ |
50 ERROR_CLASS_GENERIC_ERROR, "Device '%s' could not be initialized" | 50 "Device '%s' could not be initialized" |
51 52#define QERR_DEVICE_IN_USE \ | 51 52#define QERR_DEVICE_IN_USE \ |
53 ERROR_CLASS_GENERIC_ERROR, "Device '%s' is in use" | 53 "Device '%s' is in use" |
54 55#define QERR_DEVICE_NO_HOTPLUG \ | 54 55#define QERR_DEVICE_NO_HOTPLUG \ |
56 ERROR_CLASS_GENERIC_ERROR, "Device '%s' does not support hotplugging" | 56 "Device '%s' does not support hotplugging" |
57 58#define QERR_FD_NOT_FOUND \ | 57 58#define QERR_FD_NOT_FOUND \ |
59 ERROR_CLASS_GENERIC_ERROR, "File descriptor named '%s' not found" | 59 "File descriptor named '%s' not found" |
60 61#define QERR_FD_NOT_SUPPLIED \ | 60 61#define QERR_FD_NOT_SUPPLIED \ |
62 ERROR_CLASS_GENERIC_ERROR, "No file descriptor supplied via SCM_RIGHTS" | 62 "No file descriptor supplied via SCM_RIGHTS" |
63 64#define QERR_FEATURE_DISABLED \ | 63 64#define QERR_FEATURE_DISABLED \ |
65 ERROR_CLASS_GENERIC_ERROR, "The feature '%s' is not enabled" | 65 "The feature '%s' is not enabled" |
66 67#define QERR_INVALID_BLOCK_FORMAT \ | 66 67#define QERR_INVALID_BLOCK_FORMAT \ |
68 ERROR_CLASS_GENERIC_ERROR, "Invalid block format '%s'" | 68 "Invalid block format '%s'" |
69 70#define QERR_INVALID_PARAMETER \ | 69 70#define QERR_INVALID_PARAMETER \ |
71 ERROR_CLASS_GENERIC_ERROR, "Invalid parameter '%s'" | 71 "Invalid parameter '%s'" |
72 73#define QERR_INVALID_PARAMETER_TYPE \ | 72 73#define QERR_INVALID_PARAMETER_TYPE \ |
74 ERROR_CLASS_GENERIC_ERROR, "Invalid parameter type for '%s', expected: %s" | 74 "Invalid parameter type for '%s', expected: %s" |
75 76#define QERR_INVALID_PARAMETER_VALUE \ | 75 76#define QERR_INVALID_PARAMETER_VALUE \ |
77 ERROR_CLASS_GENERIC_ERROR, "Parameter '%s' expects %s" | 77 "Parameter '%s' expects %s" |
78 79#define QERR_INVALID_PASSWORD \ | 78 79#define QERR_INVALID_PASSWORD \ |
80 ERROR_CLASS_GENERIC_ERROR, "Password incorrect" | 80 "Password incorrect" |
81 82#define QERR_IO_ERROR \ | 81 82#define QERR_IO_ERROR \ |
83 ERROR_CLASS_GENERIC_ERROR, "An IO error has occurred" | 83 "An IO error has occurred" |
84 85#define QERR_JSON_PARSING \ | 84 85#define QERR_JSON_PARSING \ |
86 ERROR_CLASS_GENERIC_ERROR, "Invalid JSON syntax" | 86 "Invalid JSON syntax" |
87 88#define QERR_MIGRATION_ACTIVE \ | 87 88#define QERR_MIGRATION_ACTIVE \ |
89 ERROR_CLASS_GENERIC_ERROR, "There's a migration process in progress" | 89 "There's a migration process in progress" |
90 91#define QERR_MISSING_PARAMETER \ | 90 91#define QERR_MISSING_PARAMETER \ |
92 ERROR_CLASS_GENERIC_ERROR, "Parameter '%s' is missing" | 92 "Parameter '%s' is missing" |
93 94#define QERR_PERMISSION_DENIED \ | 93 94#define QERR_PERMISSION_DENIED \ |
95 ERROR_CLASS_GENERIC_ERROR, "Insufficient permission to perform this operation" | 95 "Insufficient permission to perform this operation" |
96 97#define QERR_PROPERTY_VALUE_BAD \ | 96 97#define QERR_PROPERTY_VALUE_BAD \ |
98 ERROR_CLASS_GENERIC_ERROR, "Property '%s.%s' doesn't take value '%s'" | 98 "Property '%s.%s' doesn't take value '%s'" |
99 100#define QERR_PROPERTY_VALUE_OUT_OF_RANGE \ | 99 100#define QERR_PROPERTY_VALUE_OUT_OF_RANGE \ |
101 ERROR_CLASS_GENERIC_ERROR, "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")" | 101 "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")" |
102 103#define QERR_QGA_COMMAND_FAILED \ | 102 103#define QERR_QGA_COMMAND_FAILED \ |
104 ERROR_CLASS_GENERIC_ERROR, "Guest agent command failed, error was '%s'" | 104 "Guest agent command failed, error was '%s'" |
105 106#define QERR_QMP_BAD_INPUT_OBJECT \ | 105 106#define QERR_QMP_BAD_INPUT_OBJECT \ |
107 ERROR_CLASS_GENERIC_ERROR, "Expected '%s' in QMP input" | 107 "Expected '%s' in QMP input" |
108 109#define QERR_QMP_BAD_INPUT_OBJECT_MEMBER \ | 108 109#define QERR_QMP_BAD_INPUT_OBJECT_MEMBER \ |
110 ERROR_CLASS_GENERIC_ERROR, "QMP input object member '%s' expects '%s'" | 110 "QMP input object member '%s' expects '%s'" |
111 112#define QERR_QMP_EXTRA_MEMBER \ | 111 112#define QERR_QMP_EXTRA_MEMBER \ |
113 ERROR_CLASS_GENERIC_ERROR, "QMP input object member '%s' is unexpected" | 113 "QMP input object member '%s' is unexpected" |
114 115#define QERR_SET_PASSWD_FAILED \ | 114 115#define QERR_SET_PASSWD_FAILED \ |
116 ERROR_CLASS_GENERIC_ERROR, "Could not set password" | 116 "Could not set password" |
117 118#define QERR_UNDEFINED_ERROR \ | 117 118#define QERR_UNDEFINED_ERROR \ |
119 ERROR_CLASS_GENERIC_ERROR, "An undefined error has occurred" | 119 "An undefined error has occurred" |
120 121#define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \ | 120 121#define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \ |
122 ERROR_CLASS_GENERIC_ERROR, "'%s' uses a %s feature which is not supported by this qemu version: %s" | 122 "'%s' uses a %s feature which is not supported by this qemu version: %s" |
123 124#define QERR_UNSUPPORTED \ | 123 124#define QERR_UNSUPPORTED \ |
125 ERROR_CLASS_GENERIC_ERROR, "this feature or command is not currently supported" | 125 "this feature or command is not currently supported" |
126 127#endif /* QERROR_H */ | 126 127#endif /* QERROR_H */ |