cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject [2/2] cxf git commit: CXF-3344 Avoid wrapping of RuntimeException
Date Wed, 21 Jan 2015 12:27:23 GMT
CXF-3344 Avoid wrapping of RuntimeException


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

Branch: refs/heads/master
Commit: 07c6322a52c12077567a48c9a87e832ea9362886
Parents: bd94b4c
Author: Christian Schneider <chris@die-schneider.net>
Authored: Wed Jan 21 13:27:17 2015 +0100
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Wed Jan 21 13:27:17 2015 +0100

----------------------------------------------------------------------
 .../cxf/interceptor/AbstractFaultChainInitiatorObserver.java      | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/07c6322a/core/src/main/java/org/apache/cxf/interceptor/AbstractFaultChainInitiatorObserver.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/interceptor/AbstractFaultChainInitiatorObserver.java
b/core/src/main/java/org/apache/cxf/interceptor/AbstractFaultChainInitiatorObserver.java
index cbf6964..a3bb36e 100644
--- a/core/src/main/java/org/apache/cxf/interceptor/AbstractFaultChainInitiatorObserver.java
+++ b/core/src/main/java/org/apache/cxf/interceptor/AbstractFaultChainInitiatorObserver.java
@@ -111,6 +111,9 @@ public abstract class AbstractFaultChainInitiatorObserver implements MessageObse
             faultMessage.setInterceptorChain(chain);
             try {
                 chain.doIntercept(faultMessage);
+            } catch (RuntimeException exc) {
+                LOG.log(Level.SEVERE, "Error occurred during error handling, give up!", exc);
+                throw exc;
             } catch (Exception exc) {
                 LOG.log(Level.SEVERE, "Error occurred during error handling, give up!", exc);
                 throw new RuntimeException(exc);


Mime
View raw message