You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alex Shneyderman <al...@law.columbia.edu> on 2003/09/24 02:30:48 UTC
Is there a nice ExceptionHandler mechanism in struts for Throwable?
I have looked at ExceptionHnadlers and find them pretty nifty.
Is there a way to do similar thingy with Throwables?
I tried to set ExceptionHandler to catch (type attribute)
Java.lang.Throwable but it does not work and I get the ugly
ServletException as my page to the user?
Thanks,
Alex.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Is there a nice ExceptionHandler mechanism in struts for Throwable?
Posted by "Craig R. McClanahan" <cr...@apache.org>.
Alex Shneyderman wrote:
>I have looked at ExceptionHnadlers and find them pretty nifty.
>Is there a way to do similar thingy with Throwables?
>
>I tried to set ExceptionHandler to catch (type attribute)
>Java.lang.Throwable but it does not work and I get the ugly
>ServletException as my page to the user?
>
>
Although it would have been possible to design the existing mechanism to
support Throwables, it's generally considered bad form to try to deal
with them -- after all, it's things like OutOfMemoryError and the like,
and it is not normally something a webapp can recover from. Are there
particular Throwables that are not Exceptions that you are interested in
dealing with yourself?
>Thanks,
>Alex.
>
Craig
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org