Wraps any other exception thrown by {@link TemplateEngine} implementations. It extends fromjava.lang.RuntimeException because we don't want to have to throw the exception in every controller action that renders templates. Besides, an exception in a template is actually a runtime exception.
@author German Escobar
The FreeMarker classes usually use this exception and its descendants to signal FreeMarker specific exceptions.
@version $Id: TemplateException.java,v 1.26.2.1 2006/02/12 20:02:15 revusky Exp $
Provides a template exception class for use by the template service. This is used to wrap TemplateService exceptions and provide error diagnostics such as line and column where error occurred.
throw new TemplateException( TemplateException.CODE_infinite_recursion, path+" included "+count.intValue()+" times, max allowed: "+MAX_INCLUDE_COUNT );
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.