1 package de.fhdw.wtf.persistence.exception;
2
3 import java.sql.SQLException;
4
5 /**
6 * Fehler falls ein Name bereits vergebn wurde.
7 */
8 public class NameAlreadyExistsException extends PersistenceException {
9
10 /**
11 *
12 */
13 private static final long serialVersionUID = 1L;
14 /**
15 * Error nummer of the Oracle UserException.
16 */
17 public static final int ERRORCODE = 20007;
18
19 /**
20 * Public Konstruktor zum setzen der Fehlernachicht.
21 *
22 * @param nested
23 * TODO
24 */
25 public NameAlreadyExistsException(final SQLException nested) {
26 super("Name already exists", nested);
27 }
28
29 }