openjdk8 Udiff jaxp/src/javax/xml/xpath/XPathException.java (original) (raw)

Print this page


@@ -24,21 +24,28 @@ */

package javax.xml.xpath;

import java.io.PrintWriter; +import java.io.IOException; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; +import java.io.ObjectStreamField; +import java.io.InvalidClassException;

/**


@@ -60,11 +67,10 @@ public XPathException(String message) { super(message); if ( message == null ) { throw new NullPointerException ( "message can't be null"); }


@@ -75,12 +81,11 @@ * @param cause The cause. * * @throws NullPointerException if cause is null. */ public XPathException(Throwable cause) { - super(); - this.cause = cause; + super(cause); if ( cause == null ) { throw new NullPointerException ( "cause can't be null"); } }

@@ -88,11 +93,51 @@ *

Get the cause of this XPathException.

* * @return Cause of this XPathException. */ public Throwable getCause() {