title: How to use "throws IllegalArgumentException" in method declaration
body: <p>How do you write a method that has "throws IllegalArgumentEception" in the method declaration. Such like this one: If I were to only return d if d>0 otherwise throw an <code>IllegalArgumentException</code>, how would I do that? Do you use <code>try{}</code> and <code>catch{}</code> ?</p>
  
  <pre><code>public double getPrice(double d) throws IllegalArgumentException {
  
  }
  </code></pre>