error: New QERR_PROPERTY_VALUE_NOT_FOUND
This commit is contained in:
parent
9c5eff958d
commit
84745d68e7
4
qerror.c
4
qerror.c
@ -116,6 +116,10 @@ static const QErrorStringTable qerror_table[] = {
|
||||
.error_fmt = QERR_PROPERTY_VALUE_IN_USE,
|
||||
.desc = "Property '%(device).%(property)' can't take value '%(value)', it's in use",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_PROPERTY_VALUE_NOT_FOUND,
|
||||
.desc = "Property '%(device).%(property)' can't find value '%(value)'",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_QMP_BAD_INPUT_OBJECT,
|
||||
.desc = "Bad QMP input object",
|
||||
|
3
qerror.h
3
qerror.h
@ -99,6 +99,9 @@ QError *qobject_to_qerror(const QObject *obj);
|
||||
#define QERR_PROPERTY_VALUE_IN_USE \
|
||||
"{ 'class': 'PropertyValueInUse', 'data': { 'device': %s, 'property': %s, 'value': %s } }"
|
||||
|
||||
#define QERR_PROPERTY_VALUE_NOT_FOUND \
|
||||
"{ 'class': 'PropertyValueNotFound', 'data': { 'device': %s, 'property': %s, 'value': %s } }"
|
||||
|
||||
#define QERR_QMP_BAD_INPUT_OBJECT \
|
||||
"{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user