Package org.apache.struts2.interceptor
Class ExceptionHolder
java.lang.Object
org.apache.struts2.interceptor.ExceptionHolder
- All Implemented Interfaces:
- Serializable
 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.
 
- Author:
- Matthew E. Porter (matthew dot porter at metissian dot com)
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the held exceptionGets the held exception stack trace usingThrowable.printStackTrace().
- 
Constructor Details- 
ExceptionHolderHolds the given exception- Parameters:
- exception- the exception to hold.
 
 
- 
- 
Method Details- 
getExceptionGets the held exception- Returns:
- the held exception
 
- 
getExceptionStackGets the held exception stack trace usingThrowable.printStackTrace().- Returns:
- stack trace
 
 
-