diff options
author | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-13 18:45:20 +0000 |
---|---|---|
committer | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-13 18:45:20 +0000 |
commit | 68a85f550de7bcda8ccaca3e8117d40bccfb21a8 (patch) | |
tree | 0a0c2d167bfface506240a59d65f4b9795f23980 /java/sca/modules/interface-java-xml/src | |
parent | 2a397a2ddb471dfbd2f6a9f547b05c8acbebd7d9 (diff) |
Improve error reporting of an Invalid java interface
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@774489 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/interface-java-xml/src')
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} |