@Typed public class ExceptionStackEvent extends Object implements Serializable
Constructor and Description |
---|
ExceptionStackEvent(Throwable exception)
Builds the stack from the given exception.
|
Modifier and Type | Method and Description |
---|---|
Collection<Throwable> |
getCauseElements() |
Throwable |
getCurrent()
Current exception in the iteration
|
Throwable |
getNext() |
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)
Internal only.
|
void |
skipCause()
Internal only.
|
public ExceptionStackEvent(Throwable exception)
exception
- Caught exceptionpublic 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)
elements
- new stack.public void skipCause()
Copyright © 2016 The Apache Software Foundation. All rights reserved.