rob42
12/20/2024, 12:50 PMThread.setDefaultUncaughtExceptionHandler
as the first thing I do in my main fun.
fun main(args: Array<String>) {
// Show a custom, better exception dialog
Thread.setDefaultUncaughtExceptionHandler { _, throwable ->
logTheExceptionAndQuit(throwable)
}
-- but some exceptions are not getting caught by this handler. The exceptions in question originate in another library (of mine), where there's no special exception handling.
Can anyone think why some exceptions might not reach this main handler?Sam
12/20/2024, 2:37 PM