You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cs...@apache.org on 2011/10/06 17:27:01 UTC

svn commit: r1179664 - /camel/trunk/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/SoapJaxbDataFormat.java

Author: cschneider
Date: Thu Oct  6 15:27:01 2011
New Revision: 1179664

URL: http://svn.apache.org/viewvc?rev=1179664&view=rev
Log:
showing the nested exception

Modified:
    camel/trunk/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/SoapJaxbDataFormat.java

Modified: camel/trunk/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/SoapJaxbDataFormat.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/SoapJaxbDataFormat.java?rev=1179664&r1=1179663&r2=1179664&view=diff
==============================================================================
--- camel/trunk/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/SoapJaxbDataFormat.java (original)
+++ camel/trunk/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/SoapJaxbDataFormat.java Thu Oct  6 15:27:01 2011
@@ -336,7 +336,7 @@ public class SoapJaxbDataFormat extends 
         WebFault webFault = exception.getClass().getAnnotation(WebFault.class);
         if (webFault == null || webFault.targetNamespace() == null) {
             throw new RuntimeException("The exception " + exception.getClass().getName()
-                    + " needs to have an WebFault annotation with name and targetNamespace");
+                    + " needs to have an WebFault annotation with name and targetNamespace", exception);
         }
         QName name = new QName(webFault.targetNamespace(), webFault.name());
         Object faultObject = null;