public interface SkipPolicy
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldSkip(Throwable t,
int skipCount)
Returns true or false, indicating whether or not processing should
continue with the given throwable.
|
boolean shouldSkip(Throwable t, int skipCount) throws SkipLimitExceededException
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.t - exception encountered while readingskipCount - currently running count of skipsSkipLimitExceededException - if a limit is breachedIllegalArgumentException - if the exception is nullCopyright © 2014. All rights reserved.