package g7;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import org.json.JSONException;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public final class k extends a {

    @Nullable
    private final u zza;

    public k(int i10, @NonNull String str, @NonNull String str2, @Nullable a aVar, @Nullable u uVar) {
        super(i10, str, str2, aVar);
        this.zza = uVar;
    }

    @Override // g7.a
    public final JSONObject b() throws JSONException {
        JSONObject jSONObjectB = super.b();
        u responseInfo = getResponseInfo();
        if (responseInfo == null) {
            jSONObjectB.put("Response Info", "null");
        } else {
            jSONObjectB.put("Response Info", responseInfo.a());
        }
        return jSONObjectB;
    }

    @Nullable
    public u getResponseInfo() {
        return this.zza;
    }

    @Override // g7.a
    public final String toString() {
        try {
            return b().toString(2);
        } catch (JSONException unused) {
            return "Error forming toString output.";
        }
    }
}
