Catching InvalidReferenceException

David Haraburda <[email protected]> Wed, 16 Jul 2014 14:56:04 -0500
Newsgroups gmane.comp.web.freemarker.devel
Message-ID <CAOKMbGeZyJrhiBMV6RJxvwdjG8tL5yW+6f-YhVeR5A-dE4NREw@mail.gmail.com>
I noticed that when InvalidReferenceException is thrown, it would
potentially be useful if the exception exposed the string of the invalid
expression directly as an attribute.  That way code that catches the
exception can say ex.getExpression() and use this to generate it's own
error message (i.e. internationalized) or do further processing.

Would a simple patch that allows this be accepted if I submitted one to the
project?  Or is there a better way to directly get at the offending
expression?

Thanks,

David

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds

_______________________________________________
FreeMarker-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-devel