Example usage for org.springframework.batch.repeat.exception ExceptionHandler interface-usage

List of usage examples for org.springframework.batch.repeat.exception ExceptionHandler interface-usage

Introduction

In this page you can find the example usage for org.springframework.batch.repeat.exception ExceptionHandler interface-usage.

Usage

From source file org.ohdsi.webapi.TerminateJobStepExceptionHandler.java

/**
 *
 * @author Chris Knoll <cknoll@ohdsi.org>
 */
public class TerminateJobStepExceptionHandler implements ExceptionHandler {

From source file com.griddynamics.spring.batch.football.internal.FootballExceptionHandler.java

public class FootballExceptionHandler implements ExceptionHandler {

    private static final Log logger = LogFactory.getLog(FootballExceptionHandler.class);

    public void handleException(RepeatContext context, Throwable throwable) throws Throwable {

From source file org.springframework.batch.sample.domain.football.internal.FootballExceptionHandler.java

public class FootballExceptionHandler implements ExceptionHandler {

    private static final Log logger = LogFactory.getLog(FootballExceptionHandler.class);

    @Override
    public void handleException(RepeatContext context, Throwable throwable) throws Throwable {

From source file org.springframework.batch.repeat.exception.LogOrRethrowExceptionHandler.java

/**
 * Implementation of {@link ExceptionHandler} based on an {@link Classifier}.
 * The classifier determines whether to log the exception or rethrow it. The
 * keys in the classifier must be the same as the static enum in this class.
 * 
 * @author Dave Syer

From source file org.springframework.batch.repeat.exception.RethrowOnThresholdExceptionHandler.java

/**
 * Implementation of {@link ExceptionHandler} that rethrows when exceptions of a
 * given type reach a threshold. Requires an {@link Classifier} that maps
 * exception types to unique keys, and also a map from those keys to threshold
 * values (Integer type).
 * 

From source file org.springframework.batch.core.step.item.SimpleRetryExceptionHandler.java

/**
 * An {@link ExceptionHandler} that is aware of the retry context so that it can
 * distinguish between a fatal exception and one that can be retried. Delegates
 * the actual exception handling to another {@link ExceptionHandler}.
 *
 * @author Dave Syer