CancellationException

open class CancellationException : IllegalStateException

Thrown by cancellable suspending functions if the coroutine is cancelled while it is suspended. It indicates normal cancellation of a coroutine.

Since Kotlin

1.4
open class CancellationException : IllegalStateException
open class CancellationException : IllegalStateException
typealias CancellationException = CancellationException

Constructors

CancellationException
Link copied to clipboard
JS
fun CancellationException(message: String?, cause: Throwable?)
CancellationException
Link copied to clipboard
Native
fun CancellationException(message: String?, cause: Throwable?)
CancellationException
Link copied to clipboard
JS
fun CancellationException(cause: Throwable?)
CancellationException
Link copied to clipboard
Native
fun CancellationException(cause: Throwable?)
CancellationException
Link copied to clipboard
fun CancellationException()
CancellationException
Link copied to clipboard
fun CancellationException(message: String?)
fun CancellationException(message: String?)
fun CancellationException(message: String?)

Properties

cause
Link copied to clipboard
Common
open val cause: Throwable?
cause
Link copied to clipboard
JS
open val cause: Throwable?
cause
Link copied to clipboard
Native
open val cause: Throwable?
message
Link copied to clipboard
Common
open val message: String?
message
Link copied to clipboard
JS
open val message: String?
message
Link copied to clipboard
Native
open val message: String?