kotlin throw exception
throw Exception("Exception message")
try catch kotlin
try{
// wirte here somethin that you thought it would throw expection
}
catch(e:Expection){
e.printstacktrace()
// handle expection or write upper line of code
}
finally{
// this block is optional
// this will always run if expection come or not
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us