jd.xml.xslt.parser
Class XsltParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjd.xml.xslt.parser.XsltParseException
All Implemented Interfaces:
Serializable

public class XsltParseException
extends Exception

A XsltParseException indicates errors when a stylesheet is parsed.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
XsltParseException(String parserMsg, String baseUri, Exception e)
          Create a new XsltParseException.
XsltParseException(String parserMsg, XPathNode node, Exception e)
          Create a new XsltParseException.
 
Method Summary
 String getBaseUri()
          Return the base uri of the document where the error occured.
 String getContext()
          Returns the error context.
 Exception getException()
          Return the original exception.
 String getMessage()
          Returns the error message string of this Exception.
 XPathNode getNode()
          Return the node which caused the error.
 String getNodeInfo(XPathNode node)
           
 String getParserMessage()
          Return the orginal error message of the parser (without the context information).
 void printStackTrace()
          Print a stack trace of this excpetion and any Chained exception.
 void printStackTrace(PrintStream out)
          Print a stack trace of this excpetion and any Chained exception.
 void printStackTrace(PrintWriter out)
          Print a stack trace of this excpetion and any Chained exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XsltParseException

public XsltParseException(String parserMsg,
                          String baseUri,
                          Exception e)
Create a new XsltParseException.

Parameters:
baseUri - the base uri of the parsed document
e - the original exception. Can be null.

XsltParseException

public XsltParseException(String parserMsg,
                          XPathNode node,
                          Exception e)
Create a new XsltParseException.

Parameters:
node - the node where the error occurred
e - the original exception. Can be null.
Method Detail

getMessage

public String getMessage()
Returns the error message string of this Exception.


getContext

public String getContext()
Returns the error context.


getException

public Exception getException()
Return the original exception.


getParserMessage

public String getParserMessage()
Return the orginal error message of the parser (without the context information).


getBaseUri

public String getBaseUri()
Return the base uri of the document where the error occured.

Returns:
the base uri or null if not known

getNode

public XPathNode getNode()
Return the node which caused the error.

Returns:
the node or null if the error was not caused by a specific node

getNodeInfo

public String getNodeInfo(XPathNode node)

printStackTrace

public void printStackTrace()
Print a stack trace of this excpetion and any Chained exception.


printStackTrace

public void printStackTrace(PrintWriter out)
Print a stack trace of this excpetion and any Chained exception.


printStackTrace

public void printStackTrace(PrintStream out)
Print a stack trace of this excpetion and any Chained exception.