-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Improve docs for CoroutineExceptionHandler #1886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
kotlinx-coroutines-core/common/src/CoroutineExceptionHandler.kt
Outdated
Show resolved
Hide resolved
Co-Authored-By: EdwarDDay <[email protected]>
* Consistent terminology on "uncaught exceptions". * Clarified special relations of exception handling with supervision. * Clearer text in CoroutineExceptionHandler examples. * Minor stylistic corrections. Fixes #871
Another go. Also fixes #871 |
I've read through these docs again, I couldn't find any statement about catching We have statements like
Lacking an explicit statement about the catch-blocks, the user can be easily misled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
I'm not sure where would be the right place (one that users will notice) to add additional details on cancellation exception. It does not seem related to the docs for |
* Further clarifications and better style for exception handling * Consistent terminology on "uncaught exceptions". * Clarified special relations of exception handling with supervision. * Clearer text in CoroutineExceptionHandler examples. * Minor stylistic corrections. Fixes #1746 Fixes #871 Co-Authored-By: EdwarDDay <[email protected]>
* Further clarifications and better style for exception handling * Consistent terminology on "uncaught exceptions". * Clarified special relations of exception handling with supervision. * Clearer text in CoroutineExceptionHandler examples. * Minor stylistic corrections. Fixes Kotlin#1746 Fixes Kotlin#871 Co-Authored-By: EdwarDDay <[email protected]>
Fixes #1746