Skip to content

Commit 6c326e4

Browse files
authored
Do not mention service loading for CoroutineExceptionHandler as it is not meant to be a public mechanism (#3228)
1 parent f991742 commit 6c326e4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

docs/topics/exception-handling.md

-6
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ You cannot recover from the exception in the `CoroutineExceptionHandler`. The co
7575
with the corresponding exception when the handler is called. Normally, the handler is used to
7676
log the exception, show some kind of error message, terminate, and/or restart the application.
7777

78-
On JVM it is possible to redefine global exception handler for all coroutines by registering [CoroutineExceptionHandler] via
79-
[`ServiceLoader`](https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html).
80-
Global exception handler is similar to
81-
[`Thread.defaultUncaughtExceptionHandler`](https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#setDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler))
82-
which is used when no more specific handlers are registered.
83-
On Android, `uncaughtExceptionPreHandler` is installed as a global coroutine exception handler.
8478

8579
`CoroutineExceptionHandler` is invoked only on **uncaught** exceptions — exceptions that were not handled in any other way.
8680
In particular, all _children_ coroutines (coroutines created in the context of another [Job]) delegate handling of

0 commit comments

Comments
 (0)