|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.day.util.WrappedException
public abstract class WrappedException
An Exception that wraps another Throwable, and prints its wrapped exception's stack trace as well as its own when printStackTrace is called.
| Field Summary | |
|---|---|
protected Throwable |
rootException
Root failure cause |
| Constructor Summary | |
|---|---|
WrappedException(String s)
Class constructor that creates a WrappedException given
a message describing the failure cause |
|
WrappedException(String s,
Throwable e)
Class constructor that creates a WrappedException given
a message describing the failure cause and a root exception |
|
WrappedException(Throwable t)
Class constructor that creates a WrappedException given
a root exception |
|
| Method Summary | |
|---|---|
String |
getMessage()
Returns the error message string of this exception. |
Throwable |
getRootException()
Returns the root exception of this exception. |
void |
printStackTrace()
Prints this WrappedException and its backtrace to the
standard error stream. |
void |
printStackTrace(PrintStream s)
Prints this WrappedException and its backtrace to the
specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints this WrappedException and its backtrace to
the specified print writer. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Throwable rootException
| Constructor Detail |
|---|
public WrappedException(String s)
WrappedException given
a message describing the failure cause
s - description
public WrappedException(String s,
Throwable e)
WrappedException given
a message describing the failure cause and a root exception
s - descriptione - root failure causepublic WrappedException(Throwable t)
WrappedException given
a root exception
t - root failure cause| Method Detail |
|---|
public String getMessage()
getMessage in class Throwablepublic Throwable getRootException()
public void printStackTrace()
WrappedException and its backtrace to the
standard error stream.
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
WrappedException and its backtrace to the
specified print stream.
printStackTrace in class Throwables - PrintStream to use for outputpublic void printStackTrace(PrintWriter s)
WrappedException and its backtrace to
the specified print writer.
printStackTrace in class Throwables - PrintWriter to use for output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||