// EmptyListException.java public class EmptyListException extends RuntimeException { // no-argument constructor public EmptyListException() { this( "List" ); } // end EmptyListException // one-argument constructor public EmptyListException( String name ) { super( name + " is empty " ); // call superclass constructor } // end EmptyListException one-argument constructor } // end EmptyListException