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:00:25 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 6bb64ae83 -> 024d884dc


[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/024d884d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/024d884d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/024d884d

Branch: refs/heads/3.1.x-fixes
Commit: 024d884dcd055b0b0ac1861c8dfd46f38a7068d4
Parents: 6bb64ae
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:00:07 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/024d884d/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 872bda0..83de439 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