Package kotlin.coroutines.cancellation
Exceptions
CancellationException
Thrown by cancellable suspending functions if the coroutine is cancelled while it is suspended. It indicates normal cancellation of a coroutine.
open class CancellationException : IllegalStateException
typealias CancellationException = CancellationException
Functions
CancellationException
Creates an instance of CancellationException with the given message and cause.
fun CancellationException(
message: String?,
cause: Throwable?
): CancellationException
Creates an instance of CancellationException with the given cause.
fun CancellationException(
cause: Throwable?
): CancellationException