geirm 01/03/19 10:06:07
Modified: docs developer-guide.html
Log:
follows xml
Revision Changes Path
1.40 +30 -0 jakarta-velocity/docs/developer-guide.html
Index: developer-guide.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/developer-guide.html,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- developer-guide.html 2001/03/19 17:52:31 1.39
+++ developer-guide.html 2001/03/19 18:06:06 1.40
@@ -1190,6 +1190,36 @@
the repeated drudge work, or allow you other options for your
template content other than template files.
</p>
+ <strong>Exceptions</strong>
+ <p>
+There are three exceptions that Velocity will throw during the parse / merge cycle.
+This are additional to the exceptions that will come from IO problems, etc.
+They are found in the package <code>org.apache.velocity.exception</code> and are :
+
+<ol>
+<li>
+<code>ResourceNotFoundException</code><br />
+Thrown when the resource managment system cannot find a resource (template) that
+was requested.
+</li>
+
+<li>
+<code>ParseErrorException</code><br />
+Thrown when a VTL syntax error is found when parsing a resource (template).
+</li>
+
+<li>
+<code>MethodInvocationException</code><br />
+Thrown when a method of object in the context thrown an exception during
+render time. This exception wraps the thrown exception and propogates it
+to the application. This allows you to handle problems in your own objects
+at runtime.
+</li>
+</ol>
+
+In each case, a message is put into the runtime log. For more information,
+see the Javadoc API documentation.
+</p>
<strong>Miscellaneous
Details</strong>
<p>
While the above example used the default properties, setting your own