velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr <>
Subject Re: MethodInvocationException line number?
Date Thu, 19 Feb 2004 18:53:59 GMT

On Feb 19, 2004, at 7:36 AM, Twan Kogels wrote:

> [SNIP]

> This displays a nice message when a exception occurs. The user which 
> has written the velocity template can then fix the problem.
> But sometimes a template calls many of the same functions, then a 
> message like "a error was found with function users.getUserById" is 
> not very usefull. The user has to check every getUserById function 
> call.
> Is there a way to report the line on which the 
> MethodInvocationException was thrown? If that is possible is can make 
> a clearer error message, for example: "a error was found with function 
> users.getUserById on line x". The user can then goto line x in 
> velocity template and fix the error.

Sure.  Done.  In CVS.  Build from CVS and see if it does what you want


Geir Magnusson Jr                                   203-247-1713(m)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message