Revision 39076
Added by Antonis Lempesis over 8 years ago
ManagerException.java | ||
---|---|---|
6 | 6 |
* Created by antleb on 3/19/15. |
7 | 7 |
*/ |
8 | 8 |
public class ManagerException extends Exception implements IsSerializable { |
9 |
public enum ErrorCause implements IsSerializable {
|
|
10 |
NOT_EXISTS, UNKNOWN;
|
|
11 |
}
|
|
9 |
public enum ErrorCause implements IsSerializable {
|
|
10 |
NOT_EXISTS, UNKNOWN;
|
|
11 |
}
|
|
12 | 12 |
|
13 |
private ErrorCause errorCause;
|
|
13 |
private ErrorCause errorCause;
|
|
14 | 14 |
|
15 |
public ManagerException() {
|
|
16 |
}
|
|
15 |
public ManagerException() {
|
|
16 |
}
|
|
17 | 17 |
|
18 |
public ManagerException(ErrorCause errorCause) {
|
|
19 |
this.errorCause = errorCause;
|
|
20 |
}
|
|
18 |
public ManagerException(ErrorCause errorCause) {
|
|
19 |
this.errorCause = errorCause;
|
|
20 |
}
|
|
21 | 21 |
|
22 |
public ErrorCause getErrorCause() {
|
|
23 |
return errorCause;
|
|
24 |
}
|
|
22 |
public ErrorCause getErrorCause() {
|
|
23 |
return errorCause;
|
|
24 |
}
|
|
25 | 25 |
|
26 |
public void setErrorCause(ErrorCause errorCause) {
|
|
27 |
this.errorCause = errorCause;
|
|
28 |
}
|
|
26 |
public void setErrorCause(ErrorCause errorCause) {
|
|
27 |
this.errorCause = errorCause;
|
|
28 |
}
|
|
29 | 29 |
} |
Also available in: Unified diff
reformatted code