ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1416886 - /ace/trunk/org.apache.ace.deployment.servlet/src/org/apache/ace/deployment/servlet/DeploymentServlet.java
Date Tue, 04 Dec 2012 11:10:16 GMT
Author: marrs
Date: Tue Dec  4 11:10:14 2012
New Revision: 1416886

URL: http://svn.apache.org/viewvc?rev=1416886&view=rev
Log:
ACE-307 applied the patch, it improves the exception by adding the cause

Modified:
    ace/trunk/org.apache.ace.deployment.servlet/src/org/apache/ace/deployment/servlet/DeploymentServlet.java

Modified: ace/trunk/org.apache.ace.deployment.servlet/src/org/apache/ace/deployment/servlet/DeploymentServlet.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.deployment.servlet/src/org/apache/ace/deployment/servlet/DeploymentServlet.java?rev=1416886&r1=1416885&r2=1416886&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.deployment.servlet/src/org/apache/ace/deployment/servlet/DeploymentServlet.java
(original)
+++ ace/trunk/org.apache.ace.deployment.servlet/src/org/apache/ace/deployment/servlet/DeploymentServlet.java
Tue Dec  4 11:10:14 2012
@@ -211,8 +211,11 @@ public class DeploymentServlet extends H
                 output.write(buffer, 0, bytesRead);
             }
         }
+        catch (IllegalArgumentException e) {
+            throw (AceRestException) new AceRestException(HttpServletResponse.SC_BAD_REQUEST,
"Request URI is invalid").initCause(e);
+        }
         catch (IOException e) {
-            throw new AceRestException(HttpServletResponse.SC_BAD_REQUEST, "Request URI is
invalid");
+            throw (AceRestException) new AceRestException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
"Could not deliver package").initCause(e);
         }
         finally {
             tryClose(output);



Mime
View raw message