package eu.dnetlib.goldoa.domain;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Created by antleb on 3/4/15.
 */
public class OrganizationManagerException extends Exception implements IsSerializable {

	public enum ErrorCause implements IsSerializable {
		ALREADY_EXISTS, NOT_EXISTS, UNKNOWN;
	}

	private ErrorCause errorCause = ErrorCause.UNKNOWN;

	public OrganizationManagerException(ErrorCause errorCause) {
		this.errorCause = errorCause;
	}

	public OrganizationManagerException() {
	}

	public ErrorCause getErrorCause() {
		return errorCause;
	}

	public void setErrorCause(ErrorCause errorCause) {
		this.errorCause = errorCause;
	}
}
