package h.b;

import java.util.List;

/* JADX INFO: compiled from: SerializationExceptions.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class c extends i {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final List<String> f4349b;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public c(List<String> list, String str, Throwable th) {
        super(str, th);
        g.h0.c.l.f(list, "missingFields");
        this.f4349b = list;
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public c(List<String> list, String str) {
        String string;
        g.h0.c.l.f(list, "missingFields");
        g.h0.c.l.f(str, "serialName");
        if (list.size() == 1) {
            StringBuilder sbB = d.b.a.a.a.B("Field '");
            sbB.append(list.get(0));
            sbB.append("' is required for type with serial name '");
            sbB.append(str);
            sbB.append("', but it was missing");
            string = sbB.toString();
        } else {
            string = "Fields " + list + " are required for type with serial name '" + str + "', but they were missing";
        }
        g.h0.c.l.f(list, "missingFields");
        super(string, null);
        this.f4349b = list;
    }
}
