public class NeverSkipItemSkipPolicy extends java.lang.Object implements SkipPolicy
SkipPolicy
implementation that always returns false,
indicating that an item should not be skipped.Constructor and Description |
---|
NeverSkipItemSkipPolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldSkip(java.lang.Throwable t,
int skipCount)
Returns true or false, indicating whether or not processing should
continue with the given throwable.
|
public boolean shouldSkip(java.lang.Throwable t, int skipCount)
SkipPolicy
skipCount<0
to probe for exception types that are skippable,
so implementations should be able to handle gracefully the case where
skipCount<0
. Implementations should avoid throwing any
undeclared exceptions.shouldSkip
in interface SkipPolicy
t
- exception encountered while readingskipCount
- currently running count of skips