Class SafeSingleObserver<T>

  • Type Parameters:
    T - the element type of the sequence
    All Implemented Interfaces:
    SingleObserver<T>

    public final class SafeSingleObserver<T>
    extends java.lang.Object
    implements SingleObserver<T>
    Wraps another SingleObserver and catches exceptions thrown by its onSubscribe, onSuccess or onError methods despite the protocol forbids it.

    Such exceptions are routed to the RxJavaPlugins.onError(Throwable) handler.

    Since:
    3.0.0