org.springframework.batch.core.step.skip

## Interface SkipPolicy

- All Known Implementing Classes:
    AlwaysSkipItemSkipPolicy, CompositeSkipPolicy, ExceptionClassifierSkipPolicy, LimitCheckingItemSkipPolicy, NeverSkipItemSkipPolicy

      public interface SkipPolicy

  Policy for determining whether or not some processing should be skipped.
  Author:
    Lucas Ward, Dave Syer

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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.

- - ### Method Detail

    - #### shouldSkip

          boolean shouldSkip(java.lang.Throwable t,
                             int skipCount)
                      throws SkipLimitExceededException

      Returns true or false, indicating whether or not processing should continue with the given throwable. Clients may use `skipCount&lt;0` to probe for exception types that are skippable, so implementations should be able to handle gracefully the case where `skipCount&lt;0`. Implementations should avoid throwing any undeclared exceptions.
      Parameters:
        `t` - exception encountered while reading
        `skipCount` - currently running count of skips
      Returns:
        true if processing should continue, false otherwise.
      Throws:
        `SkipLimitExceededException` - if a limit is breached
        `java.lang.IllegalArgumentException` - if the exception is null