public class ExceptionStack extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
|
ExceptionStack()
Basic constructor, needed to make the class a bean, please don't use
|
protected |
ExceptionStack(Collection<Throwable> causeChainElements,
int currentElementIndex)
Deprecated.
There shouldn't be a use for this, please use the other constructor
|
|
ExceptionStack(Throwable exception)
Builds the stack from the given exception.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dropCause() |
Collection<Throwable> |
getCauseElements() |
Throwable |
getCurrent()
Current exception in the iteration
|
Throwable |
getNext() |
Deque<ExceptionStackItem> |
getOrigExceptionStackItems()
The original exception stack if it has been changed.
|
Collection<Throwable> |
getRemaining() |
boolean |
isLast()
Test if iteration is finished
|
boolean |
isRoot()
Tests if the current exception is the root exception
|
void |
setCauseElements(Collection<Throwable> elements) |
public ExceptionStack()
public ExceptionStack(Throwable exception)
exception
- Caught exception@Deprecated protected ExceptionStack(Collection<Throwable> causeChainElements, int currentElementIndex)
causeChainElements
- collection of all causing elements for an exception from top to bottom (not
unwrapped).currentElementIndex
- index of current element within the causeChainElements.IllegalArgumentException
- if causeChainElements is empty or null.public Collection<Throwable> getCauseElements()
public boolean isLast()
public Throwable getNext()
public Collection<Throwable> getRemaining()
public boolean isRoot()
public Throwable getCurrent()
public void setCauseElements(Collection<Throwable> elements)
public Deque<ExceptionStackItem> getOrigExceptionStackItems()
protected void dropCause()
Copyright © 2012 Seam Framework. All Rights Reserved.