diff options
2 files changed, 5 insertions, 3 deletions
diff --git a/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java b/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java index 34811ff3fe..1eb38592b7 100644 --- a/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java +++ b/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java @@ -157,8 +157,9 @@ public class JavaInterfaceProcessor implements StAXArtifactProcessor<JavaInterfa javaFactory.createJavaInterface(javaInterface, javaClass); } catch (InvalidInterfaceException e) { - ContributionResolveException ce = new ContributionResolveException(e); - error("ContributionResolveException", javaFactory, ce); + ContributionResolveException ce = new ContributionResolveException("Resolving Java interface " + javaInterface.getName(), e); + //error("ContributionResolveException", javaFactory, ce); + error("InvalidInterfaceException", javaFactory, e); return javaInterface; //throw ce; } catch ( Exception e ) { diff --git a/java/sca/modules/interface-java-xml/src/main/resources/interface-javaxml-validation-messages.properties b/java/sca/modules/interface-java-xml/src/main/resources/interface-javaxml-validation-messages.properties index bc0a7192b5..4f55c0b3e1 100644 --- a/java/sca/modules/interface-java-xml/src/main/resources/interface-javaxml-validation-messages.properties +++ b/java/sca/modules/interface-java-xml/src/main/resources/interface-javaxml-validation-messages.properties @@ -19,4 +19,5 @@ # # ClassNotFoundException = Class Not Found Exception: {0} -ContributionResolveException = ContributionResolveException occured due to : +ContributionResolveException = ContributionResolveException occurred due to: {0} +InvalidInterfaceException = InvalidInterfaceException due to: {0} |