geirm       01/02/25 19:28:18

  Modified:    src/java/org/apache/velocity/runtime Runtime.java
  Log:
  Whoops. Forgot to have getTemplate() and getContent() throw Exception as well.
  
  Revision  Changes    Path
  1.87      +4 -3      
jakarta-velocity/src/java/org/apache/velocity/runtime/Runtime.java
  
  Index: Runtime.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/Runtime.java,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- Runtime.java      2001/02/26 03:05:45     1.86
  +++ Runtime.java      2001/02/26 03:28:17     1.87
  @@ -172,7 +172,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Jeff Bowden</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magusson Jr.</a>
  - * @version $Id: Runtime.java,v 1.86 2001/02/26 03:05:45 geirm Exp $
  + * @version $Id: Runtime.java,v 1.87 2001/02/26 03:28:17 geirm Exp $
    */
   public class Runtime implements RuntimeConstants
   {    
  @@ -637,9 +637,10 @@
        *          from any available source.
        * @throws ParseErrorException if template cannot be parsed due
        *          to syntax (or other) error.
  +     * @throws Exception if an error occurs in template initialization
        */
       public static Template getTemplate(String name)
  -        throws ResourceNotFoundException, ParseErrorException
  +        throws ResourceNotFoundException, ParseErrorException, Exception
       {
           return (Template) ResourceManager
               .getResource(name,ResourceManager.RESOURCE_TEMPLATE);
  @@ -655,7 +656,7 @@
        *          from any available source.
        */
       public static ContentResource getContent(String name)
  -        throws ResourceNotFoundException, ParseErrorException
  +        throws ResourceNotFoundException, ParseErrorException, Exception
       {
           return (ContentResource) ResourceManager
               .getResource(name,ResourceManager.RESOURCE_CONTENT);
  
  
  

Reply via email to