Skip to content
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

View for tracing exception propogation routes #583

Open
trancexpress opened this issue Mar 17, 2023 · 1 comment
Open

View for tracing exception propogation routes #583

trancexpress opened this issue Mar 17, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@trancexpress
Copy link
Contributor

trancexpress commented Mar 17, 2023

See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=123948

it would be very neat to be able to select exceptions declared thrown in a methods signature, or particular exceptions thrown in the
method body, and have eclipse generate an upward tree of where these exceptions go.

The difference between this and call-hierarchy is that three different behaviours could be added in this context
i) when an exception is caught then the exception can't propogate upward further so this branch would end in the call-hierarchy view. (If some logic possibly rethrows the exception or wraps it, then i think its reasonable to have the user perform a second search to pursue its route further)
ii) when an exception is never caught, then the branch collapsed by default and marked visually as being a path that is uncaught
iii) as the intent of the user when asking for this is focussed on finding the places where the exception is not propogated any further (i.e. it is caught or interrupts its host thread) then automatically going as far as is reasonable in the search makes sense. In theory this could be prohibitively expensive but in my experience is most often not - maybe a preference could allow a maximum number of nodes in the call-tree before no further automatic pursuing of propogation paths is allowed.

@trancexpress trancexpress added the enhancement New feature or request label Mar 17, 2023
@stephan-herrmann
Copy link
Contributor

Shouldn't we move this (nice!) request to jdt.ui?

@trancexpress trancexpress transferred this issue from eclipse-jdt/eclipse.jdt.core May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants