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.

Common
JS
Native
1.4
open class CancellationException : IllegalStateException
JVM
1.4
typealias CancellationException = CancellationException

Functions

Common
JVM
1.4

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