/** * Given the provided exception and skip count, determine whether or not * processing should continue for the given exception. If the exception is * not classified as skippable in the classifier, false will be returned. If * the exception is classified as skippable and {@link StepExecution} * skipCount is greater than the skipLimit, then a * {@link SkipLimitExceededException} will be thrown. */ @Override public boolean shouldSkip(Throwable t, int skipCount) { if (skippableExceptionClassifier.classify(t)) { if (skipCount < skipLimit) { return true; } else { throw new SkipLimitExceededException(skipLimit, t); } } else { return false; } }
/** * Given the provided exception and skip count, determine whether or not * processing should continue for the given exception. If the exception is * not classified as skippable in the classifier, false will be returned. If * the exception is classified as skippable and {@link StepExecution} * skipCount is greater than the skipLimit, then a * {@link SkipLimitExceededException} will be thrown. */ @Override public boolean shouldSkip(Throwable t, int skipCount) { if (skippableExceptionClassifier.classify(t)) { if (skipCount < skipLimit) { return true; } else { throw new SkipLimitExceededException(skipLimit, t); } } else { return false; } }
/** * Given the provided exception and skip count, determine whether or not * processing should continue for the given exception. If the exception is * not classified as skippable in the classifier, false will be returned. If * the exception is classified as skippable and {@link StepExecution} * skipCount is greater than the skipLimit, then a * {@link SkipLimitExceededException} will be thrown. */ public boolean shouldSkip(Throwable t, int skipCount) { if (skippableExceptionClassifier.classify(t)) { if (skipCount < skipLimit) { return true; } else { throw new SkipLimitExceededException(skipLimit, t); } } else { return false; } }
/** * Given the provided exception and skip count, determine whether or not * processing should continue for the given exception. If the exception is * not classified as skippable in the classifier, false will be returned. If * the exception is classified as skippable and {@link StepExecution} * skipCount is greater than the skipLimit, then a * {@link SkipLimitExceededException} will be thrown. */ @Override public boolean shouldSkip(Throwable t, int skipCount) { if (skippableExceptionClassifier.classify(t)) { if (skipCount < skipLimit) { return true; } else { throw new SkipLimitExceededException(skipLimit, t); } } else { return false; } }
/** * Given the provided exception and skip count, determine whether or not * processing should continue for the given exception. If the exception is * not classified as skippable in the classifier, false will be returned. If * the exception is classified as skippable and {@link StepExecution} * skipCount is greater than the skipLimit, then a * {@link SkipLimitExceededException} will be thrown. */ @Override public boolean shouldSkip(Throwable t, int skipCount) { if (skippableExceptionClassifier.classify(t)) { if (skipCount < skipLimit) { return true; } else { throw new SkipLimitExceededException(skipLimit, t); } } else { return false; } }