Ignore:
Timestamp:
2009-07-02 15:06:52 (3 years ago)
Author:
bruno
Message:

Introduce a TemplateException? class, and use that in the template code instead of a generic RuntimeException?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/universe/kauri-template/src/main/java/org/kauriproject/template/SuperBlock.java

    r894 r1346  
    6666        public Step executeAndProceed(ExecutionContext context, TemplateResult result) throws SAXException { 
    6767            if (!context.isInherited()) { 
    68                 throw new RuntimeException( 
     68                throw new TemplateException( 
    6969                        "No template inheritance, so call to super block not possible, location " 
    7070                                + getLocation()); 
     
    7979                return chain.get(index + 1).getStartStep().getCompiledNext(); 
    8080            } else { 
    81                 throw new RuntimeException("Parent block not found for " + inheritanceBlock.getName() 
     81                throw new TemplateException("Parent block not found for " + inheritanceBlock.getName() 
    8282                        + ", location " + getLocation()); 
    8383            } 
Note: See TracChangeset for help on using the changeset viewer.