You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2021/04/28 07:38:17 UTC

[freemarker] branch 2.3-gae updated: fix typo 'TemplatException' to 'TemplateException'

This is an automated email from the ASF dual-hosted git repository.

ddekany pushed a commit to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git


The following commit(s) were added to refs/heads/2.3-gae by this push:
     new a3b88c1  fix typo 'TemplatException' to 'TemplateException'
     new 0cfab23  Merge pull request #75 from ILyaCyclone/2.3-gae
a3b88c1 is described below

commit a3b88c1ba72230d4d28803f4a730b529b189a9b4
Author: ILya Cyclone <il...@gmail.com>
AuthorDate: Tue Apr 27 21:06:29 2021 +0300

    fix typo 'TemplatException' to 'TemplateException'
---
 src/manual/en_US/book.xml | 10 +++++-----
 src/manual/zh_CN/book.xml |  8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/manual/en_US/book.xml b/src/manual/en_US/book.xml
index da60e43..49d3f03 100644
--- a/src/manual/en_US/book.xml
+++ b/src/manual/en_US/book.xml
@@ -8950,15 +8950,15 @@ cfg.setTemplateLoader(mtl);</programlisting>
                 </listitem>
 
                 <listitem>
-                  <para><literal>freemarker.template.TemplatException</literal>
+                  <para><literal>freemarker.template.TemplateException</literal>
                   because other problem occurred while executing the template.
                   For example, a frequent error is referring to a variable
                   that doesn't exist in the data-model. By default, when a
-                  <literal>TemplatException</literal> occurs, FreeMarker
+                  <literal>TemplateException</literal> occurs, FreeMarker
                   prints the FTL error message and the stack trace to the
                   output writer with plain text format, and then aborts the
                   template execution by re-throwing the
-                  <literal>TemplatException</literal>, which then you can
+                  <literal>TemplateException</literal>, which then you can
                   catch as
                   <literal>Template.process(<replaceable>...</replaceable>)</literal>
                   throws it. This behavior can be customized, and in fact, it
@@ -8966,7 +8966,7 @@ cfg.setTemplateLoader(mtl);</programlisting>
                   linkend="pgui_quickstart_createconfiguration">here</link>.
                   By default FreeMarker also <link
                   linkend="pgui_misc_logging">logs</link>
-                  <literal>TemplatException</literal>-s.</para>
+                  <literal>TemplateException</literal>-s.</para>
                 </listitem>
               </itemizedlist>
             </listitem>
@@ -8974,7 +8974,7 @@ cfg.setTemplateLoader(mtl);</programlisting>
         </section>
 
         <section>
-          <title>Customizing the behavior regarding TemplatException-s</title>
+          <title>Customizing the behavior regarding TemplateException-s</title>
 
           <para><literal>TemplateException</literal>-s thrown during the
           template processing are handled by the
diff --git a/src/manual/zh_CN/book.xml b/src/manual/zh_CN/book.xml
index 91ece16..81ef7fb 100644
--- a/src/manual/zh_CN/book.xml
+++ b/src/manual/zh_CN/book.xml
@@ -6922,14 +6922,14 @@ cfg.setTemplateLoader(mtl);</programlisting>
 
                 <listitem>
                   <para>当执行模板时发生的其它问题而导致的 
-				  <literal>freemarker.template.TemplatException</literal> 异常。
+				  <literal>freemarker.template.TemplateException</literal> 异常。
 				  比如,一个频繁发生的错误,就是当模板引用一个不存在的变量。
-				  默认情况下,当 <literal>TemplatException</literal> 异常发生时,
+				  默认情况下,当 <literal>TemplateException</literal> 异常发生时,
 				  FreeMarker会用普通文本格式在输出中打印出FTL的错误信息和堆栈跟踪信息,
-				  然后再次抛出 <literal>TemplatException</literal> 异常而中止模板的执行,
+				  然后再次抛出 <literal>TemplateException</literal> 异常而中止模板的执行,
 				  就可以捕捉到 <literal>Template.process(<replaceable>...</replaceable>)</literal> 
 				  方法抛出的异常了。而这种行为是可以定制的。FreeMarker也会经常写 
-				  <literal>TemplatException</literal> 异常的 
+				  <literal>TemplateException</literal> 异常的 
 				  <link linkend="pgui_misc_logging">日志</link>。</para>
                 </listitem>
               </itemizedlist>