kotlin try catch extension code example
Example 1: Kotlin try
try {
// some code
}
catch (e: SomeException) {
// handler
}
finally {
// optional finally block
}
Example 2: kotlin try catch
try {
// some code
}
catch (e: SomeException) {
// handler
}
finally {
// optional finally block
}