Class SafeMaybeObserver<T>

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

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

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

    Since:
    3.0.0