And don't forget the default no-args constructor in your serializable
classes, it's needed for GWT serialization.

Cheers,

Salvador

On May 12, 8:30 am, "Paul Grenyer" <paul.gren...@gmail.com> wrote:
> IIRC GWT doesn't like serializing Object. You need to use something more 
> specific.
>
> Sent from my BlackBerry® wireless device
>
> -----Original Message-----
> From: abbu <minhaj.mis...@gmail.com>
>
> Date: Mon, 11 May 2009 23:06:20
> To: Google Web Toolkit<Google-Web-Toolkit@googlegroups.com>
> Subject: Exception Handling
>
> 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 Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to