public class CompositeSkipPolicy extends Object implements SkipPolicy
Constructor and Description |
---|
CompositeSkipPolicy() |
CompositeSkipPolicy(SkipPolicy[] skipPolicies) |
Modifier and Type | Method and Description |
---|---|
void |
setSkipPolicies(SkipPolicy[] skipPolicies) |
boolean |
shouldSkip(Throwable t,
int skipCount)
Returns true or false, indicating whether or not processing should
continue with the given throwable.
|
public CompositeSkipPolicy()
public CompositeSkipPolicy(SkipPolicy[] skipPolicies)
public void setSkipPolicies(SkipPolicy[] skipPolicies)
public boolean shouldSkip(Throwable t, int skipCount) throws SkipLimitExceededException
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 skipsSkipLimitExceededException
- if a limit is breachedCopyright © 2014 Pivotal. All rights reserved.