net.sf.saxon.trans

Class UncheckedXPathException


public class UncheckedXPathException
extends RuntimeException

When tree construction is deferred, innocuous methods such as NodeInfo#getLocalName() may trigger a dynamic error. Rather than make all such methods on NodeInfo throw a checked XPathException, we instead throw an UncheckedXPathException, which is a simple wrapper for an XPathException. Appropriate places in the client code must check for this condition and translate it back into an XPathException.

Constructor Summary

UncheckedXPathException(XPathException cause)

Method Summary

XPathException
getXPathException()

Constructor Details

UncheckedXPathException

public UncheckedXPathException(XPathException cause)

Method Details

getXPathException

public XPathException getXPathException()