Untitled

 avatar
unknown
plain_text
2 years ago
588 B
9
Indexable
/**
 * BadVisitDateException.java
 * extends the Exception class
 * This class is a custom exception that is being used when the date (month, day or year)
 * provided is an invalid value
 * For months, it must be in ranges 1-12
 * For day, it must be in ranges 1-31
 * For year, it must be greater than 1900
 * @author 
 *
 */
public class BadVisitDateException extends Exception {

	//Constructor that takes in 1 argument
	public BadVisitDateException(String message) {
		//call the parent class Exception constructor, and pass in the message
		super(message);
	}

}
Editor is loading...