velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seth Rosenblum" <srosenb...@wgen.net>
Subject quiet reference doesn't throw exception
Date Thu, 03 Jul 2008 22:20:19 GMT
I'm using the velocity engine with ParseErrorException throwing turned
on because it greatly simplifies unit testing, as it just checks that
every value on the page has been filled in.  However, I'd like velocity
to not throw an exception when I pass it a quiet reference e.g. $isNull
should throw an exception, but $!isNull should just resolve to being
empty.  Is there a way to do this?
 
Thanks,
    Seth Rosenblum

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message