title: Is it possible to find where a specific thrown exception could be caught in eclipse?
body: <p>I'm trying to trace a IO resource leak, where a connection is opened, but not necessarily closed: </p>
  
  <pre><code>try{ 
       ...
       urlConnection.connect();
       ...
       connectionResult.setResultInputStream(urlConnection.getInputStream());
       return connectionResult;
  
  } catch (IOException e) {
       throw new ValidationException(e, new LocationData(submissionURL.toExternalForm(), -1, -1));
  }
  </code></pre>
  
  <p>Is there a way I can find out where <code>ValidationException</code> will be caught through the call hierarchy? The manual steps are something like:</p>
  
  <ol>
  <li>Do call heirarchy of containing method</li>
  <li>For each caller:
  <ul>
  <li>Analyse surrounding code, finding try catch blocks</li>
  <li>If exception caught, evaluate stream closing</li>
  <li>If not, repeat 1.</li>
  </ul></li>
  </ol>
  
  <h3>Notes</h3>
  
  <ul>
  <li>This is not reproducible; only one customer has this issue in their failover environment - the product version is 5 years old, and has never shown issues like this before.</li>
  <li>I can find all cases where the exception is thrown; I want to find where this particular thrown exception could be <em>caught</em> (including <code>catch Exception</code> etc)</li>
  </ul>