Package 

Class OnErrorThrowable.OnNextValue

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class OnErrorThrowable.OnNextValue
    extends RuntimeException
                        

    Represents an exception that was encountered while trying to emit an item from an Observable, andtries to preserve that item for future use and/or reporting.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Object value
    • Constructor Summary

      Constructors 
      Constructor Description
      OnErrorThrowable.OnNextValue(Object value) Create an {@code OnNextValue} exception and include in its error message a string representation ofthe item that was intended to be emitted at the time the exception was handled.
    • Method Summary

      Modifier and Type Method Description
      Object getValue() Retrieve the item that the Observable was trying to emit at the time this exception occurred.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • OnErrorThrowable.OnNextValue

        OnErrorThrowable.OnNextValue(Object value)
        Create an {@code OnNextValue} exception and include in its error message a string representation ofthe item that was intended to be emitted at the time the exception was handled.
        Parameters:
        value - the item that the Observable was trying to emit at the time of the exception
    • Method Detail

      • getValue

         Object getValue()

        Retrieve the item that the Observable was trying to emit at the time this exception occurred.