mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
207 B
Kotlin
Vendored
11 lines
207 B
Kotlin
Vendored
suspend fun catchException(): String {
|
|
try {
|
|
return suspendWithException()
|
|
}
|
|
catch(e: Exception) {
|
|
return e.message!!
|
|
}
|
|
}
|
|
|
|
suspend fun suspendWithException(): String = TODO()
|