Author: edwardsmj
Date: Sun May 3 07:13:17 2009
New Revision: 771034
URL: http://svn.apache.org/viewvc?rev=771034&view=rev
Log:
Improve error reporting when exceptions occur during Java interface processing
- tag all exceptions with the name of the Java interface class.
Modified:
tuscany/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java
Modified:
tuscany/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java
URL:
http://svn.apache.org/viewvc/tuscany/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java?rev=771034&r1=771033&r2=771034&view=diff
==============================================================================
---
tuscany/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java
(original)
+++
tuscany/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java
Sun May 3 07:13:17 2009
@@ -161,7 +161,9 @@
error("ContributionResolveException", javaFactory, ce);
return javaInterface;
//throw ce;
- }
+ } catch ( Exception e ) {
+ throw new ContributionResolveException( "Resolving Java
interface " + javaInterface.getName(), e );
+ } // end try
// Cache the resolved interface
javaInterface.setUnresolved(false);