tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danny Coward <Danny.Cow...@eng.sun.com>
Subject Re: RequestDispatcher and exceptions
Date Tue, 06 Feb 2001 00:54:04 GMT

>Section 8.5 in 2.3 PFD says:
>"Only runtime exceptions and checked exceptions of type ServletException
>and IOException should be propagated ... if thrown by the target of
>RequestDispatcher. All other exceptions should be wrapped ... "
>
>My understanding of this is that NullPointerException should be
>propagated, not wrapped, same for security and any other RuntimeException.

Yes - and the same requirement is in the 2.2 version as well - that exceptions 
inheriting from RuntimeException should be popped up to the caller.

- Danny


Mime
View raw message