static void qerror_set_data(QError *qerr, const char *fmt, va_list *va)

{

    QObject *obj;



    obj = qobject_from_jsonv(fmt, va);

    if (!obj) {

        qerror_abort(qerr, "invalid format '%s'", fmt);

    }

    if (qobject_type(obj) != QTYPE_QDICT) {

        qerror_abort(qerr, "error format is not a QDict '%s'", fmt);

    }



    qerr->error = qobject_to_qdict(obj);



    obj = qdict_get(qerr->error, "class");

    if (!obj) {

        qerror_abort(qerr, "missing 'class' key in '%s'", fmt);

    }

    if (qobject_type(obj) != QTYPE_QSTRING) {

        qerror_abort(qerr, "'class' key value should be a QString");

    }

    

    obj = qdict_get(qerr->error, "data");

    if (!obj) {

        qerror_abort(qerr, "missing 'data' key in '%s'", fmt);

    }

    if (qobject_type(obj) != QTYPE_QDICT) {

        qerror_abort(qerr, "'data' key value should be a QDICT");

    }

}

static void qerror_set_data(QError *qerr, const char *fmt, va_list *va)

{

    QObject *obj;



    obj = qobject_from_jsonv(fmt, va);

    if (!obj) {

        qerror_abort(qerr, "invalid format '%s'", fmt);

    }

    if (qobject_type(obj) != QTYPE_QDICT) {

        qerror_abort(qerr, "error format is not a QDict '%s'", fmt);

    }



    qerr->error = qobject_to_qdict(obj);



    obj = qdict_get(qerr->error, "class");

    if (!obj) {

        qerror_abort(qerr, "missing 'class' key in '%s'", fmt);

    }

    if (qobject_type(obj) != QTYPE_QSTRING) {

        qerror_abort(qerr, "'class' key value should be a QString");

    }

    

    obj = qdict_get(qerr->error, "data");

    if (!obj) {

        qerror_abort(qerr, "missing 'data' key in '%s'", fmt);

    }

    if (qobject_type(obj) != QTYPE_QDICT) {

        qerror_abort(qerr, "'data' key value should be a QDICT");

    }

}

static void FUNC_0(QError *VAR_0, const char *VAR_1, va_list *VAR_2)

{

    QObject *obj;



    obj = qobject_from_jsonv(VAR_1, VAR_2);

    if (!obj) {

        qerror_abort(VAR_0, "invalid format '%s'", VAR_1);

    }

    if (qobject_type(obj) != QTYPE_QDICT) {

        qerror_abort(VAR_0, "error format is not a QDict '%s'", VAR_1);

    }



    VAR_0->error = qobject_to_qdict(obj);



    obj = qdict_get(VAR_0->error, "class");

    if (!obj) {

        qerror_abort(VAR_0, "missing 'class' key in '%s'", VAR_1);

    }

    if (qobject_type(obj) != QTYPE_QSTRING) {

        qerror_abort(VAR_0, "'class' key value should be a QString");

    }

    

    obj = qdict_get(VAR_0->error, "data");

    if (!obj) {

        qerror_abort(VAR_0, "missing 'data' key in '%s'", VAR_1);

    }

    if (qobject_type(obj) != QTYPE_QDICT) {

        qerror_abort(VAR_0, "'data' key value should be a QDICT");

    }

}

static void FUNC_0(QError *VAR_0, const char *VAR_1, va_list *VAR_2)
{ QObject *obj; obj = qobject_from_jsonv(VAR_1, VAR_2); if (!obj) { qerror_abort(VAR_0, "invalid format '%s'", VAR_1); } if (qobject_type(obj) != QTYPE_QDICT) { qerror_abort(VAR_0, "error format is not a QDict '%s'", VAR_1); } VAR_0->error = qobject_to_qdict(obj); obj = qdict_get(VAR_0->error, "class"); if (!obj) { qerror_abort(VAR_0, "missing 'class' key in '%s'", VAR_1); } if (qobject_type(obj) != QTYPE_QSTRING) { qerror_abort(VAR_0, "'class' key value should be a QString"); } obj = qdict_get(VAR_0->error, "data"); if (!obj) { qerror_abort(VAR_0, "missing 'data' key in '%s'", VAR_1); } if (qobject_type(obj) != QTYPE_QDICT) { qerror_abort(VAR_0, "'data' key value should be a QDICT"); } }