FileDocCategorySizeDatePackage
XPathException.javaAPI DocJava SE 6 API3932Tue Jun 10 00:27:16 BST 2008javax.xml.xpath

XPathException

public class XPathException extends Exception
XPathException represents a generic XPath exception.

author
Norman Walsh
author
Jeff Suttor
version
$Revision: 1.2 $, $Date: 2005/06/10 03:50:44 $
since
1.5

Fields Summary
private final Throwable
cause
private static final long
serialVersionUID

Stream Unique Identifier.

Constructors 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.

param
message The detail message.
throws
NullPointerException When message is null.


                                             
       
        super(message);
        if ( message == null ) {
            throw new NullPointerException ( "message can't be null");
        }
        this.cause = null;
    
public XPathException(Throwable cause)

Constructs a new XPathException with the specified cause.

If cause is null, then a NullPointerException is thrown.

param
cause The cause.
throws
NullPointerException if cause is null.

        super();
        this.cause = cause;
        if ( cause == null ) {
            throw new NullPointerException ( "cause can't be null");
        }
    
Methods Summary
public java.lang.ThrowablegetCause()

Get the cause of this XPathException.

return
Cause of this XPathException.

        return cause;
    
public voidprintStackTrace(java.io.PrintStream s)

Print stack trace to specified PrintStream.

param
s Print stack trace to this PrintStream.

        if (getCause() != null) {
            getCause().printStackTrace(s);
          s.println("--------------- linked to ------------------");
        }

        super.printStackTrace(s);
    
public voidprintStackTrace()

Print stack trace to System.err.

        printStackTrace(System.err);
    
public voidprintStackTrace(java.io.PrintWriter s)

Print stack trace to specified PrintWriter.

param
s Print stack trace to this PrintWriter.


        if (getCause() != null) {
            getCause().printStackTrace(s);
          s.println("--------------- linked to ------------------");
        }

        super.printStackTrace(s);