com.jcoverage.util
Class NestedRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.jcoverage.util.NestedRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CoverageRuntimeException

public class NestedRuntimeException
extends java.lang.RuntimeException

J2SE 1.4 introduced a common API to record the fact that one exception caused another, to access causative exceptions, and to access the entire "causal chain" as part of the standard stack backtrace.

This class provides support for such "causal chains" under earlier JDKs

See Also:
Chained Exception, Serialized Form

Field Summary
(package private) static java.lang.String CONTAINED_EXCEPTION
           
(package private)  java.lang.Throwable detail
           
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
NestedRuntimeException()
           
NestedRuntimeException(java.lang.String s)
           
NestedRuntimeException(java.lang.String s, java.lang.Throwable t)
           
NestedRuntimeException(java.lang.Throwable t)
           
 
Method Summary
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream out)
           
 void printStackTrace(java.io.PrintWriter out)
           
(package private)  boolean supportChainedException()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

detail

java.lang.Throwable detail

CONTAINED_EXCEPTION

static final java.lang.String CONTAINED_EXCEPTION
See Also:
Constant Field Values
Constructor Detail

NestedRuntimeException

public NestedRuntimeException()

NestedRuntimeException

public NestedRuntimeException(java.lang.String s)

NestedRuntimeException

public NestedRuntimeException(java.lang.String s,
                              java.lang.Throwable t)

NestedRuntimeException

public NestedRuntimeException(java.lang.Throwable t)
Method Detail

supportChainedException

boolean supportChainedException()

printStackTrace

public void printStackTrace(java.io.PrintStream out)

printStackTrace

public void printStackTrace(java.io.PrintWriter out)

printStackTrace

public void printStackTrace()

toString

public java.lang.String toString()