summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/interface-wsdl
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-08-18 15:16:29 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-08-18 15:16:29 +0000
commit3c5a7ea0e9e68e99419ebaa8e7e33b52944e236b (patch)
treed18af84135a6d5cc57e88a27687d8097f7f1f72a /sca-java-2.x/trunk/modules/interface-wsdl
parente5ec9b27c799326f609f1af89c8db95fccc2a1ff (diff)
TUSCANY-3641 - satisfy some TODOs by adding suitable error messages.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@986732 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/interface-wsdl')
-rw-r--r--sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java22
1 files changed, 16 insertions, 6 deletions
diff --git a/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java b/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java
index 46a2475fe7..94d7799402 100644
--- a/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java
+++ b/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java
@@ -411,16 +411,26 @@ public class WSDLInterfaceProcessor extends BaseStAXArtifactProcessor implements
}
}
+ if (wsdlDefinition == null){
+ Monitor.error(context.getMonitor(),
+ WSDLInterfaceProcessor.class.getName(),
+ "interface-wsdlxml-validation-messages",
+ "wsdliLocationException",
+ "WSDL not found inside contribution at relative URI " + wsdlFileURI );
+ return;
+ }
+
} catch (Exception ex) {
- ex.printStackTrace();
- // TODO - raise error
+ Monitor.error(context.getMonitor(),
+ WSDLInterfaceProcessor.class.getName(),
+ "interface-wsdlxml-validation-messages",
+ "wsdliLocationException",
+ ex.getMessage() );
+ return;
+
}
}
- if (wsdlDefinition == null){
- // TODO raise an error
- }
-
wsdlInterface.setWsdlDefinition(wsdlDefinition);
PortType portType = (PortType)wsdlDefinition.getDefinition().getAllPortTypes().values().iterator().next();
if(portType != null){