Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.xml.dom.ls
Class DomLSEx  view DomLSEx download DomLSEx.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.w3c.dom.ls.LSException
                  extended bygnu.xml.dom.ls.DomLSEx
All Implemented Interfaces:
java.io.Serializable

public class DomLSEx
extends org.w3c.dom.ls.LSException

A DOM LS exception incorporating a cause.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  java.lang.Exception cause2
           
 
Fields inherited from class org.w3c.dom.ls.LSException
code, PARSE_ERR, SERIALIZE_ERR
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
DomLSEx(short type, java.lang.Exception cause)
           
 
Method Summary
 void printStackTrace(java.io.PrintStream out)
          Print a stack trace to the specified PrintStream.
 void printStackTrace(java.io.PrintWriter out)
          Prints the exception, the detailed message and the stack trace associated with this Throwable to the given PrintWriter.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cause2

private final java.lang.Exception cause2
Constructor Detail

DomLSEx

public DomLSEx(short type,
               java.lang.Exception cause)
Method Detail

printStackTrace

public void printStackTrace(java.io.PrintStream out)
Description copied from class: java.lang.Throwable
Print a stack trace to the specified PrintStream. See Throwable.printStackTrace()>Throwable.printStackTrace() 55 for the sample format.


printStackTrace

public void printStackTrace(java.io.PrintWriter out)
Description copied from class: java.lang.Throwable
Prints the exception, the detailed message and the stack trace associated with this Throwable to the given PrintWriter. The actual output written is implemention specific. Use the result of getStackTrace() when more precise information is needed.

This implementation first prints a line with the result of this object's toString() method.
Then for all elements given by getStackTrace it prints a line containing three spaces, the string "at " and the result of calling the toString() method on the StackTraceElement object. If getStackTrace() returns an empty array it prints a line containing three spaces and the string "<<No stacktrace available>>".
Then if getCause() doesn't return null it adds a line starting with "Caused by: " and the result of calling toString() on the cause.
Then for every cause (of a cause, etc) the stacktrace is printed the same as for the top level Throwable except that as soon as all the remaining stack frames of the cause are the same as the the last stack frames of the throwable that the cause is wrapped in then a line starting with three spaces and the string "... X more" is printed, where X is the number of remaining stackframes.