Common CancellationException (#4265)

(cherry picked from commit 7e94cea06e9f87f74a79db30e672e3ca1d280860)
This commit is contained in:
Vsevolod Tolstopyatov
2020-07-02 02:49:43 -07:00
committed by Vasily Levchenko
parent 4f87c09451
commit 54917904ed
@@ -5,14 +5,11 @@
package kotlin.coroutines.cancellation
/**
* Thrown by cancellable suspending functions if the coroutine is cancelled while it is suspended.
* It indicates _normal_ cancellation of a coroutine.
*/
@ExperimentalStdlibApi
@SinceKotlin("1.4")
public open class CancellationException : IllegalStateException {
constructor() : super()
constructor(message: String?) : super(message)
public actual open class CancellationException : IllegalStateException {
actual constructor() : super()
actual constructor(message: String?) : super(message)
constructor(message: String?, cause: Throwable?) : super(message, cause)
constructor(cause: Throwable?) : super(cause)
}