gnu.beanfactory
Class EncapsulatedRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--gnu.beanfactory.EncapsulatedRuntimeException
All Implemented Interfaces:
java.io.Serializable

public class EncapsulatedRuntimeException
extends java.lang.RuntimeException

Piggyback a checked exception on a RuntimException. Please note that this exception has a legitimate use, but should not be abused.

See Also:
Serialized Form

Constructor Summary
EncapsulatedRuntimeException(java.lang.Throwable t)
           
 
Method Summary
 java.lang.Throwable getRootCause()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream ps)
           
 void printStackTrace(java.io.PrintWriter pw)
           
 void setRootCause(java.lang.Throwable root)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EncapsulatedRuntimeException

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

setRootCause

public void setRootCause(java.lang.Throwable root)

getRootCause

public java.lang.Throwable getRootCause()

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Overrides:
printStackTrace in class java.lang.Throwable