Subversion Repositories eFlore/Applications.del

Rev

Rev 14 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9 benjamin 1
package org.tela_botanica.del.client.exceptions;
2
 
3
import com.google.gwt.user.client.rpc.IsSerializable;
4
 
5
/**
6
 * An exception that can be displayed on the client side. It can receive an
7
 * exception from server and display the message in the client.
8
 *
9
 * @author Benjamin
10
 *
11
 */
14 benjamin 12
public class ExceptionClient extends Exception implements IsSerializable {
9 benjamin 13
 
14
	/**
15
	 *
16
	 */
17
	private static final long serialVersionUID = 636898773374000925L;
18
 
19
	private String clientMessage;
20
 
14 benjamin 21
	public ExceptionClient(String exceptionMessage) {
9 benjamin 22
		super();
23
		clientMessage = exceptionMessage;
24
	}
25
 
14 benjamin 26
	public ExceptionClient(Exception e) {
9 benjamin 27
		super(e);
28
		clientMessage = e.getMessage();
29
	}
30
 
14 benjamin 31
	public ExceptionClient() {
9 benjamin 32
	}
33
 
34
	public String getClientMessage() {
35
		return clientMessage;
36
	}
37
 
38
	public void setClientMessage(String clientMessage) {
39
		this.clientMessage = clientMessage;
40
	}
41
 
42
}