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
Replace "handle" with "tryHandle" for uncaught exceptions #3554
Draft
dkhalanskyjb
wants to merge
8
commits into
develop
Choose a base branch
from
tryHandleException
base: develop
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Dec 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 573001d - Browse repository at this point
Copy the full SHA 573001dView commit details -
Configuration menu - View commit details
-
Copy full SHA for df029ff - Browse repository at this point
Copy the full SHA df029ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30e1f02 - Browse repository at this point
Copy the full SHA 30e1f02View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbc50da - Browse repository at this point
Copy the full SHA fbc50daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c627da - Browse repository at this point
Copy the full SHA 7c627daView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4345c5 - Browse repository at this point
Copy the full SHA c4345c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7695863 - Browse repository at this point
Copy the full SHA 7695863View commit details -
Replace "handle" with "tryHandle" for uncaught exceptions
I find this to be a much clearer mental model. * A handler can decide if it can process this particular exception. * A handler can be in an invalid state, and it can now pass handling the uncaught exception to the system, without making additional noise. * Before this change, there are *two* types of exception handlers: - Those that are used as coroutine context elements. If a coroutine context element processes an exception successfully, the system is not notified about them. - Those that are used as services. These are just notified about exception, they are not considered to be consuming them. I guess this was done for the sake of Android's pre-handler. If we forget about backward compatibility, I'm certain this is the way to do it, but I don't see a good way to make this change while staying backward-compatible.
Configuration menu - View commit details
-
Copy full SHA for 223c578 - Browse repository at this point
Copy the full SHA 223c578View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.