Class SkipWrapper<T>


  • public class SkipWrapper<T>
    extends java.lang.Object
    Wrapper for an item and its exception if it failed processing.
    Author:
    Dave Syer, Mahmoud Ben Hassine
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.lang.ThrowablegetException()
      Public getter for the exception.
      TgetItem()
      Public getter for the item.
      java.lang.StringtoString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SkipWrapper

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

        public SkipWrapper​(java.lang.Throwable e)
        Parameters:
        e - instance of Throwable that being wrapped.
      • SkipWrapper

        public SkipWrapper​(T item,
                           @Nullable
                           java.lang.Throwable e)
    • Method Detail

      • getException

        @Nullable
        public java.lang.Throwable getException()
        Public getter for the exception.
        Returns:
        the exception
      • getItem

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object