package LinkedLists; /** * Exception class for use with interface Stack */ class QueueEmptyException extends Exception { /** * QueueEmptyException default constructor */ public QueueEmptyException() { super("Queue is emtpy"); } /** * QueueEmptyException constructor with message * @param s java.lang.String */ public QueueEmptyException(String s) { super(s); } }