Reputation: 2445
In my java project I have a method, and would like to know how to find all usages of a specific Exception-class in the class call hierarchy.
Is it possible to have a method-scope-search (with call hierarchy)?
E.g since this wasn't that easy to understand.
FirstClass.method() call the following methods in two other classes; SecondClass.method() ThirdClass.method()
In both SecondClass and ThirdClass a "new SpecificException()" might be trown.
I'd like to know all places where this specific exception can been thrown, specifically relating to the FirstClass.method().
Upvotes: 3
Views: 1171
Reputation: 26532
It is possible, but only in the just released IntelliJ IDEA 16 EAP. Here's how:
This will show everywhere in the hierarchy the exception is created (new expressions).
Upvotes: 1