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
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
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.coroutines.cancellation/index.html