You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:03:56 UTC
[sling-org-apache-sling-scripting-java] 22/41: Don't wrap Sling
exception.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.scripting.java-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-java.git
commit dda6e2f43598bc66c5fa304b97bb3af62f0d7850
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Jul 7 07:47:30 2009 +0000
Don't wrap Sling exception.
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/scripting/java@791738 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/sling/scripting/java/ServletWrapper.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/apache/sling/scripting/java/ServletWrapper.java b/src/main/java/org/apache/sling/scripting/java/ServletWrapper.java
index a052c8b..9d0a59d 100644
--- a/src/main/java/org/apache/sling/scripting/java/ServletWrapper.java
+++ b/src/main/java/org/apache/sling/scripting/java/ServletWrapper.java
@@ -217,6 +217,8 @@ public class ServletWrapper {
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 @@ public class ServletWrapper {
response.sendError
(HttpServletResponse.SC_SERVICE_UNAVAILABLE,
ex.getMessage());
+ } catch (SlingException ex) {
+ throw ex;
} catch (ServletException ex) {
throw ex;
} catch (IOException ex) {
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.