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 <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to