package kotlin.reflect.jvm.internal.impl.utils;

import defpackage.cr4;
import defpackage.kp6;

/* JADX INFO: loaded from: classes3.dex */
public final class ExceptionUtilsKt {
    public static final boolean isProcessCanceledException(@kp6 Throwable th) {
        cr4.g(th, "<this>");
        Class<?> superclass = th.getClass();
        while (!cr4.b(superclass.getCanonicalName(), "com.intellij.openapi.progress.ProcessCanceledException")) {
            superclass = superclass.getSuperclass();
            if (superclass == null) {
                return false;
            }
        }
        return true;
    }

    @kp6
    public static final RuntimeException rethrow(@kp6 Throwable th) throws Throwable {
        cr4.g(th, "e");
        throw th;
    }
}
