Return-Path: Delivered-To: apmail-ws-tuscany-commits-archive@locus.apache.org Received: (qmail 71034 invoked from network); 1 Apr 2008 16:12:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Apr 2008 16:12:32 -0000 Received: (qmail 67826 invoked by uid 500); 1 Apr 2008 16:12:32 -0000 Delivered-To: apmail-ws-tuscany-commits-archive@ws.apache.org Received: (qmail 67807 invoked by uid 500); 1 Apr 2008 16:12:32 -0000 Mailing-List: contact tuscany-commits-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-dev@ws.apache.org Delivered-To: mailing list tuscany-commits@ws.apache.org Received: (qmail 67798 invoked by uid 99); 1 Apr 2008 16:12:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 09:12:32 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 16:11:59 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5E7CE1A9832; Tue, 1 Apr 2008 09:12:11 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r643467 - /incubator/tuscany/java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java Date: Tue, 01 Apr 2008 16:12:11 -0000 To: tuscany-commits@ws.apache.org From: rfeng@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080401161211.5E7CE1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rfeng Date: Tue Apr 1 09:12:08 2008 New Revision: 643467 URL: http://svn.apache.org/viewvc?rev=643467&view=rev Log: Change the exception message for non-business faults Modified: incubator/tuscany/java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java Modified: incubator/tuscany/java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java?rev=643467&r1=643466&r2=643467&view=diff ============================================================================== --- incubator/tuscany/java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java (original) +++ incubator/tuscany/java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java Tue Apr 1 09:12:08 2008 @@ -33,10 +33,10 @@ import org.apache.tuscany.sca.interfacedef.impl.DataTypeImpl; import org.apache.tuscany.sca.interfacedef.util.FaultException; import org.apache.tuscany.sca.interfacedef.util.XMLType; +import org.apache.tuscany.sca.invocation.DataExchangeSemantics; import org.apache.tuscany.sca.invocation.Interceptor; import org.apache.tuscany.sca.invocation.Invoker; import org.apache.tuscany.sca.invocation.Message; -import org.apache.tuscany.sca.invocation.DataExchangeSemantics; import org.apache.tuscany.sca.runtime.RuntimeWire; import org.osoa.sca.ServiceRuntimeException; @@ -131,9 +131,9 @@ DataType targetFaultType = getFaultType(targetDataType); if (targetFaultType == null) { - throw new ServiceRuntimeException("Target fault type cannot be resolved: " + targetDataType, - (Throwable)result); - // throw new TransformationException("Target fault type cannot be resolved: " + targetDataType); + // No matching fault type, it's a system exception + Throwable cause = (Throwable) result; + throw new ServiceRuntimeException(cause); } // FIXME: How to match a source fault type to a target fault @@ -151,9 +151,9 @@ } if (sourceFaultType == null) { - throw new ServiceRuntimeException("No matching source fault type is found: " + targetFaultType, - (Throwable)result); - // throw new TransformationException("No matching source fault type is found: " + targetFaultType); + // No matching fault type, it's a system exception + Throwable cause = (Throwable) result; + throw new ServiceRuntimeException(cause); } Object newResult = --------------------------------------------------------------------- To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org For additional commands, e-mail: tuscany-commits-help@ws.apache.org