title: Creating a customized Exception class
body: <p>I am creating a customized Exception class that extends IllegalArgument. When I call on it, to catch in the program, it doesn't work. Can someone please help and tell me what I'm doing wrong? </p>
  
  <pre><code>public class IllegalTemperatureException extends IllegalArgumentException {
      public IllegalTemperatureException() {
          super("Invalid Temperature!");
      }
  }
  </code></pre>