Package org.jaxen.saxpath
Class SAXPathException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jaxen.saxpath.SAXPathException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
JaxenException,XPathSyntaxException
public class SAXPathException extends java.lang.ExceptionBase of all SAXPath exceptions.- Author:
- bob mcwhirter (bob@werken.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SAXPathException(java.lang.String message)Create a new SAXPathException with a given message.SAXPathException(java.lang.String message, java.lang.Throwable cause)Create a new SAXPathException with the specified detail message and root cause.SAXPathException(java.lang.Throwable cause)Create a new SAXPathException based on another exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()Returns the exception that caused this exception.java.lang.ThrowableinitCause(java.lang.Throwable cause)Sets the exception that caused this exception.voidprintStackTrace(java.io.PrintStream s)Print this exception's stack trace, followed by the source exception's trace, if any.voidprintStackTrace(java.io.PrintWriter s)Print this exception's stack trace, followed by the source exception's stack trace, if any.
-
-
-
Constructor Detail
-
SAXPathException
public SAXPathException(java.lang.String message)
Create a new SAXPathException with a given message.- Parameters:
message- the error message
-
SAXPathException
public SAXPathException(java.lang.Throwable cause)
Create a new SAXPathException based on another exception- Parameters:
cause- the error source
-
SAXPathException
public SAXPathException(java.lang.String message, java.lang.Throwable cause)Create a new SAXPathException with the specified detail message and root cause.- Parameters:
message- the detail messagecause- the cause of this exception
-
-
Method Detail
-
getCause
public java.lang.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.- Overrides:
getCausein classjava.lang.Throwable- Returns:
- the exception that caused this exception
-
initCause
public java.lang.Throwable initCause(java.lang.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.- Overrides:
initCausein classjava.lang.Throwable- Parameters:
cause- the exception wrapped in this runtime exception- Returns:
- this exception
-
printStackTrace
public void printStackTrace(java.io.PrintStream s)
Print this exception's stack trace, followed by the source exception's trace, if any.- Overrides:
printStackTracein classjava.lang.Throwable- Parameters:
s- the stream on which to print the stack trace
-
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
Print this exception's stack trace, followed by the source exception's stack trace, if any.- Overrides:
printStackTracein classjava.lang.Throwable- Parameters:
s- the writer on which to print the stack trace
-
-