/** * ElementNotFoundException represents the situation in which a target element * is not present in a collection * * @author Dr. Lewis * @author Dr. Chase * @version 1.0, 8/19/08 */ public class ElementNotFoundException extends RuntimeException { /** * Sets up this exception with an appropriate message. * * @param collection a custom message for the exception */ public ElementNotFoundException (String collection) { super ("The target element is not in this " + collection); } }