View Javadoc
1   package de.fhdw.wtf.persistence.exception;
2   
3   import java.sql.SQLException;
4   
5   /**
6    * Der Eintrag existiert bereits.
7    */
8   public class DuplicateEntryException extends PersistenceException {
9   	/**
10  	 * Error nummer of the Oracle UserException.
11  	 */
12  	public static final int ERRORCODE = 20009;
13  	
14  	/**
15  	 * the message of the exception.
16  	 */
17  	private static final String DUPLICATE_ENTRY_MESSAGE = "The entry already exists";
18  	
19  	/**
20  	 * 
21  	 */
22  	private static final long serialVersionUID = 1L;
23  	
24  	/**
25  	 * Konstruktor der die entsprechende Fehlermeldung zur�ckgibt.
26  	 * 
27  	 * @param nestedException
28  	 *            TODO
29  	 */
30  	public DuplicateEntryException(final SQLException nestedException) {
31  		super(DUPLICATE_ENTRY_MESSAGE, nestedException);
32  	}
33  }