package kotlinx.coroutines;

import java.util.concurrent.CancellationException;

/* JADX INFO: compiled from: Exceptions.kt */
/* JADX INFO: loaded from: classes.dex */
public final class t1 extends CancellationException implements g0<t1> {
    public final s1 b;

    public t1(String str, Throwable th, s1 s1Var) {
        super(str);
        this.b = s1Var;
        if (th != null) {
            initCause(th);
        }
    }

    @Override // kotlinx.coroutines.g0
    /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
    public t1 a() {
        if (!r0.c()) {
            return null;
        }
        String message = getMessage();
        h.x.d.k.b(message);
        return new t1(message, this, this.b);
    }

    public boolean equals(Object obj) {
        if (obj != this) {
            if (obj instanceof t1) {
                t1 t1Var = (t1) obj;
                if (!h.x.d.k.a(t1Var.getMessage(), getMessage()) || !h.x.d.k.a(t1Var.b, this.b) || !h.x.d.k.a(t1Var.getCause(), getCause())) {
                }
            }
            return false;
        }
        return true;
    }

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

    public int hashCode() {
        String message = getMessage();
        h.x.d.k.b(message);
        int iHashCode = ((message.hashCode() * 31) + this.b.hashCode()) * 31;
        Throwable cause = getCause();
        return iHashCode + (cause == null ? 0 : cause.hashCode());
    }

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