package m4;

import java.util.logging.Level;
import java.util.logging.Logger;

/* JADX INFO: loaded from: classes3.dex */
public final class B0 implements Runnable {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final Logger f20573b = Logger.getLogger(B0.class.getName());

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Runnable f20574a;

    public B0(Runnable runnable) {
        this.f20574a = runnable;
    }

    @Override // java.lang.Runnable
    public final void run() {
        Runnable runnable = this.f20574a;
        try {
            runnable.run();
        } catch (Throwable th) {
            f20573b.log(Level.SEVERE, "Exception while executing runnable " + runnable, th);
            Object obj = E3.u.f1176a;
            if (th instanceof RuntimeException) {
                throw ((RuntimeException) th);
            }
            if (!(th instanceof Error)) {
                throw new AssertionError(th);
            }
            throw ((Error) th);
        }
    }

    public final String toString() {
        return "LogExceptionRunnable(" + this.f20574a + ")";
    }
}
