package k.a;

import j.p0.d.r;
import java.util.List;

/* JADX INFO: compiled from: SerializationExceptions.kt */
/* JADX INFO: loaded from: classes.dex */
public final class c extends h {
    private final List<String> b;

    /* 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);
        r.f(list, "missingFields");
        this.b = list;
    }

    public final List<String> a() {
        return this.b;
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public c(List<String> list, String str) {
        String str2;
        r.f(list, "missingFields");
        r.f(str, "serialName");
        if (list.size() == 1) {
            str2 = "Field '" + list.get(0) + "' is required for type with serial name '" + str + "', but it was missing";
        } else {
            str2 = "Fields " + list + " are required for type with serial name '" + str + "', but they were missing";
        }
        this(list, str2, null);
    }
}
