← Docs
kotlin-stdlib / kotlin.coroutines.cancellation / CancellationException

CancellationException

Common
JVM
1.4
fun CancellationException (
message : String ? ,
cause : Throwable ?
) : CancellationException

(Common source) (JVM source)

Creates an instance of CancellationException with the given message and cause .

Common
JVM
1.4
fun CancellationException (
cause : Throwable ?
) : CancellationException

(Common source) (JVM source)

Creates an instance of CancellationException with the given cause .

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .