Actually, you should be able to create a MethodExceptionEventHandler and use
that to ignore any exceptions.

http://velocity.apache.org/engine/releases/velocity-1.6.2/apidocs/org/apache/velocity/app/event/MethodExceptionEventHandler.html

WILL

On Sun, Apr 25, 2010 at 11:08 AM, Nathan Bubna <nbu...@gmail.com> wrote:

> Have you seen this?
> http://wiki.apache.org/velocity/FeedTool
>
> Something like it should work for you.  If you use a tool like this,
> you can catch exceptions easily in the tool.  Catching exceptions in
> VTL is not allowed.
>
> On Sun, Apr 25, 2010 at 3:39 AM, bluejoe2008 <bluejoe2...@gmail.com>
> wrote:
> > hi, i have 2 questions
> >
> > the first is, how to let #parse keep silent while any exception happened
> in the included file?
> > my second question is: is there any way to catch exception in VTL? for
> example :
> >
> > #set($feed = $rssReader.getFeed("xxxxxx"))
> > rssReader.getFeed() will throw a MalformedURLException
> > how to catch such exception in VTL?
> >
> > best regards
> > bluejoe
> >
> > 2010-04-25
> >
> >
> >
> > bluejoe2008
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
> For additional commands, e-mail: user-h...@velocity.apache.org
>
>

Reply via email to