aicas logoJamaica 3.2 release 62

javax.xml.xpath
Class XPathException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.xpath.XPathException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
XPathExpressionException, XPathFactoryConfigurationException

public class XPathException
extends Exception

A generic XPath exception.

Since:
1.3
See Also:
Serialized Form

Constructor Summary
XPathException(String message)
           
XPathException(Throwable cause)
           
 
Method Summary
 Throwable getCause()
          getCause returns the cause of this exception or null if no cause was set.
 void printStackTrace()
          Print stack trace of this Throwable to System.err.
 void printStackTrace(PrintStream out)
          Print the stack trace of this Throwable to the given stream.
 void printStackTrace(PrintWriter out)
          Print the stack trace of this Throwable to the given PrintWriter.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPathException

public XPathException(String message)

XPathException

public XPathException(Throwable cause)
Method Detail

getCause

public Throwable getCause()
Description copied from class: Throwable
getCause returns the cause of this exception or null if no cause was set. The cause is another exception that was caught before this exception was created.

Overrides:
getCause in class Throwable
Returns:
The cause or null.

printStackTrace

public void printStackTrace()
Description copied from class: Throwable
Print stack trace of this Throwable to System.err.

The printed stack trace contains the result of toString() as the first line followed by one line for each stack trace element that contains the name of the method or constructor, optionally followed by the source file name and source file line number if available.

For JamaicaVM, this routine also works before System was initialized by using low-level exception printing mechanisms provided by class com.aicas.jamaica.lang.Debug.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream out)
Description copied from class: Throwable
Print the stack trace of this Throwable to the given stream.

The printed stack trace contains the result of toString() as the first line followed by one line for each stack trace element that contains the name of the method or constructor, optionally followed by the source file name and source file line number if available.

For JamaicaVM, if printing to the stream causes another exception, low-level exception printing mechanisms provided by class com.aicas.jamaica.lang.Debug will be used to print the exception to stderr.

Overrides:
printStackTrace in class Throwable
Parameters:
out - the stream to print to.

printStackTrace

public void printStackTrace(PrintWriter out)
Description copied from class: Throwable
Print the stack trace of this Throwable to the given PrintWriter.

The printed stack trace contains the result of toString() as the first line followed by one line for each stack trace element that contains the name of the method or constructor, optionally followed by the source file name and source file line number if available.

For JamaicaVM, if printing to the PrintWriter causes another exception, low-level exception printing mechanisms provided by class com.aicas.jamaica.lang.Debug will be used to print the exception to stderr.

Overrides:
printStackTrace in class Throwable
Parameters:
out - the PrintWriter to write to.

aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.