1 package uk.ac.ebi.intenz.domain.exceptions;
2
3
4
5
6
7
8
9 public class DomainException extends Exception {
10
11 private static final long serialVersionUID = -6121194983313071023L;
12
13 String messageKey;
14 String property;
15
16 public DomainException() {
17 property = "";
18 }
19
20 public DomainException(String message) {
21 super(message);
22 this.property = "";
23 this.messageKey = "";
24 }
25
26 public DomainException(String property, String messageKey) {
27 super("");
28 this.property = property;
29 this.messageKey = messageKey;
30 }
31
32 public String getProperty() {
33 return property;
34 }
35
36 public void setProperty(String property) {
37 this.property = property;
38 }
39
40 public String getMessageKey() {
41 return messageKey;
42 }
43
44 public void setMessageKey(String messageKey) {
45 this.messageKey = messageKey;
46 }
47 }