Re: How to extend AppException

2002-09-19 Thread Rob Leland

phpsurf wrote:
 Hi
 
 when looking at the default ExceptionHandler implementation, I saw that
 there was a special behaviour when handling
 org.apache.struts.util.AppException.
 
...
 But the problem is that its properties are private instead of protected, so
 it's quite difficult to add some features to the class ...

That sounds reasonable, to make them protected.

Go ahead and submit a bug request
http://nagoya.apache.org/bugzilla/enter_bug.cgi?product=Struts

-Rob


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




How to extend AppException

2002-09-18 Thread phpsurf

Hi

when looking at the default ExceptionHandler implementation, I saw that
there was a special behaviour when handling
org.apache.struts.util.AppException.

This allows to pass arguments to the Exception that will be used to build
the error message.

I would like to benefit from this in my project.
So my first idea was to have all my applicative Exceptions extend this
AppException.

But the problem is that its properties are private instead of protected, so
it's quite difficult to add some features to the class ...

Would this need a patch ?
Any idea ?



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]




How to extend AppException

2002-09-18 Thread phpsurf

Hi

when looking at the default ExceptionHandler implementation, I saw that
there was a special behaviour when handling
org.apache.struts.util.AppException.

This allows to pass arguments to the Exception that will be used to build
the error message.

I would like to benefit from this in my project.
So my first idea was to have all my applicative Exceptions extend this
AppException.

But the problem is that its properties are private instead of protected, so
it's quite difficult to add some features to the class ...

Would this need a patch ?
Any idea ?



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]