discord-jadx/app/src/main/java/kotlinx/coroutines/JobCancellationException.java

50 lines
1.6 KiB
Java

package kotlinx.coroutines;
import d0.z.d.m;
import java.util.concurrent.CancellationException;
/* compiled from: Exceptions.kt */
public final class JobCancellationException extends CancellationException {
public final Job job;
public JobCancellationException(String str, Throwable th, Job job) {
super(str);
this.job = job;
if (th != null) {
initCause(th);
}
}
@Override // java.lang.Object
public boolean equals(Object obj) {
if (obj != this) {
if (obj instanceof JobCancellationException) {
JobCancellationException jobCancellationException = (JobCancellationException) obj;
if (!m.areEqual(jobCancellationException.getMessage(), getMessage()) || !m.areEqual(jobCancellationException.job, this.job) || !m.areEqual(jobCancellationException.getCause(), getCause())) {
}
}
return false;
}
return true;
}
@Override // java.lang.Throwable
public Throwable fillInStackTrace() {
setStackTrace(new StackTraceElement[0]);
return this;
}
@Override // java.lang.Object
public int hashCode() {
String message = getMessage();
m.checkNotNull(message);
int hashCode = (this.job.hashCode() + (message.hashCode() * 31)) * 31;
Throwable cause = getCause();
return hashCode + (cause != null ? cause.hashCode() : 0);
}
@Override // java.lang.Throwable, java.lang.Object
public String toString() {
return super.toString() + "; job=" + this.job;
}
}