73 lines
2.4 KiB
Java
73 lines
2.4 KiB
Java
|
package kotlinx.coroutines;
|
||
|
|
||
|
import java.util.concurrent.CancellationException;
|
||
|
import o.C14957gcv;
|
||
|
import o.C15045gfe;
|
||
|
import o.InterfaceC15002geR;
|
||
|
import o.InterfaceC15034gfD;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class JobCancellationException extends CancellationException implements InterfaceC15002geR<JobCancellationException> {
|
||
|
private transient InterfaceC15034gfD e;
|
||
|
|
||
|
public JobCancellationException(String str, Throwable th, InterfaceC15034gfD interfaceC15034gfD) {
|
||
|
super(str);
|
||
|
this.e = interfaceC15034gfD;
|
||
|
if (th != null) {
|
||
|
initCause(th);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Throwable
|
||
|
public final Throwable fillInStackTrace() {
|
||
|
if (C15045gfe.d()) {
|
||
|
return super.fillInStackTrace();
|
||
|
}
|
||
|
setStackTrace(new StackTraceElement[0]);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Throwable
|
||
|
public final String toString() {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(super.toString());
|
||
|
sb.append("; job=");
|
||
|
sb.append(this.e);
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
public final boolean equals(Object obj) {
|
||
|
if (obj != this) {
|
||
|
if (obj instanceof JobCancellationException) {
|
||
|
JobCancellationException jobCancellationException = (JobCancellationException) obj;
|
||
|
if (!C14957gcv.b((Object) jobCancellationException.getMessage(), (Object) getMessage()) || !C14957gcv.b(jobCancellationException.e, this.e) || !C14957gcv.b(jobCancellationException.getCause(), getCause())) {
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public final int hashCode() {
|
||
|
String message = getMessage();
|
||
|
C14957gcv.e(message);
|
||
|
int hashCode = message.hashCode();
|
||
|
int hashCode2 = this.e.hashCode();
|
||
|
Throwable cause = getCause();
|
||
|
return (((hashCode * 31) + hashCode2) * 31) + (cause != null ? cause.hashCode() : 0);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC15002geR
|
||
|
public final /* synthetic */ JobCancellationException a() {
|
||
|
JobCancellationException jobCancellationException;
|
||
|
if (C15045gfe.d()) {
|
||
|
String message = getMessage();
|
||
|
C14957gcv.e(message);
|
||
|
jobCancellationException = new JobCancellationException(message, this, this.e);
|
||
|
} else {
|
||
|
jobCancellationException = null;
|
||
|
}
|
||
|
return jobCancellationException;
|
||
|
}
|
||
|
}
|