Class SafeMaybeObserver<T>

java.lang.Object
io.reactivex.rxjava3.internal.observers.SafeMaybeObserver<T>
Type Parameters:
T - the element type of the sequence
All Implemented Interfaces:
MaybeObserver<T>

public final class SafeMaybeObserver<T> extends 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