cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r690220 - /cocoon/whiteboard/corona/trunk/corona-stringtemplate/src/main/java/org/apache/cocoon/corona/stringtemplate/StringTemplateGenerator.java
Date Fri, 29 Aug 2008 12:49:00 GMT
Author: reinhard
Date: Fri Aug 29 05:48:59 2008
New Revision: 690220

URL: http://svn.apache.org/viewvc?rev=690220&view=rev
Log:
don't throw a RuntimeException but an InvocationException which will be unwrapped by the InvocationImpl

Modified:
    cocoon/whiteboard/corona/trunk/corona-stringtemplate/src/main/java/org/apache/cocoon/corona/stringtemplate/StringTemplateGenerator.java

Modified: cocoon/whiteboard/corona/trunk/corona-stringtemplate/src/main/java/org/apache/cocoon/corona/stringtemplate/StringTemplateGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-stringtemplate/src/main/java/org/apache/cocoon/corona/stringtemplate/StringTemplateGenerator.java?rev=690220&r1=690219&r2=690220&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-stringtemplate/src/main/java/org/apache/cocoon/corona/stringtemplate/StringTemplateGenerator.java
(original)
+++ cocoon/whiteboard/corona/trunk/corona-stringtemplate/src/main/java/org/apache/cocoon/corona/stringtemplate/StringTemplateGenerator.java
Fri Aug 29 05:48:59 2008
@@ -33,6 +33,7 @@
 import org.apache.cocoon.corona.pipeline.component.Starter;
 import org.apache.cocoon.corona.pipeline.component.sax.AbstractXMLProducer;
 import org.apache.cocoon.corona.servlet.controller.ControllerContextHelper;
+import org.apache.cocoon.corona.sitemap.util.ExceptionHandler;
 import org.apache.commons.io.IOUtils;
 import org.apache.commons.lang.StringEscapeUtils;
 import org.xml.sax.InputSource;
@@ -109,7 +110,7 @@
 
             }
         } catch (Exception e) {
-            throw new RuntimeException(e);
+            throw ExceptionHandler.getInvocationException(e);
         }
     }
 



Mime
View raw message