You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Daniel Dekany (JIRA)" <ji...@apache.org> on 2018/08/29 11:55:00 UTC
[jira] [Closed] (FREEMARKER-103) Allow configuration for template
exception handler in setSetting()
[ https://issues.apache.org/jira/browse/FREEMARKER-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dekany closed FREEMARKER-103.
------------------------------------
Resolution: Invalid
You can set it like that. Search for {{template_exception_handler}} on https://freemarker.apache.org/docs/api/freemarker/template/Configuration.html#setSetting-java.lang.String-java.lang.String-
> Allow configuration for template exception handler in setSetting()
> ------------------------------------------------------------------
>
> Key: FREEMARKER-103
> URL: https://issues.apache.org/jira/browse/FREEMARKER-103
> Project: Apache Freemarker
> Issue Type: New Feature
> Components: engine
> Affects Versions: 2.3.28
> Reporter: Igor Rogatty
> Priority: Minor
>
> When using dropwizard-views-freemarker, the only way to set Freemarker configuration is through [Configuration.setSetting()|https://github.com/apache/freemarker/blob/v2.3.28/src/main/java/freemarker/template/Configuration.java#L3195]. This method doesn't support [customizing the behavior regarding TemplateException|https://freemarker.apache.org/docs/pgui_config_errorhandling.html#autoid_4|https://freemarker.apache.org/docs/pgui_config_errorhandling.html#autoid_44]. There is a workaround described in the related [dropwizard issue|https://github.com/dropwizard/dropwizard/issues/2372#issuecomment-393889522] involving [attempt + recover|https://freemarker.apache.org/docs/ref_directive_attempt.html] but it would be great to have it supported natively.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)