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

    r600 r1346  
    109109                    xmlHandler)) : new TransformerHandlerAdapter(xmlHandler); 
    110110        } catch (TransformerConfigurationException ex) { 
    111             throw new RuntimeException("Error creating serializer.", ex); 
     111            throw new TemplateException("Error creating serializer.", ex); 
    112112        } 
    113113    } 
     
    270270            return needsIt; 
    271271        } catch (Throwable t) { 
    272             throw new RuntimeException( 
     272            throw new TemplateException( 
    273273                    "Error while testing if we need to add namespace attributes before xml serialization", t); 
    274274        } 
Note: See TracChangeset for help on using the changeset viewer.