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 7/9/15.
7
 */
8
public class RequestManagerException extends Exception implements IsSerializable {
9
	public enum ErrorCause implements IsSerializable {
10
		NOT_EXISTS, UNKNOWN;
11
	}
12

    
13
	private ErrorCause errorCause;
14

    
15
	public RequestManagerException(ErrorCause errorCause) {
16
		this.errorCause = errorCause;
17
	}
18

    
19
	public RequestManagerException() {
20
	}
21

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

    
26
	public void setErrorCause(ErrorCause errorCause) {
27
		this.errorCause = errorCause;
28
	}
29
}
(44-44/52)