JavaAlgorithms/data_structures/heaps/EmptyHeapException.java

19 lines
308 B
Java
Raw Normal View History

/**
*
*/
package heaps;
/**
* @author Nicolas Renard
* Exception to be thrown if the getElement method is used on an empty heap.
*
*/
@SuppressWarnings("serial")
public class EmptyHeapException extends Exception {
public EmptyHeapException(String message) {
super(message);
}
}