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

    r966 r1346  
    179179            return Integer.parseInt(value); 
    180180        } catch (NumberFormatException e) { 
    181             throw new RuntimeException("Value \"" + value + "\" is not a valid integer, in forEach attribute " + what + " at " + startStep.getLocation()); 
     181            throw new TemplateException("Value \"" + value + "\" is not a valid integer, in forEach attribute " + what + " at " + startStep.getLocation()); 
    182182        } 
    183183    } 
Note: See TracChangeset for help on using the changeset viewer.