The Algorithms logo
The Algorithms
À proposFaire un don

Empty Heap Exception

A
package com.thealgorithms.datastructures.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);
    }

    public EmptyHeapException(String message, Throwable cause) {
        super(message, cause);
    }
}