Class OnErrorThrowable.OnNextValue

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    OnErrorThrowable


    public static class OnErrorThrowable.OnNextValue
    extends RuntimeException
    Represents an exception that was encountered while trying to emit an item from an Observable, and tries to preserve that item for future use and/or reporting.
    See Also:
    Serialized Form
    • Constructor Detail

      • OnNextValue

        public OnNextValue(Object value)
        Create an OnNextValue exception and include in its error message a string representation of the 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

        public Object getValue()
        Retrieve the item that the Observable was trying to emit at the time this exception occurred.
        Returns:
        the item that the Observable was trying to emit at the time of the exception