Skip to content

App default uncaught exception handler

Version 1.5.1

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 ->
            ...
        }
    }

}