package o; import com.android.volley.ParseError; import java.io.UnsupportedEncodingException; import o.C15788ibz; import o.InterfaceC17333vqS; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes.dex */ public class zcu extends hSC { public zcu(String str, C15788ibz.LWm lWm, C15788ibz.HBt hBt) { super(0, str, null, lWm, hBt); } @Deprecated public zcu(String str, JSONObject jSONObject, C15788ibz.LWm lWm, C15788ibz.HBt hBt) { super(jSONObject == null ? 0 : 1, str, jSONObject != null ? jSONObject.toString() : null, lWm, hBt); } public zcu(int i, String str, JSONObject jSONObject, C15788ibz.LWm lWm, C15788ibz.HBt hBt) { super(i, str, jSONObject != null ? jSONObject.toString() : null, lWm, hBt); } @Override // o.hSC, o.HJP public C15788ibz parseNetworkResponse(DrQ drQ) { try { JSONObject jSONObject = new JSONObject(new String(drQ.c, HNc.e(drQ.a, "utf-8"))); return C15788ibz.b(jSONObject, (InterfaceC17333vqS.IeS) HNc.b(new Object[]{drQ})); } catch (UnsupportedEncodingException e) { return C15788ibz.b(new ParseError(e)); } catch (JSONException e2) { return C15788ibz.b(new ParseError(e2)); } } }