Project

General

Profile

1
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 PersonManagerException extends Exception implements IsSerializable {
9

    
10
	public enum ErrorCause implements IsSerializable {
11
		ALREADY_EXISTS, NOT_EXISTS, WRONG_EMAIL_OR_PASSWORD, NOT_ACTIVATED, TOKEN_EXPIRED, EMAIL_ERROR;
12
	}
13

    
14
	private ErrorCause errorCause;
15

    
16
	public PersonManagerException(ErrorCause errorCause) {
17
		this.errorCause = errorCause;
18
	}
19

    
20
	public PersonManagerException() {
21
	}
22

    
23
	public ErrorCause getErrorCause() {
24
		return errorCause;
25
	}
26

    
27
	public void setErrorCause(ErrorCause errorCause) {
28
		this.errorCause = errorCause;
29
	}
30
}
(67-67/117)