- From: Florent Batard via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 26 Aug 2008 15:31:58 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/org/w3c/unicorn/contract In directory hutz:/tmp/cvs-serv11944/org/w3c/unicorn/contract Modified Files: WADLUnmarshallerXPath.java Log Message: correction to delete JAXB Index: WADLUnmarshallerXPath.java =================================================================== RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/contract/WADLUnmarshallerXPath.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- WADLUnmarshallerXPath.java 2 Jul 2008 17:34:46 -0000 1.6 +++ WADLUnmarshallerXPath.java 26 Aug 2008 15:31:56 -0000 1.7 @@ -123,13 +123,19 @@ /** * Get the document from an URL + * @throws SAXException */ - public void addURL(final URL aURL) throws SAXException, IOException { + public void addURL(final URL aURL) throws IOException{ WADLUnmarshallerXPath.logger.trace("addURL"); if (WADLUnmarshallerXPath.logger.isDebugEnabled()) { WADLUnmarshallerXPath.logger.debug("URL : " + aURL + "."); } - this.aDocument = this.aDocumentBuilder.parse(aURL.openStream()); + try { + this.aDocument = this.aDocumentBuilder.parse(aURL.openStream()); + } catch (SAXException e) { + WADLUnmarshallerXPath.logger.error("Parsing error with SAX in WADLUnmarshaller",e); + e.printStackTrace(); + } }
Received on Tuesday, 26 August 2008 15:32:32 UTC