Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » util » [javadoc | source]
org.jboss.util
public class: NestedRuntimeException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            org.jboss.util.NestedRuntimeException

All Implemented Interfaces:
    NestedThrowable, Serializable

Direct Known Subclasses:
    NotCoercibleException, PropertyException, DataConversionException, CoercionException

A common superclass for RuntimeException classes that can contain a nested Throwable detail object.
Field Summary
protected final  Throwable nested    The nested throwable 
Constructor:
 public NestedRuntimeException() 
 public NestedRuntimeException(String msg) 
    Construct a NestedRuntimeException with the specified detail message.
    Parameters:
    msg - Detail message.
 public NestedRuntimeException(Throwable nested) 
    Construct a NestedRuntimeException with the specified nested Throwable.
    Parameters:
    nested - Nested Throwable.
 public NestedRuntimeException(String msg,
    Throwable nested) 
    Construct a NestedRuntimeException with the specified detail message and nested Throwable.
    Parameters:
    msg - Detail message.
    nested - Nested Throwable.
Method from org.jboss.util.NestedRuntimeException Summary:
getCause,   getMessage,   getNested,   printStackTrace,   printStackTrace,   printStackTrace
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.util.NestedRuntimeException Detail:
 public Throwable getCause() 
    Return the nested Throwable.

    For JDK 1.4 compatibility.

 public String getMessage() 
    Returns the composite throwable message.
 public Throwable getNested() 
    Return the nested Throwable.
 public  void printStackTrace() 
    Prints the composite message and the embedded stack trace to System.err.
 public  void printStackTrace(PrintStream stream) 
    Prints the composite message and the embedded stack trace to the specified print stream.
 public  void printStackTrace(PrintWriter writer) 
    Prints the composite message and the embedded stack trace to the specified print writer.