package k.a.p;

/* JADX INFO: compiled from: AbstractPolymorphicSerializer.kt */
/* JADX INFO: loaded from: classes.dex */
public final class c {
    public static final Void a(String str, j.s0.c<?> cVar) {
        String str2;
        j.p0.d.r.f(cVar, "baseClass");
        String str3 = "in the scope of '" + cVar.a() + '\'';
        if (str == null) {
            str2 = "Class discriminator was missing and no default polymorphic serializers were registered " + str3;
        } else {
            str2 = "Class '" + str + "' is not registered for polymorphic serialization " + str3 + ".\nMark the base class as 'sealed' or register the serializer explicitly.";
        }
        throw new k.a.h(str2);
    }

    public static final Void b(j.s0.c<?> cVar, j.s0.c<?> cVar2) {
        j.p0.d.r.f(cVar, "subClass");
        j.p0.d.r.f(cVar2, "baseClass");
        String strA = cVar.a();
        if (strA == null) {
            strA = String.valueOf(cVar);
        }
        a(strA, cVar2);
        throw null;
    }
}
