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
Base of all SAXPath exceptions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Throwable
private boolean
private static double
private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionSAXPathException
(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
Modifier and TypeMethodDescriptiongetCause()
Returns the exception that caused this exception.Sets the exception that caused this exception.void
Print this exception's stack trace, followed by the source exception's trace, if any.void
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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
javaVersion
private static double javaVersion -
cause
-
causeSet
private boolean causeSet
-
-
Constructor Details
-
SAXPathException
Create a new SAXPathException with a given message.- Parameters:
message
- the error message
-
SAXPathException
Create a new SAXPathException based on another exception- Parameters:
cause
- the error source
-
SAXPathException
Create a new SAXPathException with the specified detail message and root cause.- Parameters:
message
- the detail messagecause
- the cause of this exception
-
-
Method Details
-
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
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
Print this exception's stack trace, followed by the source exception's trace, if any.- Overrides:
printStackTrace
in classThrowable
- Parameters:
s
- the stream on which to print the stack trace
-
printStackTrace
Print this exception's stack trace, followed by the source exception's stack trace, if any.- Overrides:
printStackTrace
in classThrowable
- Parameters:
s
- the writer on which to print the stack trace
-