package com.tencent.mm.plugin.appbrand;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.h.h;
import com.tencent.mm.plugin.appbrand.jsapi.bo;
import com.tencent.mm.plugin.appbrand.report.quality.f;
import com.tencent.mm.plugin.appbrand.s.l;
import com.tencent.mm.sdk.platformtools.ab;

class s$8 implements h {
    final /* synthetic */ s gPV;

    s$8(s sVar) {
        this.gPV = sVar;
    }

    public final void C(String str, String str2) {
        AppMethodBeat.i(129076);
        ab.e("MicroMsg.AppBrandService", "hy: wxa main context exception %s %s", new Object[]{str, str2});
        String format = String.format("{'message':'%s', 'stack': '%s'}", new Object[]{l.Ej(str), l.Ej(str2)});
        bo.a(this.gPV.aBx(), "onError", format, 0);
        ab.e("MicroMsg.AppBrand.JsRuntimeException", format);
        try {
            f.a(this.gPV, str, str2);
            AppMethodBeat.o(129076);
        } catch (Throwable th) {
            AppMethodBeat.o(129076);
        }
    }
}
