1 package net.sf.saxon.trans; 2 3 /** 4 * When tree construction is deferred, innocuous methods such as NodeInfo#getLocalName() may 5 * trigger a dynamic error. Rather than make all such methods on NodeInfo throw a checked XPathException, 6 * we instead throw an UncheckedXPathException, which is a simple wrapper for an XPathException. 7 * Appropriate places in the code must check for this condition and translate it back into an 8 * XPathException. 9 */ 10 11 public class UncheckedXPathException extends RuntimeException { 12 13 private XPathException cause; 14 15 public UncheckedXPathException(XPathException cause) { 16 this.cause = cause; 17 } 18 19 public XPathException getXPathException() { 20 return cause; 21 } 22 } 23