what-the-bank/sources/com/google/android/gms/internal/p002firebaseauthapi/zzzb.java

39 lines
1.2 KiB
Java

package com.google.android.gms.internal.p002firebaseauthapi;
import android.text.TextUtils;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class zzzb implements zzxn {
private static final String zza = "com.google.android.gms.internal.firebase-auth-api.zzzb";
private String zzb;
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzxn
public final /* synthetic */ zzxn zza(String str) throws zzvg {
zzb(str);
return this;
}
public final zzzb zzb(String str) throws zzvg {
try {
JSONObject jSONObject = new JSONObject(new JSONObject(str).getString("error"));
jSONObject.getInt("code");
this.zzb = jSONObject.getString("message");
return this;
} catch (NullPointerException | JSONException e) {
Log.e(zza, "Failed to parse error for string [" + str + "] with exception: " + e.getMessage());
throw new zzvg("Failed to parse error for string [" + str + "]", e);
}
}
public final boolean zzd() {
return !TextUtils.isEmpty(this.zzb);
}
public final String zzc() {
return this.zzb;
}
}