2009-11-19 01:05:30 +00:00
|
|
|
/*
|
2010-05-12 19:34:42 +00:00
|
|
|
* QError Module
|
2009-11-19 01:05:30 +00: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
|
|
|
|
|
|
|
|
#include "qdict.h"
|
2009-12-07 20:37:16 +00:00
|
|
|
#include "qstring.h"
|
2010-02-18 18:46:49 +00:00
|
|
|
#include "qemu-error.h"
|
2011-09-02 17:34:45 +00:00
|
|
|
#include "error.h"
|
2012-07-27 17:09:29 +00:00
|
|
|
#include "qapi-types.h"
|
2009-11-19 01:05:30 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
typedef struct QError {
|
|
|
|
QObject_HEAD;
|
2010-02-18 18:46:49 +00:00
|
|
|
Location loc;
|
2012-07-20 15:02:58 +00:00
|
|
|
char *err_msg;
|
2012-07-27 17:09:29 +00:00
|
|
|
ErrorClass err_class;
|
2009-11-19 01:05:30 +00:00
|
|
|
} QError;
|
|
|
|
|
2009-12-07 20:37:16 +00:00
|
|
|
QString *qerror_human(const QError *qerror);
|
2012-07-27 17:09:29 +00:00
|
|
|
void qerror_report(ErrorClass err_class, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
|
2011-09-02 17:34:45 +00:00
|
|
|
void qerror_report_err(Error *err);
|
2012-02-14 09:19:53 +00:00
|
|
|
void assert_no_error(Error *err);
|
2009-11-19 01:05:30 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* QError class list
|
2010-03-25 16:22:30 +00:00
|
|
|
* Please keep the definitions in alphabetical order.
|
2012-01-04 22:23:32 +00:00
|
|
|
* Use scripts/check-qerror.sh to check.
|
2009-11-19 01:05:30 +00:00
|
|
|
*/
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_ADD_CLIENT_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Could not add client"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2012-02-02 11:37:53 +00:00
|
|
|
#define QERR_AMBIGUOUS_PATH \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Path '%s' does not uniquely identify an object"
|
2012-02-02 11:37:53 +00:00
|
|
|
|
2010-02-19 18:52:45 +00:00
|
|
|
#define QERR_BAD_BUS_FOR_DEVICE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' can't go on a %s bus"
|
2010-02-19 18:52:45 +00:00
|
|
|
|
2012-01-18 14:40:52 +00:00
|
|
|
#define QERR_BASE_NOT_FOUND \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Base '%s' not found"
|
2012-01-18 14:40:52 +00:00
|
|
|
|
2011-11-14 21:09:47 +00:00
|
|
|
#define QERR_BLOCK_FORMAT_FEATURE_NOT_SUPPORTED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Block format '%s' used by device '%s' does not support feature '%s'"
|
2011-11-14 21:09:47 +00:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_BUFFER_OVERRUN \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "An internal buffer overran"
|
2010-02-19 17:05:39 +00:00
|
|
|
|
2010-02-19 18:53:36 +00:00
|
|
|
#define QERR_BUS_NO_HOTPLUG \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Bus '%s' does not support hotplugging"
|
2010-02-19 18:53:36 +00:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_BUS_NOT_FOUND \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Bus '%s' not found"
|
2009-11-27 00:58:57 +00:00
|
|
|
|
2011-12-07 04:03:42 +00:00
|
|
|
#define QERR_COMMAND_DISABLED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "The command %s has been disabled for this instance"
|
2011-12-07 04:03:42 +00:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_COMMAND_NOT_FOUND \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_COMMAND_NOT_FOUND, "The command %s has not been found"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2009-12-07 20:36:59 +00:00
|
|
|
#define QERR_DEVICE_ENCRYPTED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_DEVICE_ENCRYPTED, "'%s' (%s) is encrypted"
|
2009-11-19 01:05:30 +00:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_DEVICE_FEATURE_BLOCKS_MIGRATION \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Migration is disabled when using feature '%s' in device '%s'"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2012-01-04 22:23:34 +00:00
|
|
|
#define QERR_DEVICE_HAS_NO_MEDIUM \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' has no medium"
|
2012-01-04 22:23:34 +00:00
|
|
|
|
2010-02-19 18:53:54 +00:00
|
|
|
#define QERR_DEVICE_INIT_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' could not be initialized"
|
2010-02-19 18:53:54 +00:00
|
|
|
|
2010-03-25 16:22:39 +00:00
|
|
|
#define QERR_DEVICE_IN_USE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' is in use"
|
2010-03-25 16:22:39 +00:00
|
|
|
|
2012-01-04 22:23:34 +00:00
|
|
|
#define QERR_DEVICE_IS_READ_ONLY \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' is read only"
|
2012-01-04 22:23:34 +00:00
|
|
|
|
2010-02-19 16:42:46 +00:00
|
|
|
#define QERR_DEVICE_LOCKED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' is locked"
|
2009-12-07 20:37:03 +00:00
|
|
|
|
2010-02-19 17:05:59 +00:00
|
|
|
#define QERR_DEVICE_MULTIPLE_BUSSES \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' has multiple child busses"
|
2010-02-19 17:05:59 +00:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_DEVICE_NO_BUS \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' has no child bus"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
|
|
|
#define QERR_DEVICE_NO_HOTPLUG \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' does not support hotplugging"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2009-11-19 01:05:34 +00:00
|
|
|
#define QERR_DEVICE_NOT_ACTIVE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_DEVICE_NOT_ACTIVE, "Device '%s' has not been activated"
|
2009-12-07 20:37:02 +00:00
|
|
|
|
2010-03-25 16:22:30 +00:00
|
|
|
#define QERR_DEVICE_NOT_ENCRYPTED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' is not encrypted"
|
2010-03-25 16:22:30 +00:00
|
|
|
|
2009-12-07 20:37:02 +00:00
|
|
|
#define QERR_DEVICE_NOT_FOUND \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_DEVICE_NOT_FOUND, "Device '%s' not found"
|
2009-11-19 01:05:34 +00:00
|
|
|
|
2009-12-07 20:37:04 +00:00
|
|
|
#define QERR_DEVICE_NOT_REMOVABLE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Device '%s' is not removable"
|
2009-12-07 20:37:04 +00:00
|
|
|
|
2010-03-25 16:22:31 +00:00
|
|
|
#define QERR_DUPLICATE_ID \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Duplicate ID '%s' for %s"
|
2010-03-25 16:22:31 +00:00
|
|
|
|
2009-12-07 20:37:10 +00:00
|
|
|
#define QERR_FD_NOT_FOUND \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "File descriptor named '%s' not found"
|
2009-12-07 20:37:10 +00:00
|
|
|
|
2009-12-07 20:37:12 +00:00
|
|
|
#define QERR_FD_NOT_SUPPLIED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "No file descriptor supplied via SCM_RIGHTS"
|
2009-12-07 20:37:12 +00:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_FEATURE_DISABLED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "The feature '%s' is not enabled"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2009-12-07 20:37:06 +00:00
|
|
|
#define QERR_INVALID_BLOCK_FORMAT \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Invalid block format '%s'"
|
2009-12-07 20:37:06 +00:00
|
|
|
|
2012-03-28 17:01:15 +00:00
|
|
|
#define QERR_INVALID_OPTION_GROUP \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "There is no option group '%s'"
|
2012-03-28 17:01:15 +00:00
|
|
|
|
2009-12-07 20:37:13 +00:00
|
|
|
#define QERR_INVALID_PARAMETER \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Invalid parameter '%s'"
|
2009-12-07 20:37:13 +00:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_INVALID_PARAMETER_COMBINATION \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Invalid parameter combination"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2009-11-27 00:58:57 +00:00
|
|
|
#define QERR_INVALID_PARAMETER_TYPE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Invalid parameter type for '%s', expected: %s"
|
2009-11-27 00:58:57 +00:00
|
|
|
|
2010-03-25 16:22:33 +00:00
|
|
|
#define QERR_INVALID_PARAMETER_VALUE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Parameter '%s' expects %s"
|
2010-03-25 16:22:33 +00:00
|
|
|
|
2009-12-04 17:24:08 +00:00
|
|
|
#define QERR_INVALID_PASSWORD \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Password incorrect"
|
2009-12-07 20:37:02 +00:00
|
|
|
|
2011-11-22 18:29:52 +00:00
|
|
|
#define QERR_IO_ERROR \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "An IO error has occurred"
|
2011-11-22 18:29:52 +00:00
|
|
|
|
2011-06-01 17:14:50 +00:00
|
|
|
#define QERR_JSON_PARSE_ERROR \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "JSON parse error, %s"
|
2011-06-01 17:14:50 +00:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_JSON_PARSING \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Invalid JSON syntax"
|
2011-07-19 19:50:33 +00:00
|
|
|
|
2009-11-19 01:05:35 +00:00
|
|
|
#define QERR_KVM_MISSING_CAP \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_K_V_M_MISSING_CAP, "Using KVM without %s, %s unavailable"
|
2009-11-19 01:05:35 +00:00
|
|
|
|
2011-12-02 16:58:12 +00:00
|
|
|
#define QERR_MIGRATION_ACTIVE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "There's a migration process in progress"
|
2011-12-02 16:58:12 +00:00
|
|
|
|
|
|
|
#define QERR_MIGRATION_NOT_SUPPORTED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "State blocked by non-migratable device '%s'"
|
2011-12-02 16:58:12 +00:00
|
|
|
|
2010-07-27 10:19:19 +00:00
|
|
|
#define QERR_MIGRATION_EXPECTED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_MIGRATION_EXPECTED, "An incoming migration is expected before this command can be executed"
|
2010-07-27 10:19:19 +00:00
|
|
|
|
2009-11-27 00:58:57 +00:00
|
|
|
#define QERR_MISSING_PARAMETER \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Parameter '%s' is missing"
|
2009-11-27 00:58:57 +00:00
|
|
|
|
2010-02-19 18:54:06 +00:00
|
|
|
#define QERR_NO_BUS_FOR_DEVICE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "No '%s' bus found for device '%s'"
|
2010-02-19 18:54:06 +00:00
|
|
|
|
2012-01-18 14:40:46 +00:00
|
|
|
#define QERR_NOT_SUPPORTED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Not supported"
|
2012-01-18 14:40:46 +00:00
|
|
|
|
2010-02-19 16:42:46 +00:00
|
|
|
#define QERR_OPEN_FILE_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Could not open '%s'"
|
2010-02-19 16:42:46 +00:00
|
|
|
|
2011-12-12 20:29:26 +00:00
|
|
|
#define QERR_PERMISSION_DENIED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Insufficient permission to perform this operation"
|
2011-12-12 20:29:26 +00:00
|
|
|
|
2010-02-19 12:11:41 +00:00
|
|
|
#define QERR_PROPERTY_NOT_FOUND \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Property '%s.%s' not found"
|
2010-02-19 12:11:41 +00:00
|
|
|
|
2010-02-19 12:17:58 +00:00
|
|
|
#define QERR_PROPERTY_VALUE_BAD \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Property '%s.%s' doesn't take value '%s'"
|
2010-02-19 12:17:58 +00:00
|
|
|
|
2010-03-16 16:40:48 +00:00
|
|
|
#define QERR_PROPERTY_VALUE_IN_USE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Property '%s.%s' can't take value '%s', it's in use"
|
2010-03-16 16:40:48 +00:00
|
|
|
|
2010-03-16 16:44:38 +00:00
|
|
|
#define QERR_PROPERTY_VALUE_NOT_FOUND \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Property '%s.%s' can't find value '%s'"
|
2010-03-16 16:44:38 +00:00
|
|
|
|
2012-03-14 15:57:05 +00:00
|
|
|
#define QERR_PROPERTY_VALUE_NOT_POWER_OF_2 \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Property %s.%s doesn't take value '%" PRId64 "', it's not a power of 2"
|
2012-03-14 15:57:05 +00:00
|
|
|
|
2011-12-18 16:05:08 +00:00
|
|
|
#define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")"
|
2011-12-18 16:05:08 +00:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_QGA_COMMAND_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Guest agent command failed, error was '%s'"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
|
|
|
#define QERR_QGA_LOGGING_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Guest agent failed to log non-optional log statement"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2009-11-27 00:58:57 +00:00
|
|
|
#define QERR_QMP_BAD_INPUT_OBJECT \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Expected '%s' in QMP input"
|
2009-11-27 00:58:57 +00:00
|
|
|
|
2010-04-07 17:46:33 +00:00
|
|
|
#define QERR_QMP_BAD_INPUT_OBJECT_MEMBER \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "QMP input object member '%s' expects '%s'"
|
2010-04-07 17:46:33 +00:00
|
|
|
|
2010-06-01 19:15:23 +00:00
|
|
|
#define QERR_QMP_EXTRA_MEMBER \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "QMP input object member '%s' is unexpected"
|
2010-06-01 19:15:23 +00:00
|
|
|
|
2011-07-29 18:57:54 +00:00
|
|
|
#define QERR_RESET_REQUIRED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Resetting the Virtual Machine is required"
|
2011-07-29 18:57:54 +00:00
|
|
|
|
2009-12-07 20:37:07 +00:00
|
|
|
#define QERR_SET_PASSWD_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Could not set password"
|
2009-12-07 20:37:07 +00:00
|
|
|
|
2009-12-07 20:37:14 +00:00
|
|
|
#define QERR_TOO_MANY_FILES \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Too many open files"
|
2009-12-07 20:37:14 +00:00
|
|
|
|
2010-02-19 16:42:46 +00:00
|
|
|
#define QERR_UNDEFINED_ERROR \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "An undefined error has occurred"
|
2010-02-19 16:42:46 +00:00
|
|
|
|
2011-02-09 10:09:38 +00:00
|
|
|
#define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "'%s' uses a %s feature which is not supported by this qemu version: %s"
|
2011-02-09 10:09:38 +00:00
|
|
|
|
2012-01-04 17:38:22 +00:00
|
|
|
#define QERR_UNSUPPORTED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "this feature or command is not currently supported"
|
2012-01-04 17:38:22 +00:00
|
|
|
|
2011-12-04 17:05:28 +00:00
|
|
|
#define QERR_VIRTFS_FEATURE_BLOCKS_MIGRATION \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Migration is disabled when VirtFS export path '%s' is mounted in the guest using mount_tag '%s'"
|
2011-12-04 17:05:28 +00:00
|
|
|
|
2009-12-07 20:37:08 +00:00
|
|
|
#define QERR_VNC_SERVER_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Could not start VNC server on %s"
|
2009-12-07 20:37:08 +00:00
|
|
|
|
2012-05-10 16:28:08 +00:00
|
|
|
#define QERR_SOCKET_CONNECT_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Failed to connect to socket"
|
2012-05-10 16:28:08 +00:00
|
|
|
|
|
|
|
#define QERR_SOCKET_LISTEN_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Failed to set socket to listening mode"
|
2012-05-10 16:28:08 +00:00
|
|
|
|
|
|
|
#define QERR_SOCKET_BIND_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Failed to bind socket"
|
2012-05-10 16:28:08 +00:00
|
|
|
|
|
|
|
#define QERR_SOCKET_CREATE_FAILED \
|
2012-07-27 20:51:03 +00:00
|
|
|
ERROR_CLASS_GENERIC_ERROR, "Failed to create socket"
|
2012-05-10 16:28:08 +00:00
|
|
|
|
2009-11-19 01:05:30 +00:00
|
|
|
#endif /* QERROR_H */
|