You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Mark D. Anderson" <md...@discerning.com> on 2002/10/01 01:51:25 UTC

catching syntax and spelling errors

If there is a VTL syntax error such as:
   #esle
then an exception is thrown.

If there is an unbound symbol such as 
   $claendar
then there is an event and (by default) a log warning.

The same is true (I believe) if there is a reference to an unbound member:
  $calendar.FirstDayOfWeak

But if there is a spelling mistake in a method name:
  $calendar.getFirstDayOfWeak()
Then there is no warning, no event, no nothing.

It is hard to tell with a speed-read where that might be done, but looking at
     org/apache/velocity/runtime/parser/node/ASTMethod.java
it appears that a missing method circumstance is just dropped on the floor.

Or maybe I'm missing something.....

-mda


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>