App default uncaught exception handler¶
AppCrashHandler is used to set the default handler invoked when a thread abruptly terminates due to an uncaught exception, and no other handler has been defined for that thread.
class App : Application() {
override fun onCreate() {
super.onCreate()
setDefaultUncaughtExceptionHandler { t, e, stackTraceInfo ->
...
}
}
}