diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-16 11:46:19 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-16 11:46:19 +0000 |
commit | 74858cb30ea577f8c3a05cdb62c1efa1a4d2e530 (patch) | |
tree | 7223269d87d349d3cd5311329b1e36874cddf7c0 /java/sca/modules/binding-ws-wsdlgen/src/main | |
parent | 30489192b44410a9e2588f3726792278016c551c (diff) |
Updates for JCA_10046 - have good msg when exception generating wsdl from bad interface
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@825853 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-ws-wsdlgen/src/main')
2 files changed, 3 insertions, 2 deletions
diff --git a/java/sca/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java b/java/sca/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java index f1b4942c92..67a165f1f5 100644 --- a/java/sca/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java +++ b/java/sca/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java @@ -169,13 +169,13 @@ public class BindingWSDLGenerator { } } else if (ex.getCause() instanceof Exception) { warning(monitor, "WsdlGenException", wsBinding, component.getName(), contract.getName()); - error(monitor, "UnexpectedException", wsBinding, (Exception)ex.getCause()); + error(monitor, "WsdlGenException2", wsBinding, (Exception)ex.getCause()); } else { // should never happen throw new IllegalStateException(ex); } } catch (RuntimeException ex) { warning(monitor, "WsdlGenException", wsBinding, component.getName(), contract.getName()); - error(monitor, "UnexpectedException", wsBinding, ex); + error(monitor, "WsdlGenException2", wsBinding, ex.getMessage()); } } diff --git a/java/sca/modules/binding-ws-wsdlgen/src/main/resources/wsdlgen-validation-messages.properties b/java/sca/modules/binding-ws-wsdlgen/src/main/resources/wsdlgen-validation-messages.properties index 1450fa94a1..a94c1d9bef 100644 --- a/java/sca/modules/binding-ws-wsdlgen/src/main/resources/wsdlgen-validation-messages.properties +++ b/java/sca/modules/binding-ws-wsdlgen/src/main/resources/wsdlgen-validation-messages.properties @@ -20,6 +20,7 @@ # WsdlGenProblem = Unable to generate WSDL for {0}/{1} WsdlGenException = Exception while generating WSDL for {0}/{1} +WsdlGenException2 = Exception while generating WSDL: {0} UnexpectedException = Exception thrown was: {0} MissingInterfaceContract = No interface contract for {0}/{1} InterfaceNotRemotable = Interface not remotable: {0} |