Class ExceptionCauseIterator
java.lang.Object
org.broadinstitute.http.nio.utils.ExceptionCauseIterator
public class ExceptionCauseIterator
extends Object
implements Iterator<Throwable>, Iterable<Throwable>
Iterate through the cause chain of a Throwable to examine all the causes in turn
Bounded by MAX_DEPTH in order to prevent infinite loops.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
MAX_DEPTH
public static final int MAX_DEPTHThe maximum depth of causes to explore before stopping- See Also:
-
next
-
depth
private int depth
-
-
Constructor Details
-
ExceptionCauseIterator
- Parameters:
ex- the exception which will be iterated through
-
-
Method Details