struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dario Geier" <Da...@sharedbook.com>
Subject RE: Action.Execute method signature
Date Tue, 25 Mar 2003 16:09:47 GMT
Wow, you are right!!! 

I didn't think about that.

Thank you!!!

-----Original Message-----
From: David Graham [mailto:dgraham1980@hotmail.com]
Sent: Tuesday, March 25, 2003 5:19 PM
To: struts-dev@jakarta.apache.org
Subject: Re: Action.Execute method signature


In your action subclass remove "throws Exception" from the signature and you 
will see the exceptions your code throws.  You can narrow the exception 
specification while subclassing but not widen it.

David



>From: "Dario Geier" <Dario@sharedbook.com>
>Reply-To: "Struts Developers List" <struts-dev@jakarta.apache.org>
>To: <struts-dev@jakarta.apache.org>
>Subject: Action.Execute method signature
>Date: Tue, 25 Mar 2003 16:25:10 +0200
>
>I noticed that the Execute method in the Action class throws 
>java.lang.Exception. I understand that this is done for supporting the 
>Declarative Exception Handling feature.
>Now, I am having a problem identifying all the possible exceptions that can 
>be thrown while processing the action, as the compiler won't tell me about 
>them.
>
>Is there any way to overcome this?
>How do you recommend to work after the perform (deprecated) method will 
>desapear?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-dev-help@jakarta.apache.org
>


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message