https://kotlinlang.org logo
Title
e

Erik

11/10/2021, 9:18 AM
The coroutines guide about exception handling mentions (https://kotlinlang.org/docs/exception-handling.html#coroutineexceptionhandler):
On Android,
uncaughtExceptionPreHandler
is installed as a global coroutine exception handler.
Where can I find that handler, as I'm interested to learn more about it? I can't find it on GitHub: https://github.com/search?l=Kotlin&q=uncaughtExceptionPreHandler&type=Code. I also cannot find it in the Android source: https://duckduckgo.com/?q=uncaughtExceptionPreHandler+site%3Ahttps%3A%2F%2Fandroid.googlesource.com.
1
g

gildor

11/10/2021, 9:27 AM
It’s default exception handler on Android
just standard Thread.getUncaughtExceptionPreHandler()
s

streetsofboston

11/10/2021, 10:06 AM
I wrote a blog post about it and here's some shameless self promotion 😁 https://link.medium.com/kIhzia9g4kb
e

Erik

11/10/2021, 10:12 AM
:thank-you: all!