error: New QERR_INVALID_PARAMETER_VALUE
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
975b63a4ee
commit
985a3e52f0
4
qerror.c
4
qerror.c
@ -120,6 +120,10 @@ static const QErrorStringTable qerror_table[] = {
|
||||
.error_fmt = QERR_INVALID_PARAMETER_TYPE,
|
||||
.desc = "Invalid parameter type, expected: %(expected)",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_INVALID_PARAMETER_VALUE,
|
||||
.desc = "Parameter '%(name)' expects %(expected)",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_INVALID_PASSWORD,
|
||||
.desc = "Password incorrect",
|
||||
|
3
qerror.h
3
qerror.h
@ -106,6 +106,9 @@ QError *qobject_to_qerror(const QObject *obj);
|
||||
#define QERR_INVALID_PARAMETER_TYPE \
|
||||
"{ 'class': 'InvalidParameterType', 'data': { 'name': %s,'expected': %s } }"
|
||||
|
||||
#define QERR_INVALID_PARAMETER_VALUE \
|
||||
"{ 'class': 'InvalidParameterValue', 'data': { 'name': %s, 'expected': %s } }"
|
||||
|
||||
#define QERR_INVALID_PASSWORD \
|
||||
"{ 'class': 'InvalidPassword', 'data': {} }"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user