Example usage for com.google.gwt.xml.client.impl DOMParseException DOMParseException

List of usage examples for com.google.gwt.xml.client.impl DOMParseException DOMParseException

Introduction

In this page you can find the example usage for com.google.gwt.xml.client.impl DOMParseException DOMParseException.

Prototype

public DOMParseException(String contents, Throwable e) 

Source Link

Usage

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);
    }
}