Wow, you are right!!! 

I didn't think about that.

Thank you!!!

-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 5:19 PM
To: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]>
>Reply-To: "Struts Developers List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to