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