freemarker工具类,将FreemarkerException转为RuntimeException类型的FreemarkerTemplateException