package j;

import j.q;

/* JADX INFO: compiled from: Result.kt */
/* JADX INFO: loaded from: classes.dex */
public final class r {
    public static final Object a(Throwable th) {
        j.p0.d.r.f(th, "exception");
        return new q.b(th);
    }

    public static final void b(Object obj) throws Throwable {
        if (obj instanceof q.b) {
            throw ((q.b) obj).b;
        }
    }
}
