Kotlin try
snippet in kotlin

Kotlin try

user4791

try {
    // some code
}
catch (e: SomeException) {
    // handler
}
finally {
    // optional finally block
}