title: How do you create a method to throw an exception in java?
body: <p>My homework says we must follow these instructions to create the <code>throwException</code> method.</p>
  
  <p>throwException method</p>
  
  <ul>
  <li>Should take in an Exception object as its only parameter and return nothing</li>
  <li>Take that exception and throw it</li>
  </ul>
  
  <p>How do you create this method?</p>
  
  <p>What I have so far is:</p>
  
  <pre><code>public void throwException (Exception ex) throws Exception {
  }
  </code></pre>
  
  <p>is this correct?</p>