Exception Viewing

Is there a quick way to highlight an exception in a method signature to show which calls in the method throw that exception?

Thanks.

3 comments
Comment actions Permalink

Place the caret on the "throws" keyword and press Ctrl-Shift-F7 (Highlight usages in file).

0
Comment actions Permalink

That highlights where it's directly used in the file; for instance in the throws clause of other method signatures. I was hoping for it do something like the following.

public void myFirstMethod() throws MyException { mySecondMethod(); } public void mySecondMethod throws MyException { throw new MyException(); } ]]>

When highlighting MyException on the myFirstMethod signature it would highlight the call to "mySecondMethod();".

0
Comment actions Permalink

Please re-read my previous post carefully.
Place the caret on the THROWS clause before invoking "highlight usages in file".

See screenshot - isn't this what you want?



Attachment(s):
highlight.png
0

Please sign in to leave a comment.