title: Throw and catch an exception, or use instanceof?
body: <p>I have an exception in a variable (not thrown).</p>
  
  <p>What's the best option?</p>
  
  <pre><code>Exception exception = someObj.getExcp();
  try {
      throw exception;
  } catch (ExceptionExample1 e) {
      e.getSomeCustomViolations();
  } catch (ExceptionExample2 e) {
      e.getSomeOtherCustomViolations(); 
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Exception exception = someObj.getExcp();
  if (exception instanceof ExceptionExample1) {
      exception.getSomeCustomViolations();
  } else if (exception instanceof ExceptionExample2) {
      exception.getSomeOtherCustomViolations();
  }
  </code></pre>