forked from JetBrains/kotlin-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kotlin.coroutines.cancellation.CancellationException to stdlib
- Loading branch information
1 parent
19317fa
commit bdac685
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
runtime/src/main/kotlin/kotlin/coroutines/CancellationException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license | ||
* that can be found in the LICENSE file. | ||
*/ | ||
|
||
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. | ||
*/ | ||
@SinceKotlin("1.4") | ||
public open class CancellationException : IllegalStateException { | ||
constructor() : super() | ||
constructor(message: String?) : super(message) | ||
constructor(message: String?, cause: Throwable?) : super(message, cause) | ||
constructor(cause: Throwable?) : super(cause) | ||
} |