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

    r900 r1346  
    112112                } 
    113113            } catch (FileNotFoundException ex) { 
    114                 throw new RuntimeException("Error inserting XML from " + sourceLocation + ": " + ex); 
     114                throw new TemplateException("Error inserting XML from " + sourceLocation + ": " + ex); 
    115115            } catch (Exception ex) { 
    116                 throw new RuntimeException("Error parsing XML from " + sourceLocation + ": " + ex); 
     116                throw new TemplateException("Error parsing XML from " + sourceLocation + ": " + ex); 
    117117            } finally { 
    118118                if (source != null) { 
Note: See TracChangeset for help on using the changeset viewer.