Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 8 → Rev 9

/src/org/tela_botanica/del/client/exceptions/ClientException.java
New file
0,0 → 1,42
package org.tela_botanica.del.client.exceptions;
 
import com.google.gwt.user.client.rpc.IsSerializable;
 
/**
* An exception that can be displayed on the client side. It can receive an
* exception from server and display the message in the client.
*
* @author Benjamin
*
*/
public class ClientException extends Exception implements IsSerializable {
 
/**
*
*/
private static final long serialVersionUID = 636898773374000925L;
 
private String clientMessage;
 
public ClientException(String exceptionMessage) {
super();
clientMessage = exceptionMessage;
}
 
public ClientException(Exception e) {
super(e);
clientMessage = e.getMessage();
}
 
public ClientException() {
}
 
public String getClientMessage() {
return clientMessage;
}
 
public void setClientMessage(String clientMessage) {
this.clientMessage = clientMessage;
}
 
}