Package org.htmlunit.xpath
Class XPathException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.xml.transform.TransformerException
-
- org.htmlunit.xpath.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
-
-
-
-
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.
-
-