Well, that was a very smart suggestion !
So, what about creating this interface ?

- this interface could be called org.apache.struts.util.IAppException
- this interface would declare 2 methods: getError() and getProperty().
- this interface would be used by the default exception handler to recognize
exceptions that carry an ActionError.
- the AppException class would of course implement this interface.

I would also suggest that an Exception can carry more than one ActionError:
either an ActionErrors instance or an HashMap of ActionError instances ...
Then we could have one more method in the IAppException: getErrors()

Any idea about that ?
I can prepare a patch if someone is interested ...

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: vendredi 20 septembre 2002 16:27
> To: [EMAIL PROTECTED]
> Subject: DO NOT REPLY [Bug 12819] - org.apache.struts.util.AppException
> should have protected properties instead of private properties
>
>
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12819>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> INSERTED IN THE BUG DATABASE.
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12819
>
> org.apache.struts.util.AppException should have protected
> properties instead of private properties
>
>
>
>
>
> ------- Additional Comments From [EMAIL PROTECTED]  2002-09-20
> 14:26 -------
> Make private member protected and add constructor
> for arrays. This make it consistent with ActionMessage
> interface, and ActionError.
>
>                     I Smell an interface here :-) !!!
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


________________________________________________________________
Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


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

Reply via email to