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

    r1344 r1346  
    121121    } 
    122122 
     123    /** 
     124     * Returns null if name is not recognized. 
     125     */ 
    123126    public static Directive fromString(String name) { 
    124127        if (name.equals(FOREACH.tagName)) 
     
    163166            return TEXT; 
    164167        else 
    165             return null;// throw RuntimeException ? 
     168            return null; 
    166169    } 
    167170} 
Note: See TracChangeset for help on using the changeset viewer.