package d2;

import java.util.concurrent.CancellationException;

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final z0 f4465e;

    public a1(String str, Throwable th, z0 z0Var) {
        super(str);
        this.f4465e = z0Var;
        if (th != null) {
            initCause(th);
        }
    }

    @Override // d2.s
    /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
    public a1 a() {
        if (!c0.b()) {
            return null;
        }
        String message = getMessage();
        w1.g.b(message);
        return new a1(message, this, this.f4465e);
    }

    public boolean equals(Object obj) {
        if (obj != this) {
            if (obj instanceof a1) {
                a1 a1Var = (a1) obj;
                if (!w1.g.a(a1Var.getMessage(), getMessage()) || !w1.g.a(a1Var.f4465e, this.f4465e) || !w1.g.a(a1Var.getCause(), getCause())) {
                }
            }
            return false;
        }
        return true;
    }

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

    public int hashCode() {
        String message = getMessage();
        w1.g.b(message);
        int iHashCode = ((message.hashCode() * 31) + this.f4465e.hashCode()) * 31;
        Throwable cause = getCause();
        return iHashCode + (cause == null ? 0 : cause.hashCode());
    }

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