Project

General

Profile

1 45968 panagiotis
package eu.dnetlib.goldoa.domain;
2
3
import com.google.gwt.user.client.rpc.IsSerializable;
4
5
/**
6
 * Created by antleb on 3/4/15.
7
 */
8
public class OrganizationManagerException extends Exception implements IsSerializable {
9
10
	public enum ErrorCause implements IsSerializable {
11
		ALREADY_EXISTS, NOT_EXISTS, UNKNOWN;
12
	}
13
14
	private ErrorCause errorCause = ErrorCause.UNKNOWN;
15
16
	public OrganizationManagerException(ErrorCause errorCause) {
17
		this.errorCause = errorCause;
18
	}
19
20
	public OrganizationManagerException() {
21
	}
22
23
	public ErrorCause getErrorCause() {
24
		return errorCause;
25
	}
26
27
	public void setErrorCause(ErrorCause errorCause) {
28
		this.errorCause = errorCause;
29
	}
30
}