Feature Request: Walk up Exception Catch Tree

I would like to see a feature implemented that would allow me to select a piece of code that is throwing an exception and have IntelliJ navigate me up the tree to where that exception gets caught. If this always happened at the caller level, I wouldn't care but sometimes exceptions can get passed up a ways before something is done about them and this would make it a lot easier to see what kind of error processing is being done for a given exception. When I do code reviews, this is one of the procedures I have to go through and it's a royal pain in the ass because there's no easy way to do it.

I'd be interested to hear other people's ideas about how this might be intersted as well. Oh, and if this feature already exists but has somehow eluded me, please clue me in. Thanks.

6 comments
Comment actions Permalink

Marc Stock wrote:

I would like to see a feature implemented that would allow me to select a piece of code that is throwing an exception and have IntelliJ navigate me up the tree to where that exception gets caught. If this always happened at the caller level, I wouldn't care but sometimes exceptions can get passed up a ways before something is done about them and this would make it a lot easier to see what kind of error processing is being done for a given exception. When I do code reviews, this is one of the procedures I have to go through and it's a royal pain in the ass because there's no easy way to do it.

I'd be interested to hear other people's ideas about how this might be intersted as well. Oh, and if this feature already exists but has somehow eluded me, please clue me in. Thanks.



+1
Karol

0
Comment actions Permalink

In article <d0laql$mnj$1@is.intellij.net>,
Karol <psycholusus_no_spam@gazeta.pl> wrote:

Marc Stock wrote:

I would like to see a feature implemented that would allow me to select a
piece of code that is throwing an exception and have IntelliJ navigate me
up the tree to where that exception gets caught. If this always happened
at the caller level, I wouldn't care but sometimes exceptions can get
passed up a ways before something is done about them and this would make it
a lot easier to see what kind of error processing is being done for a given
exception. When I do code reviews, this is one of the procedures I have to
go through and it's a royal pain in the ass because there's no easy way to
do it.


Indeed, I have the same issue here for the same reason, but sometimes
also because I want to just evaluate and cleanup exception handling, and
IDEA can sure help me to that better.


I'd be interested to hear other people's ideas about how this might be
intersted as well. Oh, and if this feature already exists but has somehow
eluded me, please clue me in. Thanks.


+1
Karol

0
Comment actions Permalink

Create a feature request and I'll vote for it! I'd like that feature aswell. (I wouldn't be surprised to find out that such a feature already exists though).

0
Comment actions Permalink

It was actually already implemented (Alt+F7 with caret on throw keyword)
but seem to be broken in latest build.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

I would like to see a feature implemented that would allow me to
select a piece of code that is throwing an exception and have IntelliJ
navigate me up the tree to where that exception gets caught. If this
always happened at the caller level, I wouldn't care but sometimes
exceptions can get passed up a ways before something is done about
them and this would make it a lot easier to see what kind of error
processing is being done for a given exception. When I do code
reviews, this is one of the procedures I have to go through and it's a
royal pain in the ass because there's no easy way to do it.

I'd be interested to hear other people's ideas about how this might be
intersted as well. Oh, and if this feature already exists but has
somehow eluded me, please clue me in. Thanks.




0
Comment actions Permalink

Fixed.

"Maxim Shafirov" <max@jetbrains.com> wrote in message
news:c8a8a1bf5ef68c6f2d047e1ae48@news.jetbrains.com...

It was actually already implemented (Alt+F7 with caret on throw keyword)
but seem to be broken in latest build.

>

-------------------
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

>

I would like to see a feature implemented that would allow me to
select a piece of code that is throwing an exception and have IntelliJ
navigate me up the tree to where that exception gets caught. If this
always happened at the caller level, I wouldn't care but sometimes
exceptions can get passed up a ways before something is done about
them and this would make it a lot easier to see what kind of error
processing is being done for a given exception. When I do code
reviews, this is one of the procedures I have to go through and it's a
royal pain in the ass because there's no easy way to do it.

>

I'd be interested to hear other people's ideas about how this might be
intersted as well. Oh, and if this feature already exists but has
somehow eluded me, please clue me in. Thanks.

>

>
>
>


0
Comment actions Permalink

Woot! Thanks guys :)

0

Please sign in to leave a comment.