final TemplateExceptionHandler teh = config.getTemplateExceptionHandler();
private static void copyConfig(Configuration source, Configuration target) { target.setNewBuiltinClassResolver(source.getNewBuiltinClassResolver()); target.setTemplateUpdateDelayMilliseconds(source.getTemplateUpdateDelayMilliseconds()); target.setDefaultEncoding(source.getDefaultEncoding()); target.setLocale(source.getLocale()); target.setBooleanFormat(source.getBooleanFormat()); target.setDateTimeFormat(source.getDateTimeFormat()); target.setDateFormat(source.getDateFormat()); target.setTimeFormat(source.getTimeFormat()); target.setNumberFormat(source.getNumberFormat()); target.setOutputFormat(source.getOutputFormat()); target.setURLEscapingCharset(source.getURLEscapingCharset()); target.setLazyAutoImports(source.getLazyAutoImports()); target.setTemplateExceptionHandler(source.getTemplateExceptionHandler()); }
private static void copyConfig(Configuration source, Configuration target) { target.setNewBuiltinClassResolver(source.getNewBuiltinClassResolver()); target.setTemplateUpdateDelayMilliseconds(source.getTemplateUpdateDelayMilliseconds()); target.setDefaultEncoding(source.getDefaultEncoding()); target.setLocale(source.getLocale()); target.setBooleanFormat(source.getBooleanFormat()); target.setDateTimeFormat(source.getDateTimeFormat()); target.setDateFormat(source.getDateFormat()); target.setTimeFormat(source.getTimeFormat()); target.setNumberFormat(source.getNumberFormat()); target.setOutputFormat(source.getOutputFormat()); target.setURLEscapingCharset(source.getURLEscapingCharset()); target.setLazyAutoImports(source.getLazyAutoImports()); target.setTemplateExceptionHandler(source.getTemplateExceptionHandler()); }
if ((configuration.getTemplateExceptionHandler() != freemarker.template.TemplateExceptionHandler.HTML_DEBUG_HANDLER) && (configuration.getTemplateExceptionHandler() != freemarker.template.TemplateExceptionHandler.DEBUG_HANDLER))
if (config.getTemplateExceptionHandler().getClass().getName().indexOf("Debug") != -1) { this.log("Error executing FreeMarker template", te); } else {
if (config.getTemplateExceptionHandler() .getClass().getName().indexOf("Debug") != -1) { this.log("Error executing FreeMarker template", te);
if (configuration.getTemplateExceptionHandler() == TemplateExceptionHandler.RETHROW_HANDLER || getBufferOutput()) { CharArrayWriter tempBuffer = new CharArrayWriter();
final TemplateExceptionHandler teh = config.getTemplateExceptionHandler();
final TemplateExceptionHandler teh = config.getTemplateExceptionHandler();