001    package org.hackystat.utilities.time.interval;
002    
003    /**
004     * Throws exception when end period of the interval is earlier than the start
005     * interval period.
006     * 
007     * @author Hongbing Kou
008     * @version $Id: IllegalIntervalException.java,v 1.1.1.1 2005/10/20 23:56:40 johnson Exp $
009     */
010    @SuppressWarnings("serial")
011    public class IllegalIntervalException extends Exception {
012      /**
013       * Thrown when selected interval is not valid.
014       *
015       * @param detailMessage A message describing the problem.
016       * @param previousException A possibly null reference to a prior exception.
017       */
018      public IllegalIntervalException(String detailMessage, Throwable previousException) {
019        super(detailMessage, previousException);
020      }
021    
022    
023      /**
024       * Thrown when selected interval is not valid.
025       *
026       * @param detailMessage A message describing the problem.
027       */
028      public IllegalIntervalException(String detailMessage) {
029        super(detailMessage, null);
030      }
031    }