package rpi.goldsd.container; /** * The DuplicateElementException class represents an exception that * should be thrown when a method fails due to the occurrence of a duplicate * element (typically brought on by a violation of a unique constraint). * * @see AssociativeContainer * @version 1.0, 3/16/98 * @author David Goldschmidt */ public class DuplicateElementException extends RuntimeException { /** * The default constructor simply calls the default constructor * of the parent class RuntimeException. */ public DuplicateElementException() { super(); } /** * This constructor calls the corresponding constructor of the * parent class RuntimeException with the given String * argument to be displayed. * @param s the String object to be displayed. */ public DuplicateElementException( String s ) { super( s ); } }