org.jaxen.saxpath
Class SAXPathException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jaxen.saxpath.SAXPathException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JaxenException, SAXPathParseException, XPathSyntaxException

public class SAXPathException
extends java.lang.Exception

Base of all SAXPath exceptions.

Author:
bob mcwhirter (bob@werken.com)
See Also:
Serialized Form

Field Summary
private  java.lang.Throwable cause
          The source exception, if any
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
SAXPathException(java.lang.String msg)
          Construct with a given message.
SAXPathException(java.lang.Throwable src)
          Construct based on another exception
 
Method Summary
 java.lang.Throwable getCause()
          If this exception was originally caused by another exception, return it; otherwise, return null.
 void printStackTrace()
          Overriden to print this exception's stack, followed by the source exception's, if any.
 void printStackTrace(java.io.PrintStream s)
          Overriden to print this exception's stack, followed by the source exception's, if any.
 void printStackTrace(java.io.PrintWriter s)
          Overriden to print this exception's stack, followed by the source exception's, if any.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cause

private java.lang.Throwable cause
The source exception, if any

Constructor Detail

SAXPathException

public SAXPathException(java.lang.String msg)
Construct with a given message.

Parameters:
msg - The error message.

SAXPathException

public SAXPathException(java.lang.Throwable src)
Construct based on another exception

Parameters:
src - The error source.
Method Detail

getCause

public java.lang.Throwable getCause()
If this exception was originally caused by another exception, return it; otherwise, return null.


printStackTrace

public void printStackTrace()
Overriden to print this exception's stack, followed by the source exception's, if any.


printStackTrace

public void printStackTrace(java.io.PrintStream s)
Overriden to print this exception's stack, followed by the source exception's, if any.


printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Overriden to print this exception's stack, followed by the source exception's, if any.