Hi Borja,

> I would like to know if it's possible to catch the exceptions that are
> thrown from the template during the merging process. I know that
> whenever an exception takes place, a MethodInvocationException is
> thrown, but I would like to catch the exact exception that produced it,
> or at least to know which was(like java.lang.IndexOutOfBoundsException
> for example), so I can show a message easier to understand to the user
> that is working with the application.

You can use the event cartridge.
   
http://jakarta.apache.org/velocity/developer-guide.html#EventCartridge%20and%20Event%20Handlers

Best regards,
-- Shinobu

--
Shinobu "Kawai" Yoshida <[EMAIL PROTECTED]>

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

Reply via email to