//: BadDateException.java

/** Simple Exception class for MyDates class
  * @author Mark Crocker <mcrocker@micron.net>
  * @author http://www.markcrocker.com/
  * @version 0.93
  */

package com.markcrocker.thoughtworks;

public class BadDateException extends Exception {

    private static String standardMessage = "Date out of range or malformed";


    /** Default exception method for BadDateException
      */
    public BadDateException() {
	super(standardMessage);
    }


    /** Message version of BadDateException method
      * @param msg Extra message to be provided along with the standard 
      *            BadDateException message.
      */
    public BadDateException(String msg) {
        super(standardMessage + "\n" + msg);
    }


} ///:~