title: Is it possible in Java to catch two exceptions in the same catch block?
body: <p>I need to catch two exceptions because they require the same handling logic. I would like to do something like:</p>
  
  <pre><code>catch (Exception e, ExtendsRuntimeException re) {
      // common logic to handle both exceptions
  }
  </code></pre>
  
  <p>Is it possible to avoid duplicating the handler code in each catch block?</p>