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 * ID for serialization. 014 */ 015 private static final long serialVersionUID = -2566914536171847242L; 016 017 /** 018 * Create a new DuplicateKeyException. 019 */ 020 public DuplicateKeyException() { 021 super(); 022 } 023 024 /** 025 * Create a new DuplicateKeyException with a detail message. 026 * 027 * @param sDetail the detail message. 028 */ 029 public DuplicateKeyException(String sDetail) { 030 super(sDetail); 031 } 032 }