title: AOP Exception Handling
body: <p>I see that Guice and Spring use AOP Alliance under the hood for method interceptions, and I've been trying to figure out how to get AOP Alliance to intercept and handle certain exceptions so I don't have to keep writing the same code over and over again inside every <code>catch</code> block.</p>
  
  <p>But after reviewing the play, it doesn't look like AOP Alliance provides any way to intercept thrown <code>Throwable</code>s in such a way that the handler/interceptor can do some things (log the exception, etc.) and then <strong>determine whether or not to propagate the exception any further or to just recover back to the next line following the line which threw the exception</strong>:</p>
  
  <pre><code>HerpDerp hd = null;
  
  if(hd == null)
      throw new RuntimeException("Herpyl derp!");
  
  Manny.pacquiao();
  </code></pre>
  
  <p>I'm looking for an AOP exception handling mechanism that would intercept the <code>RuntimeException</code> and use business logic to decide whether to keep propagating it or to recover back at the <code>Manny.pacquioa()</code> call.</p>
  
  <ul>
  <li>If it is just not possible to do this in Java, please let me know</li>
  <li>Regardless of whether or not its possible to do this in Java, is there a way to intercept thrown Exception with AOP Alliance or do I have to go somewhere else. And if I have to go somewhere else, where? AspectJ?</li>
  </ul>
  
  <p>Thanks!</p>