public static class CollectionUtil.FilterException extends RuntimeException
CollectionUtil.filter(java.util.Collection<V>, net.sf.kdgcommons.collections.CollectionUtil.Predicate<V>)
. Contains the wrapped exception,
the value and index that caused the exception, and the results-to-date.
Note: because Java does not allow parameterization of Throwable
subclasses (JLS 8.1.2), the value and results are held as Object
s.
Constructor and Description |
---|
FilterException(Throwable cause,
int index,
Object value,
List<?> partialResults) |
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns the position (0-based) in the original collection's iteration where the
wrapped exception was thrown.
|
List<?> |
getPartialResults()
Returns any partial results from the map operation.
|
Object |
getValue()
Returns the value that caused the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public int getIndex()
public Object getValue()
public List<?> getPartialResults()
Warning: the contents of this list are undefined in the case of a parallel map operation.