|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.xml.transform.TransformerException org.apache.xpath.XPathException
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.
Field Summary | |
protected Exception |
m_exception
A nested exception. |
(package private) Object |
m_styleNode
The home of the expression that caused the error. |
Fields inherited from class javax.xml.transform.TransformerException |
|
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
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,
org.w3c.dom.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. |
Method Summary | |
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. |
org.w3c.dom.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. |
Methods inherited from class javax.xml.transform.TransformerException |
getCause, getLocationAsString, getLocator, getMessageAndLocation, initCause, printStackTrace, setLocator |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
Object m_styleNode
protected Exception m_exception
Constructor Detail |
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, org.w3c.dom.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 XPathException(String message, Exception e)
message
- The error message.e
- The exception that caused this exception.Method Detail |
public Object getStylesheetNode()
public void setStylesheetNode(Object styleNode)
styleNode
- The stylesheet node from where this error originated, or null.public org.w3c.dom.Node getStylesheetNode(ExpressionNode ex)
protected ExpressionNode getExpressionOwner(ExpressionNode ex)
public void printStackTrace(PrintStream s)
s
- The stream where the dump will be sent to.public String getMessage()
getMessage
in class Throwable
public void printStackTrace(PrintWriter s)
s
- The writer where the dump will be sent to.public Throwable getException()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |