Rev 9 | Rev 210 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
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 ExceptionClient extends Exception implements IsSerializable {
/**
*
*/
private static final long serialVersionUID = 636898773374000925L;
private String clientMessage;
public ExceptionClient(String exceptionMessage) {
super();
clientMessage = exceptionMessage;
}
public ExceptionClient(Exception e) {
super(e);
clientMessage = e.getMessage();
}
public ExceptionClient() {
}
public String getClientMessage() {
return clientMessage;
}
public void setClientMessage(String clientMessage) {
this.clientMessage = clientMessage;
}
}