001    package data;
002    
003    /**
004     * Exception thrown when an attempt was made to add an item with a key that already existed in a container.
005     *
006     * @author Steffen Zschaler
007     * @version 2.0 18/08/1999
008     * @since v0.5
009     */
010    public class DuplicateKeyException extends RuntimeException {
011    
012        /**
013         * Create a new DuplicateKeyException.
014         */
015        public DuplicateKeyException() {
016            super();
017        }
018    
019        /**
020         * Create a new DuplicateKeyException with a detail message.
021         *
022         * @param sDetail the detail message.
023         */
024        public DuplicateKeyException(String sDetail) {
025            super(sDetail);
026        }
027    }