Class OnSubscribeThrow<T>

java.lang.Object
rx.internal.operators.OnSubscribeThrow<T>
Type Parameters:
T - the type of item (ostensibly) emitted by the Observable
All Implemented Interfaces:
Action, Action1<Subscriber<? super T>>, Function, Observable.OnSubscribe<T>

public final class OnSubscribeThrow<T> extends Object implements Observable.OnSubscribe<T>
An Observable that invokes onError when the Observer subscribes to it.
  • Field Details

    • exception

      private final Throwable exception
  • Constructor Details

    • OnSubscribeThrow

      public OnSubscribeThrow(Throwable exception)
  • Method Details