Package org.springframework.batch.repeat.exception

# Class DefaultExceptionHandler

java.lang.Object
org.springframework.batch.repeat.exception.DefaultExceptionHandler

All Implemented Interfaces:
  `ExceptionHandler`

public class DefaultExceptionHandler extends Object implements ExceptionHandler
Default implementation of `ExceptionHandler` - just re-throws the exception it encounters.

Author:
  Dave Syer

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultExceptionHandler()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `handleException(RepeatContext context, Throwable throwable)`
  Re-throw the throwable.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultExceptionHandler

    public DefaultExceptionHandler()

- ## Method Details

  - ### handleException

    public void handleException(RepeatContext context, Throwable throwable) throws Throwable
    Re-throw the throwable.
    Specified by:
      `handleException` in interface `ExceptionHandler`
    Parameters:
      `context` - the current `RepeatContext`. Can be used to store state (via attributes), for example to count the number of occurrences of a particular exception type and implement a threshold policy.
      `throwable` - an exception.
    Throws:
      `Throwable` - implementations are free to re-throw the exception
    See Also:
      - `ExceptionHandler.handleException(RepeatContext, Throwable)`