AppCrashHandler

App global exception handling.

Here is a usage example:

// App.kt
class App : Application() {

private val mLogger = ...

override fun onCreate() {
super.onCreate()
...
setDefaultUncaughtExceptionHandler { t, e, stackTraceInfo ->
mLogger.e(stackTraceInfo)
}
}

}

Since

1.4.1

Constructors

Link copied to clipboard
private constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
override fun uncaughtException(t: Thread, e: Throwable)
open fun uncaughtException(thread: Thread, throwable: Throwable, stackTraceInfo: String)