1 |
45049
|
panagiotis
|
package eu.dnetlib.goldoa.domain;
|
2 |
|
|
|
3 |
|
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
4 |
|
|
|
5 |
|
|
/**
|
6 |
|
|
* Created by antleb on 3/19/15.
|
7 |
|
|
*/
|
8 |
|
|
public class ManagerException extends Exception implements IsSerializable {
|
9 |
48519
|
panagiotis
|
|
10 |
|
|
|
11 |
45049
|
panagiotis
|
public enum ErrorCause implements IsSerializable {
|
12 |
|
|
NOT_EXISTS, UNKNOWN;
|
13 |
|
|
}
|
14 |
|
|
|
15 |
|
|
private ErrorCause errorCause;
|
16 |
|
|
|
17 |
48369
|
panagiotis
|
private String errorMessage;
|
18 |
|
|
|
19 |
45049
|
panagiotis
|
|
20 |
48369
|
panagiotis
|
public ManagerException(String errorMessage){
|
21 |
48519
|
panagiotis
|
super(errorMessage);
|
22 |
48369
|
panagiotis
|
this.errorMessage = errorMessage;
|
23 |
|
|
}
|
24 |
|
|
|
25 |
48519
|
panagiotis
|
public ManagerException() {
|
26 |
|
|
}
|
27 |
|
|
|
28 |
45049
|
panagiotis
|
public ManagerException(ErrorCause errorCause) {
|
29 |
|
|
this.errorCause = errorCause;
|
30 |
|
|
}
|
31 |
|
|
|
32 |
|
|
public ErrorCause getErrorCause() {
|
33 |
|
|
return errorCause;
|
34 |
|
|
}
|
35 |
|
|
|
36 |
48369
|
panagiotis
|
public String getErrorMessage(){
|
37 |
|
|
return errorMessage;
|
38 |
|
|
}
|
39 |
|
|
|
40 |
45049
|
panagiotis
|
public void setErrorCause(ErrorCause errorCause) {
|
41 |
|
|
this.errorCause = errorCause;
|
42 |
|
|
}
|
43 |
|
|
}
|