Example usage for com.google.gwt.xml.client DOMException INVALID_STATE_ERR

List of usage examples for com.google.gwt.xml.client DOMException INVALID_STATE_ERR

Introduction

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

Prototype

short INVALID_STATE_ERR

To view the source code for com.google.gwt.xml.client DOMException INVALID_STATE_ERR.

Click Source Link

Usage

From source file:client.net.sf.saxon.ce.xmldom.DocumentImpl.java

License:Apache License

/**
 * This function delegates to the native method <code>importNode</code> in
 * XMLParserImpl.//from  w  ww  .j  a v  a  2s. c  o  m
 */
public Node importNode(Node importedNode, boolean deep) {
    try {
        return NodeXml.build(
                XMLParserImpl.importNode(this.getJsObject(), ((DomItemXml) importedNode).getJsObject(), deep));
    } catch (JavaScriptException e) {
        throw new DOMNodeExceptionXml(DOMException.INVALID_STATE_ERR, e, this);
    }
}