/******************************* FILE HEADER ********************************** Main: Oops4.java, thrown by Date.java File: InvalidDateException.java Author: James D. Skrentny, skrentny@cs.wisc.edu copyright 2000 all rights reserved Course: CS 302: Lectures 1 & 2 Compiler: CodeWarrior IDE 4.0 (JDK 1.2) Platform: Windows NT 4.0 **************************** 80 columns wide *********************************/ /** * This class demonstrates how to make a simple exception class. * * BUGS: none known **/ class InvalidDateException extends RuntimeException { private int type; public InvalidDateException (int type) { this.type = type; } public int getType() { return this.type; } }