Subversion Repositories eFlore/Applications.del

Rev

Go to most recent revision | Details | 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
 */
12
public class ClientException extends Exception implements IsSerializable {
13
 
14
	/**
15
	 *
16
	 */
17
	private static final long serialVersionUID = 636898773374000925L;
18
 
19
	private String clientMessage;
20
 
21
	public ClientException(String exceptionMessage) {
22
		super();
23
		clientMessage = exceptionMessage;
24
	}
25
 
26
	public ClientException(Exception e) {
27
		super(e);
28
		clientMessage = e.getMessage();
29
	}
30
 
31
	public ClientException() {
32
	}
33
 
34
	public String getClientMessage() {
35
		return clientMessage;
36
	}
37
 
38
	public void setClientMessage(String clientMessage) {
39
		this.clientMessage = clientMessage;
40
	}
41
 
42
}