/** * Runtime exception thrown when one tries to perform operation top or * pop on an empty stack. */ public class StackEmptyException extends RuntimeException { public StackEmptyException(String err) { super(err); } }