|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.makumba.commons.WrappedException
public class WrappedException
Wraps an exception to throw it further as a desired exception type. stacktraces of this exception will actually print the stracktrace of the wrapped exception.
Field Summary | |
---|---|
(package private) Throwable |
t
|
Constructor Summary | |
---|---|
WrappedException()
wrap nothing |
|
WrappedException(String s,
boolean isControllerOriginated)
wrap nothing, store a message |
|
WrappedException(Throwable e,
boolean isControllerOriginated)
wrap the given exception |
|
WrappedException(Throwable e,
String s)
wrap the given exception |
Method Summary | |
---|---|
Throwable |
getReason()
return the wrapped exception |
boolean |
isControllerOriginated()
checks whether this exception originated in Controller or at the JSP level |
void |
printStackTrace()
print the stacktrace of the wrapped exception |
void |
printStackTrace(PrintStream ps)
print the stacktrace of the wrapped exception |
void |
printStackTrace(PrintWriter ps)
print the stacktrace of the wrapped exception |
String |
toString()
the class name of this exception, then the toString of the wrapped |
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 |
---|
Throwable t
Constructor Detail |
---|
public WrappedException(Throwable e, boolean isControllerOriginated)
public WrappedException(Throwable e, String s)
public WrappedException()
public WrappedException(String s, boolean isControllerOriginated)
Method Detail |
---|
public Throwable getReason()
public boolean isControllerOriginated()
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream ps)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter ps)
printStackTrace
in class Throwable
public String toString()
toString
in class Throwable
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |