incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r791738 - /sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/ServletWrapper.java
Date Tue, 07 Jul 2009 07:47:30 GMT
Author: cziegeler
Date: Tue Jul  7 07:47:30 2009
New Revision: 791738

URL: http://svn.apache.org/viewvc?rev=791738&view=rev
Log:
Don't wrap Sling exception.

Modified:
    sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/ServletWrapper.java

Modified: sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/ServletWrapper.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/ServletWrapper.java?rev=791738&r1=791737&r2=791738&view=diff
==============================================================================
--- sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/ServletWrapper.java
(original)
+++ sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/ServletWrapper.java
Tue Jul  7 07:47:30 2009
@@ -217,6 +217,8 @@
                 logger.error("Java servlet source not found." +
                        ex.getMessage(), ex);
             }
+        } catch (SlingException ex) {
+            throw ex;
         } catch (ServletException ex) {
             throw ex;
         } catch (IOException ex) {
@@ -252,6 +254,8 @@
             response.sendError
                 (HttpServletResponse.SC_SERVICE_UNAVAILABLE,
                  ex.getMessage());
+        } catch (SlingException ex) {
+            throw ex;
         } catch (ServletException ex) {
             throw ex;
         } catch (IOException ex) {



Mime
View raw message