getCancellationException

fun getCancellationException(): CancellationException (source)

Overrides Job.getCancellationException

Always throws IllegalStateException.