Answers for "kotlin try catch"

7

Kotlin try

try {
    // some code
}
catch (e: SomeException) {
    // handler
}
finally {
    // optional finally block
}
Posted by: Guest on May-09-2020
1

kotlin throw exception

throw Exception("Exception message")
Posted by: Guest on May-09-2020
0

kotlin try catch

try {  
    // some code  
}  
catch (e: SomeException) {  
    // handler  
}  
finally {  
    // optional finally block  
}
Posted by: Guest on February-10-2021

Browse Popular Code Answers by Language