Class SafeSingleObserver<T>

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

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