Package org.jaxen.saxpath
Class SAXPathException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jaxen.saxpath.SAXPathException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JaxenException,XPathSyntaxException
public class SAXPathException extends Exception
Base of all SAXPath exceptions.- Author:
- bob mcwhirter (bob@werken.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SAXPathException(String message)Create a new SAXPathException with a given message.SAXPathException(String message, Throwable cause)Create a new SAXPathException with the specified detail message and root cause.SAXPathException(Throwable cause)Create a new SAXPathException based on another exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetCause()Returns the exception that caused this exception.ThrowableinitCause(Throwable cause)Sets the exception that caused this exception.voidprintStackTrace(PrintStream s)Print this exception's stack trace, followed by the source exception's trace, if any.voidprintStackTrace(PrintWriter s)Print this exception's stack trace, followed by the source exception's stack trace, if any.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SAXPathException
public SAXPathException(String message)
Create a new SAXPathException with a given message.- Parameters:
message- the error message
-
SAXPathException
public SAXPathException(Throwable cause)
Create a new SAXPathException based on another exception- Parameters:
cause- the error source
-
-
Method Detail
-
getCause
public Throwable getCause()
Returns the exception that caused this exception. This is necessary to implement Java 1.4 chained exception functionality in a Java 1.3-compatible way.
-
initCause
public Throwable initCause(Throwable cause)
Sets the exception that caused this exception. This is necessary to implement Java 1.4 chained exception functionality in a Java 1.3-compatible way.
-
printStackTrace
public void printStackTrace(PrintStream s)
Print this exception's stack trace, followed by the source exception's trace, if any.- Overrides:
printStackTracein classThrowable- Parameters:
s- the stream on which to print the stack trace
-
printStackTrace
public void printStackTrace(PrintWriter s)
Print this exception's stack trace, followed by the source exception's stack trace, if any.- Overrides:
printStackTracein classThrowable- Parameters:
s- the writer on which to print the stack trace
-
-