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.
- version:
< - tt>$Revision: 1.4 $
- author:
< - a href="mailto:jason@planet57.com">Jason Dillon
| Field Summary |
|---|
| protected final Throwable | nested | The nested throwable |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from org.jboss.util.NestedRuntimeException Detail: |
public Throwable getCause() {
return nested;
}
|
public String getMessage() {
return NestedThrowable.Util.getMessage(super.getMessage(), nested);
}
Returns the composite throwable message. |
public Throwable getNested() {
return nested;
}
Return the nested Throwable. |
public void printStackTrace() {
printStackTrace(System.err);
}
Prints the composite message and the embedded stack trace to
System.err. |
public void printStackTrace(PrintStream stream) {
if (nested == null || NestedThrowable.PARENT_TRACE_ENABLED) {
super.printStackTrace(stream);
}
NestedThrowable.Util.print(nested, stream);
}
Prints the composite message and the embedded stack trace to the
specified print stream. |
public void printStackTrace(PrintWriter writer) {
if (nested == null || NestedThrowable.PARENT_TRACE_ENABLED) {
super.printStackTrace(writer);
}
NestedThrowable.Util.print(nested, writer);
}
Prints the composite message and the embedded stack trace to the
specified print writer. |