freemarker.template.Configuration.setWrapUncheckedExceptions()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(246)

本文整理了Java中freemarker.template.Configuration.setWrapUncheckedExceptions()方法的一些代码示例,展示了Configuration.setWrapUncheckedExceptions()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.setWrapUncheckedExceptions()方法的具体详情如下:
包路径:freemarker.template.Configuration
类名称:Configuration
方法名:setWrapUncheckedExceptions

Configuration.setWrapUncheckedExceptions介绍

暂无

代码示例

代码示例来源:origin: org.freemarker/freemarker

/**
 * @since 2.3.27
 */
public void unsetWrapUncheckedExceptions() {
  if (wrapUncheckedExceptionsExplicitlySet) {
    setWrapUncheckedExceptions(getDefaultWrapUncheckedExceptions());
    wrapUncheckedExceptionsExplicitlySet = false;
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

/**
 * @since 2.3.27
 */
public void unsetWrapUncheckedExceptions() {
  if (wrapUncheckedExceptionsExplicitlySet) {
    setWrapUncheckedExceptions(getDefaultWrapUncheckedExceptions());
    wrapUncheckedExceptionsExplicitlySet = false;
  }
}

代码示例来源:origin: org.freemarker/freemarker-gae

/**
 * @since 2.3.27
 */
public void unsetWrapUncheckedExceptions() {
  if (wrapUncheckedExceptionsExplicitlySet) {
    setWrapUncheckedExceptions(getDefaultWrapUncheckedExceptions());
    wrapUncheckedExceptionsExplicitlySet = false;
  }
}

代码示例来源:origin: com.kloudtek.genesis/genesis-lib

public Template() {
  fmCfg = new Configuration(Configuration.VERSION_2_3_28);
  fmCfg.setDefaultEncoding("UTF-8");
  fmCfg.setLogTemplateExceptions(false);
  fmCfg.setWrapUncheckedExceptions(true);
}

代码示例来源:origin: salesforce/Argus

private static void init() {
  if ( cfg == null ) {
    cfg = new Configuration(Configuration.VERSION_2_3_28);
    cfg.setDefaultEncoding("UTF-8");
    cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
    cfg.setLogTemplateExceptions(false);
    cfg.setWrapUncheckedExceptions(true);
  }
}

代码示例来源:origin: com.salesforce.argus/argus-core

private static void init() {
  if ( cfg == null ) {
    cfg = new Configuration(Configuration.VERSION_2_3_28);
    cfg.setDefaultEncoding("UTF-8");
    cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
    cfg.setLogTemplateExceptions(false);
    cfg.setWrapUncheckedExceptions(true);
  }
}

代码示例来源:origin: MegaMek/megamek

private static Configuration createConfiguration() {
    final Configuration cfg = new Configuration(Configuration.getVersion());
    cfg.setClassForTemplateLoading(TemplateConfiguration.class, "/megamek/common/templates");
    cfg.setDefaultEncoding("UTF-8");
    cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
    cfg.setLogTemplateExceptions(false);
    cfg.setWrapUncheckedExceptions(true);
    return cfg;
  }
}

相关文章

Configuration类方法