You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by bluejoe2008 <bl...@gmail.com> on 2010/04/26 04:33:16 UTC
Re: Re: how to let #parse keep silent while any exception happened in theincluded file?
ok, maybe i should catch those exceptions in my methods
many thanks!
2010-04-26
bluejoe2008
发件人: Nathan Bubna
发送时间: 2010-04-26 02:08:55
收件人: Velocity Users List
抄送:
主题: Re: how to let #parse keep silent while any exception happened in theincluded file?
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 <bl...@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-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org