// Arup Guha
// Originally created for CS 302, Spring 1999 semester at UW.
// Used to teach user created Exception classes.
/*** Edited in class to try some things out. ***/

public class FullAddressBookException extends Exception {

	// We added this.	
	private String myCopyOfS;

	public FullAddressBookException(String s) {
		super(s);

		// This is so I have access to the string in my class.
		// I couldn't brainstorm a way to access our inherited
		// instance variable.
		myCopyOfS = s;
	}
	
	// We could so something different here, but I also gave us access
	// to s. This is 100% horrible style, but it was fun.
	public String toString() {
		return "ha ha, I overrode you! but I can still use "+myCopyOfS;
	}
}
