org.jboss.solder.exception.filter
Class ExceptionStackOutput<T extends Throwable>
java.lang.Object
org.jboss.solder.exception.filter.ExceptionStackOutput<T>
public class ExceptionStackOutput<T extends Throwable>
- extends Object
This replaces the typical output of originalException stack traces. The stack is printed inverted of the standard
way, meaning the stack is unwrapped and the root cause is printed first followed by the next exception that wrapped
the root cause. This class is immutable.
It may also make use of StackFrameFilter instances to filter the stack trace output.
|
Constructor Summary |
ExceptionStackOutput(T exception)
Constructor to be used if not filtering is desired. |
ExceptionStackOutput(T exception,
org.jboss.solder.exception.filter.StackFrameFilter<T> filter)
Constructor which includes filtering |
|
Method Summary |
String |
printTrace()
Prints the stack trace for this instance, using any current filters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOT_CAUSE_TEXT
public static final String ROOT_CAUSE_TEXT
AT_TEXT
public static final String AT_TEXT
WRAPPED_BY_TEXT
public static final String WRAPPED_BY_TEXT
ExceptionStackOutput
public ExceptionStackOutput(T exception)
- Constructor to be used if not filtering is desired.
- Parameters:
exception - Exception containing stack to be displayed
ExceptionStackOutput
public ExceptionStackOutput(T exception,
org.jboss.solder.exception.filter.StackFrameFilter<T> filter)
- Constructor which includes filtering
- Parameters:
exception - Exception containing stack to be displayedfilter - a StackFrameFilter instance used to do the filtering
printTrace
public String printTrace()
- Prints the stack trace for this instance, using any current filters.
- Returns:
- stack trace in string representation
Copyright © 2008-2011 Seam Framework. All Rights Reserved.