cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5943] Updating the exception catch to check Throwable, patch from Iris Ding applied
Date Wed, 13 Aug 2014 10:07:25 GMT
Repository: cxf
Updated Branches:
  refs/heads/master f7a091afe -> a04c01f9c


[CXF-5943] Updating the exception catch to check Throwable, patch from Iris Ding applied


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

Branch: refs/heads/master
Commit: a04c01f9c3e194cb1d1c241a99b51888b792ebfc
Parents: f7a091a
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Wed Aug 13 11:07:01 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Aug 13 11:07:01 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/a04c01f9/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java
index 079310e..ed56966 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java
@@ -79,7 +79,7 @@ public final class ExceptionUtils {
             if (mapper != null) {
                 try {
                     response = mapper.toResponse(ex);
-                } catch (Exception mapperEx) {
+                } catch (Throwable mapperEx) {
                     inMessage.getExchange().put(JAXRSUtils.EXCEPTION_FROM_MAPPER, "true");
                     mapperEx.printStackTrace();
                     return Response.serverError().build();


Mime
View raw message