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/ProtectBlock.java

    r1301 r1346  
    4545            String expression = attributes.getValue(ACCESS_ATTR); 
    4646            if (expression == null) 
    47                 throw new RuntimeException("protect instruction is missing required access attribute. Location: " 
     47                throw new TemplateException("protect instruction is missing required access attribute. Location: " 
    4848                        + getLocation()); 
    4949 
     
    5555            AccessDecider decider = context.getAccessDecider(); 
    5656            if (decider == null) 
    57                 throw new RuntimeException("protect instruction is used but no AccessDecider is provided."); 
     57                throw new TemplateException("protect instruction is used but no AccessDecider is provided."); 
    5858 
    5959            String accessString = (String) accessExpr.evaluate(context.getTemplateContext()); 
Note: See TracChangeset for help on using the changeset viewer.