Hi everybody,
I have a custom exception class which extends Exception. But im not
able to use it in my entry point class. on the load itself its
throwing an error saying sub types are not serializable which is not
so. can anybody help me regarding this?

This is my custom ApplicationException class:

package com.cts.swiss.gwt.server.common.exception;

public class ApplicationException extends Exception {
        private String errorMessage;
        private Throwable throwable;
        private Object[] messageParams;

        public ApplicationException(String errorMessage, Object[] params){
                super(errorMessage);
                this.errorMessage=errorMessage;
                this.messageParams=params;
        }
        public ApplicationException(String errorMessage, Object[]
params,Throwable throwable){
                super(errorMessage,throwable);
                this.errorMessage=errorMessage;
                this.messageParams=params;
                this.throwable=throwable;
        }
        /**
         * @return the errorMessage
         */
        public String getErrorMessage() {
                return errorMessage;
        }

        /**
         * @return the throwable
         */
        public Throwable getThrowable() {
                return throwable;
        }

        /**
         * @return the messageParams
         */
        public Object[] getMessageParams() {
                return messageParams;
        }

}



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to