cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7190] Preserving the 500 error cause
Date Wed, 21 Dec 2016 11:02:37 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes ef0a8e86d -> 317e76ee6


[CXF-7190] Preserving the 500 error cause


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/317e76ee
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/317e76ee
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/317e76ee

Branch: refs/heads/3.0.x-fixes
Commit: 317e76ee6d5cfcbcc9479a83d2577f417beac1c6
Parents: ef0a8e8
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Dec 21 10:59:22 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Dec 21 11:02:14 2016 +0000

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/317e76ee/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java
index 87aaf85..261015e 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java
@@ -55,6 +55,7 @@ import org.apache.cxf.jaxrs.impl.MetadataMap;
 import org.apache.cxf.jaxrs.impl.ProvidersImpl;
 import org.apache.cxf.jaxrs.interceptor.AttachmentInputInterceptor;
 import org.apache.cxf.jaxrs.interceptor.AttachmentOutputInterceptor;
+import org.apache.cxf.jaxrs.utils.ExceptionUtils;
 import org.apache.cxf.jaxrs.utils.JAXRSUtils;
 import org.apache.cxf.message.Exchange;
 import org.apache.cxf.message.ExchangeImpl;
@@ -288,7 +289,7 @@ public class MessageContextImpl implements MessageContext {
                                      new ProvidersImpl(inMessage));
             newAttachments.add(first);
         } catch (IOException ex) {
-            throw new WebApplicationException(500);
+            ExceptionUtils.toInternalServerErrorException(ex, null);
         }
         
     


Mime
View raw message