You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Joe Toth <jo...@gmail.com> on 2005/08/30 21:30:51 UTC
VelocityViewServlet - Can it throw errors instead of displaying?
I use the VelocityViewServlet and whenever I have something like a
nullpointerexception it looks like the servlet does not throw the error,
instead it catches it and displays
VelocityViewServlet : Error processing the template I wanted to know if
there is anyway to make it just throw the error, so the servlet container
can handle it? I want to just display a generic error message instead.
Thanks
Re: VelocityViewServlet - Can it throw errors instead of displaying?
Posted by Nathan Bubna <nb...@gmail.com>.
extend the VelocityViewServlet and override the error(...) method. :)
you can just wrap and rethrow the exceptions and errors.
On 8/30/05, Joe Toth <jo...@gmail.com> wrote:
> I use the VelocityViewServlet and whenever I have something like a
> nullpointerexception it looks like the servlet does not throw the error,
> instead it catches it and displays
> VelocityViewServlet : Error processing the template I wanted to know if
> there is anyway to make it just throw the error, so the servlet container
> can handle it? I want to just display a generic error message instead.
>
> Thanks
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org