Package org.springframework.batch.core.step.item

# Class SkipWrapper<T>

java.lang.Object
org.springframework.batch.core.step.item.SkipWrapper<T>

public class SkipWrapper<T> extends Object
Wrapper for an item and its exception if it failed processing.

Author:
  Dave Syer, Mahmoud Ben Hassine

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SkipWrapper(Throwable e)`
  `SkipWrapper(T item)`
  `SkipWrapper(T item, Throwable e)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Throwable`
  `getException()`
  Public getter for the exception.
  `T`
  `getItem()`
  Public getter for the item.
  `String`
  `toString()`

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

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

- ## Constructor Details

  - ### SkipWrapper

    public SkipWrapper(T item)
    Parameters:
      `item` - the item being wrapped.

  - ### SkipWrapper

    public SkipWrapper(Throwable e)
    Parameters:
      `e` - instance of `Throwable` that being wrapped.

  - ### SkipWrapper

    public SkipWrapper(T item, @Nullable Throwable e)

- ## Method Details

  - ### getException

    @Nullable public Throwable getException()
    Public getter for the exception.
    Returns:
      the exception

  - ### getItem

    public T getItem()
    Public getter for the item.
    Returns:
      the item

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`