Changeset 1346 for trunk/universe/kauri-template/src/main/java/org/kauriproject/template/ImportBlock.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/ImportBlock.java
r1111 r1346 65 65 String expression = attributes.getValue(SRC); 66 66 if (expression == null) 67 throw new RuntimeException(SRC + " attribute is required on " + templateBlock.getSaxElement().getName());67 throw new TemplateException(SRC + " attribute is required on " + templateBlock.getSaxElement().getName()); 68 68 sourceExpression = elFacade.createExpression(expression, String.class); 69 69 String mode = attributes.getValue(MODE); … … 87 87 imported = templateService.buildTemplate(sourceLocation, context, context.isSilencing()); 88 88 } catch (Exception ex) { 89 throw new RuntimeException("Error parsing template included at location " + getLocation(), ex);89 throw new TemplateException("Error parsing template included at location " + getLocation(), ex); 90 90 } 91 91 … … 93 93 // detect recursion 94 94 if (old != null) { 95 throw new RuntimeException("KTL: recursion is not allowed in import, location "95 throw new TemplateException("KTL: recursion is not allowed in import, location " 96 96 + getLocation()); 97 97 }
Note: See TracChangeset
for help on using the changeset viewer.