/* */ package org.jaxen.saxpath;
/* */
/* */ import java.io.
PrintStream;
/* */ import java.io.
PrintWriter;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class
SAXPathException
/* */ extends
Exception
/* */ {
/* */ private static final long
serialVersionUID = 4826444568928720706L;
/* 66 */ private static double
javaVersion = 1.4D; private
Throwable cause; private boolean
causeSet;
/* */
/* */ static {
/* */ try {
/* 70 */
String versionString =
System.
getProperty("java.version");
/* 71 */
versionString =
versionString.
substring(0, 3);
/* 72 */
javaVersion =
Double.
valueOf(
versionString).
doubleValue();
/* */ }
/* 74 */ catch (
Exception ex) {}
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public
SAXPathException(
String message) {
/* 86 */ super(
message);
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 113 */ this.
causeSet = false; } public
SAXPathException(
Throwable cause) { super(
cause.
getMessage()); this.
causeSet = false;
initCause(
cause); } public
SAXPathException(
String message,
Throwable cause) { super(
message); this.
causeSet = false;
/* */
initCause(
cause); }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public
Throwable getCause() {
/* 123 */ return this.
cause;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public
Throwable initCause(
Throwable cause) {
/* 137 */ if (this.
causeSet) throw new
IllegalStateException("Cause cannot be reset");
/* 138 */ if (
cause == this) throw new
IllegalArgumentException("Exception cannot be its own cause");
/* 139 */ this.
causeSet = true;
/* 140 */ this.
cause =
cause;
/* 141 */ return this;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void
printStackTrace(
PrintStream s) {
/* 151 */ super.printStackTrace(
s);
/* 152 */ if (
javaVersion < 1.4D &&
getCause() != null) {
/* 153 */
s.
print("Caused by: ");
/* 154 */
getCause().
printStackTrace(
s);
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void
printStackTrace(
PrintWriter s) {
/* 165 */ super.printStackTrace(
s);
/* 166 */ if (
javaVersion < 1.4D &&
getCause() != null) {
/* 167 */
s.
print("Caused by: ");
/* 168 */
getCause().
printStackTrace(
s);
/* */ }
/* */ }
/* */ }
/* Location: /Users/tommy/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar!/org/jaxen/saxpath/SAXPathException.class
* Java compiler version: 2 (46.0)
* JD-Core Version: 1.1.3
*/