cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1461739 - in /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj: Messages.properties SAAJOutInterceptor.java
Date Wed, 27 Mar 2013 17:47:29 GMT
Author: dkulp
Date: Wed Mar 27 17:47:29 2013
New Revision: 1461739

URL: http://svn.apache.org/r1461739
Log:
Output a better "message" into the exception.

Modified:
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/Messages.properties
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJOutInterceptor.java

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/Messages.properties
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/Messages.properties?rev=1461739&r1=1461738&r2=1461739&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/Messages.properties
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/Messages.properties
Wed Mar 27 17:47:29 2013
@@ -19,5 +19,5 @@
 #
 #
 SOAPHANDLERINTERCEPTOR_EXCEPTION = Problems creating SAAJ object model
-SOAPEXCEPTION = Problem writing SAAJ model to stream
+SOAPEXCEPTION = Problem writing SAAJ model to stream: {0}
 XML_STREAM_EXC=Error reading XMLStreamReader.

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJOutInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJOutInterceptor.java?rev=1461739&r1=1461738&r2=1461739&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJOutInterceptor.java
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJOutInterceptor.java
Wed Mar 27 17:47:29 2013
@@ -112,7 +112,7 @@ public class SAAJOutInterceptor extends 
                 saaj.getSOAPPart().getEnvelope().addHeader();
             }
         } catch (SOAPException e) {
-            throw new SoapFault(new Message("SOAPEXCEPTION", BUNDLE), 
+            throw new SoapFault(new Message("SOAPEXCEPTION", BUNDLE, e.getMessage()), 
                                 e,
                                 message.getVersion().getSender());
         }    
@@ -135,7 +135,7 @@ public class SAAJOutInterceptor extends 
                 
                 
             } catch (SOAPException e) {
-                throw new SoapFault(new Message("SOAPEXCEPTION", BUNDLE), e, version.getSender());
+                throw new SoapFault(new Message("SOAPEXCEPTION", BUNDLE, e.getMessage()),
e, version.getSender());
             }
         } else if (!message.containsKey(ORIGINAL_XML_WRITER)) {
             //as the SOAPMessage already has everything in place, we do not need XMLStreamWriter
to write
@@ -218,7 +218,7 @@ public class SAAJOutInterceptor extends 
                         throw new SoapFault(e.getCause().getMessage(), e,
                                             message.getVersion().getSender());
                     } else {
-                        throw new SoapFault(new Message("SOAPEXCEPTION", BUNDLE), e,
+                        throw new SoapFault(new Message("SOAPEXCEPTION", BUNDLE, e.getMessage()),
e,
                                             message.getVersion().getSender());
                     }
                 }



Mime
View raw message