that won't catch exceptions.  you need to use an event handler,
particularly the MethodExceptionEventHandler.

On Wed, Sep 10, 2008 at 11:44 PM, Manish <[EMAIL PROTECTED]> wrote:
> use this -
>
> my name is: $!o.foo()
>
> rgds,
> - Manish
>
> ----- Original Message ----- From: "bluejoe" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, September 11, 2008 12:09 PM
> Subject: question on Velocity: How to let Velocity keep silent when some
> exceptions occur?
>
>
>>  Hi, I am a user of Velocity, now I have a question: How to let Velocity
>> keep silent when some exceptions occur?
>>
>>  For example, I wrote codes:
>>
>>   my name is: $o.foo()
>>
>>  In some cases, foo() may throw some exceptions, like NullException, etc.
>> It seems that Velocity will throw these exceptions too. But I want Velocity
>> to regard the statement as:
>>
>>   my name is: <empty>
>>
>>  Is there any way to let Velocity ignore the errors?
>>
>> Sincerely Yours,
>> bluejoe
>> 2008-9-11
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to