Subversion Repositories eFlore/Applications.del

Rev

Rev 14 | 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 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;
        }

}