package com.google.android.gms.ads; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes2.dex */ public final class LoadAdError extends AdError { @Nullable private final ResponseInfo zza; public LoadAdError(int i, @NonNull String str, @NonNull String str2, @Nullable AdError adError, @Nullable ResponseInfo responseInfo) { super(i, str, str2, adError); this.zza = responseInfo; } @Nullable public ResponseInfo getResponseInfo() { return this.zza; } @Override // com.google.android.gms.ads.AdError @NonNull public String toString() { try { return zzb().toString(2); } catch (JSONException unused) { return "Error forming toString output."; } } @Override // com.google.android.gms.ads.AdError @NonNull public final JSONObject zzb() throws JSONException { JSONObject zzb = super.zzb(); ResponseInfo responseInfo = getResponseInfo(); if (responseInfo == null) { zzb.put("Response Info", "null"); } else { zzb.put("Response Info", responseInfo.zzd()); } return zzb; } }