public class JobCancellationException
Thrown by cancellable suspending functions if the interface Job of the coroutine is cancelled or completed
without cause, or with a cause or exception that is not CancellationException
(see Job.getCancellationException).
interface Job,
Job.getCancellationException| Constructor and Description |
|---|
JobCancellationException(java.lang.String message,
java.lang.Throwable cause,
Job job)
Thrown by cancellable suspending functions if the
interface Job of the coroutine is cancelled or completed
without cause, or with a cause or exception that is not CancellationException
(see Job.getCancellationException). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
Job |
getJob()
The job that was cancelled.
|
int |
hashCode() |
java.lang.String |
toString() |
public JobCancellationException(java.lang.String message,
java.lang.Throwable cause,
Job job)
Thrown by cancellable suspending functions if the interface Job of the coroutine is cancelled or completed
without cause, or with a cause or exception that is not CancellationException
(see Job.getCancellationException).
job - The job that was cancelled.interface Job,
Job.getCancellationExceptionpublic java.lang.String toString()
public boolean equals(java.lang.Object other)
public int hashCode()
public Job getJob()
The job that was cancelled.