public class XPathException extends TransformerException
Modifier and Type | Field and Description |
---|---|
protected Exception |
m_exception
A nested exception.
|
Constructor and Description |
---|
XPathException(String message)
Create an XPathException object that holds
an error message.
|
XPathException(String message,
Exception e)
Create an XPathException object that holds
an error message, and another exception
that caused this exception.
|
XPathException(String message,
ExpressionNode ex)
Create an XPathException object that holds
an error message.
|
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.
|
XPathException(String message,
Object styleNode)
Create an XPathException object that holds
an error message and the stylesheet node that
the error originated from.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
Return the embedded exception, if any.
|
protected ExpressionNode |
getExpressionOwner(ExpressionNode ex)
Get the first non-Expression parent of this node.
|
String |
getMessage()
Find the most contained message.
|
Object |
getStylesheetNode()
Get the stylesheet node from where this error originated.
|
Node |
getStylesheetNode(ExpressionNode ex)
Get the XSLT ElemVariable that this sub-expression references.
|
void |
printStackTrace(PrintStream s)
Print the the trace of methods from where the error
originated.
|
void |
printStackTrace(PrintWriter s)
Print the the trace of methods from where the error
originated.
|
void |
setStylesheetNode(Object styleNode)
Set the stylesheet node from where this error originated.
|
getCause, getLocationAsString, getLocator, getMessageAndLocation, initCause, printStackTrace, setLocator
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, setStackTrace, toString
protected Exception m_exception
public XPathException(String message, ExpressionNode ex)
message
- The error message.public XPathException(String message)
message
- The error message.public XPathException(String message, Object styleNode)
message
- The error message.styleNode
- The stylesheet node that the error originated from.public XPathException(String message, Node styleNode, Exception e)
message
- The error message.styleNode
- The stylesheet node that the error originated from.e
- The exception that caused this exception.public Object getStylesheetNode()
public void setStylesheetNode(Object styleNode)
styleNode
- The stylesheet node from where this error originated, or null.public Node getStylesheetNode(ExpressionNode ex)
protected ExpressionNode getExpressionOwner(ExpressionNode ex)
public void printStackTrace(PrintStream s)
printStackTrace
in class TransformerException
s
- The stream where the dump will be sent to.public String getMessage()
getMessage
in class Throwable
public void printStackTrace(PrintWriter s)
printStackTrace
in class TransformerException
s
- The writer where the dump will be sent to.public Throwable getException()
getException
in class TransformerException
Copyright © 2017 JBoss by Red Hat. All rights reserved.