java.io.Serializable
XPathProcessorException
public class XPathException
extends javax.xml.transform.TransformerException
Constructor | Description |
---|---|
XPathException(java.lang.String message) |
Create an XPathException object that holds
an error message.
|
XPathException(java.lang.String message,
java.lang.Exception e) |
Create an XPathException object that holds
an error message, and another exception
that caused this exception.
|
XPathException(java.lang.String message,
java.lang.Object styleNode) |
Create an XPathException object that holds
an error message and the stylesheet node that
the error originated from.
|
XPathException(java.lang.String message,
ExpressionNode ex) |
Create an XPathException object that holds
an error message.
|
XPathException(java.lang.String message,
org.w3c.dom.Node styleNode,
java.lang.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.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Throwable |
getException() |
Return the embedded exception, if any.
|
java.lang.String |
getMessage() |
Find the most contained message.
|
java.lang.Object |
getStylesheetNode() |
Get the stylesheet node from where this error originated.
|
org.w3c.dom.Node |
getStylesheetNode(ExpressionNode ex) |
Get the XSLT ElemVariable that this sub-expression references.
|
void |
printStackTrace(java.io.PrintStream s) |
Print the the trace of methods from where the error
originated.
|
void |
printStackTrace(java.io.PrintWriter s) |
Print the the trace of methods from where the error
originated.
|
void |
setStylesheetNode(java.lang.Object styleNode) |
Set the stylesheet node from where this error originated.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public XPathException(java.lang.String message, ExpressionNode ex)
message
- The error message.public XPathException(java.lang.String message)
message
- The error message.public XPathException(java.lang.String message, java.lang.Object styleNode)
message
- The error message.styleNode
- The stylesheet node that the error originated from.public XPathException(java.lang.String message, org.w3c.dom.Node styleNode, java.lang.Exception e)
message
- The error message.styleNode
- The stylesheet node that the error originated from.e
- The exception that caused this exception.public XPathException(java.lang.String message, java.lang.Exception e)
message
- The error message.e
- The exception that caused this exception.public java.lang.Object getStylesheetNode()
public void setStylesheetNode(java.lang.Object styleNode)
styleNode
- The stylesheet node from where this error originated, or null.public org.w3c.dom.Node getStylesheetNode(ExpressionNode ex)
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class javax.xml.transform.TransformerException
s
- The stream where the dump will be sent to.public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class javax.xml.transform.TransformerException
s
- The writer where the dump will be sent to.public java.lang.Throwable getException()
getException
in class javax.xml.transform.TransformerException
Copyright © 2014 Apache XML Project. All Rights Reserved.