cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1391069 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
Date Thu, 27 Sep 2012 15:55:35 GMT
Author: dkulp
Date: Thu Sep 27 15:55:34 2012
New Revision: 1391069

URL: http://svn.apache.org/viewvc?rev=1391069&view=rev
Log:
Fix a print to screen and not set the real cause anti-pattern

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java?rev=1391069&r1=1391068&r2=1391069&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
Thu Sep 27 15:55:34 2012
@@ -424,8 +424,7 @@ public abstract class AbstractClient imp
             Constructor<?> ctr = exceptionClass.getConstructor(Response.class);
             return (WebApplicationException)ctr.newInstance(r);
         } catch (Exception ex2) {
-            ex2.printStackTrace();
-            return new WebApplicationException(r);
+            return new WebApplicationException(ex2, r);
         }
     }
     



Mime
View raw message