package Z6;

import java.util.concurrent.CancellationException;

/* JADX INFO: loaded from: classes.dex */
public final class e0 extends CancellationException {

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final transient k0 f7507q;

    public e0(String str, Throwable th, k0 k0Var) {
        super(str);
        this.f7507q = k0Var;
        if (th != null) {
            initCause(th);
        }
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof e0)) {
            return false;
        }
        e0 e0Var = (e0) obj;
        if (!P6.g.a(e0Var.getMessage(), getMessage())) {
            return false;
        }
        Object obj2 = e0Var.f7507q;
        if (obj2 == null) {
            obj2 = n0.f7533r;
        }
        Object obj3 = this.f7507q;
        if (obj3 == null) {
            obj3 = n0.f7533r;
        }
        return P6.g.a(obj2, obj3) && P6.g.a(e0Var.getCause(), getCause());
    }

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

    public final int hashCode() {
        String message = getMessage();
        P6.g.b(message);
        int iHashCode = message.hashCode() * 31;
        Object obj = this.f7507q;
        if (obj == null) {
            obj = n0.f7533r;
        }
        int iHashCode2 = (iHashCode + (obj != null ? obj.hashCode() : 0)) * 31;
        Throwable cause = getCause();
        return iHashCode2 + (cause != null ? cause.hashCode() : 0);
    }

    @Override // java.lang.Throwable
    public final String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append("; job=");
        Object obj = this.f7507q;
        if (obj == null) {
            obj = n0.f7533r;
        }
        sb.append(obj);
        return sb.toString();
    }
}
