package g.a;

import java.util.concurrent.CancellationException;

/* JADX INFO: compiled from: Exceptions.kt */
/* JADX INFO: loaded from: classes.dex */
public final class o1 extends CancellationException implements z<o1> {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final n1 f4105b;

    public o1(String str, Throwable th, n1 n1Var) {
        super(str);
        this.f4105b = n1Var;
        if (th != null) {
            initCause(th);
        }
    }

    @Override // g.a.z
    /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
    public o1 a() {
        if (!l0.c()) {
            return null;
        }
        String message = getMessage();
        f.z.d.k.c(message);
        return new o1(message, this, this.f4105b);
    }

    public boolean equals(Object obj) {
        if (obj != this) {
            if (obj instanceof o1) {
                o1 o1Var = (o1) obj;
                if (!f.z.d.k.a(o1Var.getMessage(), getMessage()) || !f.z.d.k.a(o1Var.f4105b, this.f4105b) || !f.z.d.k.a(o1Var.getCause(), getCause())) {
                }
            }
            return false;
        }
        return true;
    }

    @Override // java.lang.Throwable
    public Throwable fillInStackTrace() {
        if (l0.c()) {
            return super.fillInStackTrace();
        }
        setStackTrace(new StackTraceElement[0]);
        return this;
    }

    public int hashCode() {
        String message = getMessage();
        f.z.d.k.c(message);
        int iHashCode = ((message.hashCode() * 31) + this.f4105b.hashCode()) * 31;
        Throwable cause = getCause();
        return iHashCode + (cause != null ? cause.hashCode() : 0);
    }

    @Override // java.lang.Throwable
    public String toString() {
        return super.toString() + "; job=" + this.f4105b;
    }
}
