Class XPathException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    XPathProcessorException

    public class XPathException
    extends javax.xml.transform.TransformerException
    This class implements an exception object that all XPath classes will throw in case of an error. This class extends TransformerException, and may hold other exceptions. In the case of nested exceptions, printStackTrace will dump all the traces of the nested exceptions, not just the trace of this object.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      XPathException​(java.lang.String message)
      Create an XPathException object that holds an error message.
      XPathException​(java.lang.String message, javax.xml.transform.SourceLocator ex)
      Create an XPathException object that holds an error message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getException()
      java.lang.String getMessage()
      • Methods inherited from class javax.xml.transform.TransformerException

        getCause, getLocationAsString, getLocator, getMessageAndLocation, initCause, printStackTrace, printStackTrace, printStackTrace, setLocator
      • Methods inherited from class java.lang.Throwable

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

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

      • XPathException

        public XPathException​(java.lang.String message,
                              javax.xml.transform.SourceLocator ex)
        Create an XPathException object that holds an error message.
        Parameters:
        message - The error message.
      • XPathException

        public XPathException​(java.lang.String message)
        Create an XPathException object that holds an error message.
        Parameters:
        message - The error message.
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getException

        public java.lang.Throwable getException()
        Overrides:
        getException in class javax.xml.transform.TransformerException