| java.lang.Object java.lang.Throwable java.lang.Exception javax.xml.transform.TransformerException org.apache.xpath.XPathException
All known Subclasses: org.apache.xpath.XPathProcessorException,
XPathException | public class XPathException extends TransformerException (Code) | | 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.
|
Constructor Summary | |
public | XPathException(String message, ExpressionNode ex) Create an XPathException object that holds
an error message. | public | XPathException(String message) Create an XPathException object that holds
an error message. | public | XPathException(String message, Object styleNode) Create an XPathException object that holds
an error message and the stylesheet node that
the error originated from. | public | XPathException(String message, Node styleNode, Exception e) Create an XPathException object that holds
an error message, the stylesheet node that
the error originated from, and another exception
that caused this exception. | public | XPathException(String message, Exception e) Create an XPathException object that holds
an error message, and another exception
that caused this exception. |
m_styleNode | Object m_styleNode(Code) | | The home of the expression that caused the error.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
XPathException | public XPathException(String message, ExpressionNode ex)(Code) | | Create an XPathException object that holds
an error message.
Parameters: message - The error message. |
XPathException | public XPathException(String message)(Code) | | Create an XPathException object that holds
an error message.
Parameters: message - The error message. |
XPathException | public XPathException(String message, Object styleNode)(Code) | | Create an XPathException object that holds
an error message and the stylesheet node that
the error originated from.
Parameters: message - The error message. Parameters: styleNode - The stylesheet node that the error originated from. |
XPathException | public XPathException(String message, Node styleNode, Exception e)(Code) | | Create an XPathException object that holds
an error message, the stylesheet node that
the error originated from, and another exception
that caused this exception.
Parameters: message - The error message. Parameters: styleNode - The stylesheet node that the error originated from. Parameters: e - The exception that caused this exception. |
XPathException | public XPathException(String message, Exception e)(Code) | | Create an XPathException object that holds
an error message, and another exception
that caused this exception.
Parameters: message - The error message. Parameters: e - The exception that caused this exception. |
getException | public Throwable getException()(Code) | | Return the embedded exception, if any.
Overrides javax.xml.transform.TransformerException.getException().
The embedded exception, or null if there is none. |
getExpressionOwner | protected ExpressionNode getExpressionOwner(ExpressionNode ex)(Code) | | Get the first non-Expression parent of this node.
null or first ancestor that is not an Expression. |
getMessage | public String getMessage()(Code) | | Find the most contained message.
The error message of the originating exception. |
getStylesheetNode | public Object getStylesheetNode()(Code) | | Get the stylesheet node from where this error originated.
The stylesheet node from where this error originated, or null. |
getStylesheetNode | public org.w3c.dom.Node getStylesheetNode(ExpressionNode ex)(Code) | | Get the XSLT ElemVariable that this sub-expression references. In order for
this to work, the SourceLocator must be the owning ElemTemplateElement.
The dereference to the ElemVariable, or null if not found. |
printStackTrace | public void printStackTrace(java.io.PrintStream s)(Code) | | Print the the trace of methods from where the error
originated. This will trace all nested exception
objects, as well as this object.
Parameters: s - The stream where the dump will be sent to. |
printStackTrace | public void printStackTrace(java.io.PrintWriter s)(Code) | | Print the the trace of methods from where the error
originated. This will trace all nested exception
objects, as well as this object.
Parameters: s - The writer where the dump will be sent to. |
setStylesheetNode | public void setStylesheetNode(Object styleNode)(Code) | | Set the stylesheet node from where this error originated.
Parameters: styleNode - The stylesheet node from where this error originated, or null. |
|
|