Pacane
03/23/2020, 2:27 PMuse
keyword and also catch exceptions? Seems like the exception doesn't reach the caller of doSomething
override fun doSomething() {
sessionCreator.createSession().use(fun(session: SqlSession) {
// Some code
throw Exception("Test Exception")
})
}
spand
03/23/2020, 2:39 PMuse()
rethrows the exceptionPacane
03/23/2020, 2:39 PMPacane
03/23/2020, 2:39 PMRuckus
03/23/2020, 3:32 PMuse
is just a function, not a keyword.