List of usage examples for com.google.gwt.xml.client.impl DOMParseException DOMParseException
public DOMParseException(String contents, Throwable e)
From source file:client.net.sf.saxon.ce.xmldom.XMLParserImpl.java
License:Mozilla Public License
public final Document parse(String contents) { try {//from w w w.ja v a 2 s . com return (Document) NodeXml.build(parseImpl(contents)); } catch (JavaScriptException e) { throw new DOMParseException(contents, e); } }
From source file:client.net.sf.saxon.ce.xmldom.XMLParserImpl.java
License:Mozilla Public License
public final Document wrapJsDocument(JavaScriptObject jso) { try {/* w ww. ja va 2 s .c o m*/ return (Document) NodeXml.build(jso); } catch (JavaScriptException e) { throw new DOMParseException(DOMNodeExceptionXml.summarize(jso.toString()), e); } }