package eu.dnetlib.goldoa.domain;

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

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

	public enum ErrorCause implements IsSerializable {
		ALREADY_EXISTS, NOT_EXISTS, WRONG_EMAIL_OR_PASSWORD, NOT_ACTIVATED, TOKEN_EXPIRED, EMAIL_ERROR;
	}

	private ErrorCause errorCause;

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

	public PersonManagerException() {
	}

	public ErrorCause getErrorCause() {
		return errorCause;
	}

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