Project

General

Profile

1 35043 antonis.le
package eu.dnetlib.goldoa.domain;
2
3
import java.io.Serializable;
4
5
/**
6
 * Created by antleb on 3/4/15.
7
 */
8
public class OrganizationManagerException extends Exception {
9
10
	public enum ErrorCause implements Serializable {
11 35185 antonis.le
		ALREADY_EXISTS, NOT_EXISTS , UNKNOWN;
12 35043 antonis.le
	}
13
14 35156 antonis.le
	private ErrorCause errorCause = ErrorCause.UNKNOWN;
15 35043 antonis.le
16
	public OrganizationManagerException(ErrorCause errorCause) {
17
		this.errorCause = errorCause;
18
	}
19
20 35049 antonis.le
	public OrganizationManagerException() {
21
	}
22
23 35043 antonis.le
	public ErrorCause getErrorCause() {
24
		return errorCause;
25
	}
26 35049 antonis.le
27
	public void setErrorCause(ErrorCause errorCause) {
28
		this.errorCause = errorCause;
29
	}
30 35043 antonis.le
}