/* NoMoreElementsException
 * 
 * This exception is used by stack and queue classes
 * to indicate that a non-existant element was referenced.
 * There is really not much to this class, as we don't 
 * require more functionality than the superclass offers.
 */
 
public class NoMoreElementsException extends Exception
{
    /* Default (empty) constructor
     */
    public NoMoreElementsException ()
    {
	// Call the superclass (Exception) constructor
	super();
    }

    /* Another constructor which takes a String as an error message.
     * Recall from the chapter that adding this constructor is not
     * mandatory, but is good programming practice.
     */
    public NoMoreElementsException (String message)
    {
	// Simply pass this argument to the superclass constructor
	super(message);
    }
}

