|
||||||||||
| 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(Exception exception)
Holds the given exception |
|
| Method Summary | |
|---|---|
Exception |
getException()
Gets the holded exception |
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(Exception exception)
exception - the exception to hold.| Method Detail |
|---|
public Exception getException()
public String getExceptionStack()
Throwable.printStackTrace().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||