when you declare a parameter as Object (or in this case Object[]) GWT  
would be forced to discover every possible serializable object in the  
classpath and make a serializer for it. This is particularly  
inefficient, so it is better to use a more specific subclass of Object.

-jason
On May 20, 2009, at 4:31 AM, abbu wrote:

>
> Thnxfor the reply. what do u mean by specific? can u explain it a lil
> bit clearly please? what wrong im doing in the above code? Can u give
> me an working example please
>
> On May 12, 11: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:ExceptionHandling
>>
>> Hi everybody,
>> I have a customexceptionclass which extendsException. 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 extendsException{
>>         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;
>>         }
>>
>> }- Hide quoted text -
>>
>> - Show quoted text -
> >


--~--~---------~--~----~------------~-------~--~----~
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