package kotlinx.coroutines;

import defpackage.C0522;
import defpackage.C0577;
import defpackage.InterfaceC3506;
import java.util.concurrent.CancellationException;

/* loaded from: classes3.dex */
public final class JobCancellationException extends CancellationException {

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final transient InterfaceC3506 f1144;

    public JobCancellationException(String str, Throwable th, C0577 c0577) {
        super(str);
        this.f1144 = c0577;
        if (th != null) {
            initCause(th);
        }
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof JobCancellationException)) {
            return false;
        }
        JobCancellationException jobCancellationException = (JobCancellationException) obj;
        if (!ᵲᵝᵪ.ᵹᵝᵶ(jobCancellationException.getMessage(), getMessage())) {
            return false;
        }
        Object obj2 = jobCancellationException.f1144;
        if (obj2 == null) {
            obj2 = C0522.f2702;
        }
        Object obj3 = this.f1144;
        if (obj3 == null) {
            obj3 = C0522.f2702;
        }
        return obj2.equals(obj3) && ᵲᵝᵪ.ᵹᵝᵶ(jobCancellationException.getCause(), getCause());
    }

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

    public final int hashCode() {
        int iHashCode = getMessage().hashCode() * 31;
        Object obj = this.f1144;
        if (obj == null) {
            obj = C0522.f2702;
        }
        int iHashCode2 = (obj.hashCode() + iHashCode) * 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.f1144;
        if (obj == null) {
            obj = C0522.f2702;
        }
        sb.append(obj);
        return sb.toString();
    }
}
