Files
rr3-apk/decompiled/sources/com/google/android/gms/ads/AdError.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

91 lines
2.2 KiB
Java

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 class AdError {
@NonNull
public static final String UNDEFINED_DOMAIN = "undefined";
private final int zza;
@NonNull
private final String zzb;
@NonNull
private final String zzc;
@Nullable
private final AdError zzd;
public AdError(int i, @NonNull String str, @NonNull String str2) {
this(i, str, str2, null);
}
public AdError(int i, @NonNull String str, @NonNull String str2, @Nullable AdError adError) {
this.zza = i;
this.zzb = str;
this.zzc = str2;
this.zzd = adError;
}
@Nullable
public AdError getCause() {
return this.zzd;
}
public int getCode() {
return this.zza;
}
@NonNull
public String getDomain() {
return this.zzc;
}
@NonNull
public String getMessage() {
return this.zzb;
}
@NonNull
public String toString() {
try {
return zzb().toString(2);
} catch (JSONException unused) {
return "Error forming toString output.";
}
}
@NonNull
public JSONObject zzb() throws JSONException {
JSONObject jSONObject = new JSONObject();
jSONObject.put("Code", this.zza);
jSONObject.put("Message", this.zzb);
jSONObject.put("Domain", this.zzc);
AdError adError = this.zzd;
if (adError == null) {
jSONObject.put("Cause", "null");
} else {
jSONObject.put("Cause", adError.zzb());
}
return jSONObject;
}
@NonNull
public final com.google.android.gms.ads.internal.client.zze zza() {
com.google.android.gms.ads.internal.client.zze zzeVar;
AdError adError = this.zzd;
if (adError == null) {
zzeVar = null;
} else {
String str = adError.zzc;
zzeVar = new com.google.android.gms.ads.internal.client.zze(adError.zza, adError.zzb, str, null, null);
}
return new com.google.android.gms.ads.internal.client.zze(this.zza, this.zzb, this.zzc, zzeVar, null);
}
}