Changeset 1346 for trunk/universe/kauri-template/src/main/java/org/kauriproject/template/ProtectBlock.java
- Timestamp:
- 2009-07-02 15:06:52 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/universe/kauri-template/src/main/java/org/kauriproject/template/ProtectBlock.java
r1301 r1346 45 45 String expression = attributes.getValue(ACCESS_ATTR); 46 46 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: " 48 48 + getLocation()); 49 49 … … 55 55 AccessDecider decider = context.getAccessDecider(); 56 56 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."); 58 58 59 59 String accessString = (String) accessExpr.evaluate(context.getTemplateContext());
Note: See TracChangeset
for help on using the changeset viewer.