APIdia Launch Partner
Top Description Fields Constructors Methods
javax.xml.xpath

public Class XPathException

extends Exception
Class Inheritance
Known Direct Subclasses
javax.xml.xpath.XPathExpressionException, javax.xml.xpath.XPathFactoryConfigurationException
Imports
java.io.PrintWriter, .IOException, .ObjectInputStream, .ObjectOutputStream, .ObjectStreamField, .InvalidClassException

XPathException represents a generic XPath exception.
Authors
Norman Walsh, Jeff Suttor
Since
1.5

Field Summary

Modifier and TypeField and Description
private static final ObjectStreamField[]
serialPersistentFields

Serializable fields.

private static final long

Constructor Summary

AccessConstructor and Description
public
XPathException(String
The detail message.
message
)

Constructs a new XPathException with the specified detail message.

public
XPathException(Throwable
The cause.
cause
)

Constructs a new XPathException with the specified cause.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

Cause of this XPathException.
getCause
()

Overrides java.lang.Throwable.getCause.

Get the cause of this XPathException.

public void
printStackTrace(PrintStream
Print stack trace to this PrintStream.
s
)

Overrides java.lang.Throwable.printStackTrace.

Print stack trace to specified PrintStream.

public void
printStackTrace()

Overrides java.lang.Throwable.printStackTrace.

Print stack trace to System.err.

public void
printStackTrace(PrintWriter
Print stack trace to this PrintWriter.
s
)

Overrides java.lang.Throwable.printStackTrace.

Print stack trace to specified PrintWriter.

private void
readObject(ObjectInputStream
stream used for deserialization
in
)

Hides java.lang.Throwable.readObject.

Reads the "cause" field from the stream.

private void
writeObject(ObjectOutputStream
stream used for serialization.
out
)

Hides java.lang.Throwable.writeObject.

Writes "cause" field to the stream.

Field Detail

serialPersistentFieldsback to summary
private static final ObjectStreamField[] serialPersistentFields

Serializable fields.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Stream Unique Identifier.

Constructor Detail

XPathExceptionback to summary
public XPathException(String message)

Constructs a new XPathException with the specified detail message.

The cause is not initialized.

If message is null, then a NullPointerException is thrown.

Parameters
message:String

The detail message.

Exceptions
NullPointerException:
When message is null.
XPathExceptionback to summary
public XPathException(Throwable cause)

Constructs a new XPathException with the specified cause.

If cause is null, then a NullPointerException is thrown.

Parameters
cause:Throwable

The cause.

Exceptions
NullPointerException:
if cause is null.

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Get the cause of this XPathException.

Returns:Throwable

Cause of this XPathException.

printStackTraceback to summary
public void printStackTrace(PrintStream s)

Overrides java.lang.Throwable.printStackTrace.

Print stack trace to specified PrintStream.

Parameters
s:PrintStream

Print stack trace to this PrintStream.

printStackTraceback to summary
public void printStackTrace()

Overrides java.lang.Throwable.printStackTrace.

Print stack trace to System.err.

printStackTraceback to summary
public void printStackTrace(PrintWriter s)

Overrides java.lang.Throwable.printStackTrace.

Print stack trace to specified PrintWriter.

Parameters
s:PrintWriter

Print stack trace to this PrintWriter.

readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException

Hides java.lang.Throwable.readObject.

Reads the "cause" field from the stream. And initializes the "cause" if it wasn't done before.

Parameters
in:ObjectInputStream

stream used for deserialization

Exceptions
IOException:
thrown by ObjectInputStream
ClassNotFoundException:
thrown by ObjectInputStream
writeObjectback to summary
private void writeObject(ObjectOutputStream out) throws IOException

Hides java.lang.Throwable.writeObject.

Writes "cause" field to the stream. The cause is got from the parent class.

Parameters
out:ObjectOutputStream

stream used for serialization.

Exceptions
IOException:
thrown by ObjectOutputStream