1 package de.fhdw.wtf.persistence.exception;
2
3 import java.sql.SQLException;
4
5
6
7
8 public class DuplicateEntryException extends PersistenceException {
9
10
11
12 public static final int ERRORCODE = 20009;
13
14
15
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
26
27
28
29
30 public DuplicateEntryException(final SQLException nestedException) {
31 super(DUPLICATE_ENTRY_MESSAGE, nestedException);
32 }
33 }