Class UncheckedXPathException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UncheckedXPathException
    extends java.lang.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 code must check for this condition and translate it back into an XPathException.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      XPathException getXPathException()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UncheckedXPathException

        public UncheckedXPathException​(XPathException cause)