You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2008/08/29 14:48:37 UTC
svn commit: r690219 -
/cocoon/whiteboard/corona/trunk/corona-rest/src/main/java/org/apache/cocoon/corona/rest/controller/SpringRESTController.java
Author: reinhard
Date: Fri Aug 29 05:48:36 2008
New Revision: 690219
URL: http://svn.apache.org/viewvc?rev=690219&view=rev
Log:
don't throw a RuntimeException but an InvocationException which will be unwrapped by the InvocationImpl
Modified:
cocoon/whiteboard/corona/trunk/corona-rest/src/main/java/org/apache/cocoon/corona/rest/controller/SpringRESTController.java
Modified: cocoon/whiteboard/corona/trunk/corona-rest/src/main/java/org/apache/cocoon/corona/rest/controller/SpringRESTController.java
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-rest/src/main/java/org/apache/cocoon/corona/rest/controller/SpringRESTController.java?rev=690219&r1=690218&r2=690219&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-rest/src/main/java/org/apache/cocoon/corona/rest/controller/SpringRESTController.java (original)
+++ cocoon/whiteboard/corona/trunk/corona-rest/src/main/java/org/apache/cocoon/corona/rest/controller/SpringRESTController.java Fri Aug 29 05:48:36 2008
@@ -46,6 +46,7 @@
import org.apache.cocoon.corona.servlet.controller.ControllerContextHelper;
import org.apache.cocoon.corona.servlet.node.StatusCodeCollector;
import org.apache.cocoon.corona.servlet.util.HttpContextHelper;
+import org.apache.cocoon.corona.sitemap.util.ExceptionHandler;
import org.apache.commons.io.IOUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -98,7 +99,7 @@
URLConnectionUtils.closeQuietly(servletConnection);
}
} catch (Exception e) {
- throw new RuntimeException(e);
+ throw ExceptionHandler.getInvocationException(e);
}
}