mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
10 lines
248 B
Kotlin
Vendored
10 lines
248 B
Kotlin
Vendored
class MyException(message: String): Exception(message)
|
|
|
|
fun box(): String =
|
|
"O" +
|
|
try {
|
|
try { throw Exception("oops!") } catch (mye: MyException) { "1" }
|
|
}
|
|
catch (e: Exception) {
|
|
"K"
|
|
} |