Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Tomcat Exception Handling =?= Web Tier Exception Handling

Yansheng Lin

2003-12-12

Replies:


Hi, I am having a bit of problem setting up my exception handling hierarchy. I
know you can use the error-page attribute in web.xml to handle system error.
But I read somewhere that one should always distance himself from system-level
exception handling when it comes to web applications.

   <error-page>
     <error-code>500</error-code>
     <location>serverError.jsp</location>
   </error-page>
   <error-page>
 
<exception-type>java.lang.NullPointerException</exception-type>
     <location>nullError.jsp</location>
   </error-page>

My question is, should I use tomcat exception handling mechanism, or should I
come up with my own exception handling framework? Maybe I should use both, but
I am not very keen on spending time on exceptions right now(need to get the
alpha release out as soon as possible)....
Any suggestions?

-Yan



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.