package com.google.android.gms.internal.p002firebaseauthapi; import java.lang.reflect.Type; /* loaded from: classes.dex */ public final class zzabb { private static final String zza = "com.google.android.gms.internal.firebase-auth-api.zzabb"; private zzabb() { } public static Object zza(String str, Type type) { if (type != String.class) { if (type == Void.class) { return null; } try { try { return ((zzabd) ((Class) type).getConstructor(new Class[0]).newInstance(new Object[0])).zza(str); } catch (Exception e10) { throw new zzyt("Json conversion failed! ".concat(String.valueOf(e10.getMessage())), e10); } } catch (Exception e11) { throw new zzyt("Instantiation of JsonResponse failed! ".concat(type.toString()), e11); } } try { zzact zzactVar = new zzact(); zzactVar.zzb(str); if (zzactVar.zzd()) { return zzactVar.zzc(); } throw new zzyt("No error message: " + str); } catch (Exception e12) { throw new zzyt("Json conversion failed! ".concat(String.valueOf(e12.getMessage())), e12); } } }