|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork2.interceptor.ExceptionHolder
public class ExceptionHolder
A simple wrapper around an exception, providing an easy way to print out the stack trace of the exception as well as a way to get a handle on the exception itself.
Constructor Summary | |
---|---|
ExceptionHolder(java.lang.Exception exception)
Holds the given exception |
Method Summary | |
---|---|
java.lang.Exception |
getException()
Gets the holded exception |
java.lang.String |
getExceptionStack()
Gets the holded exception stacktrace using Throwable.printStackTrace() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionHolder(java.lang.Exception exception)
exception
- the exception to hold.Method Detail |
---|
public java.lang.Exception getException()
public java.lang.String getExceptionStack()
Throwable.printStackTrace()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |