com.opensymphony.xwork2.interceptor
Class ExceptionHolder

java.lang.Object
  extended by com.opensymphony.xwork2.interceptor.ExceptionHolder
All Implemented Interfaces:
java.io.Serializable

public class ExceptionHolder
extends java.lang.Object
implements java.io.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:
Serialized Form

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

ExceptionHolder

public ExceptionHolder(java.lang.Exception exception)
Holds the given exception

Parameters:
exception - the exception to hold.
Method Detail

getException

public java.lang.Exception getException()
Gets the holded exception

Returns:
the holded exception

getExceptionStack

public java.lang.String getExceptionStack()
Gets the holded exception stacktrace using Throwable.printStackTrace().

Returns:
stacktrace


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.