Observable.Throw(TResult) Method (Exception, IScheduler)

Returns an observable sequence that terminates with an exception with the specified scheduler.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

static member Throw : 
        exception:Exception * 
        scheduler:IScheduler -> IObservable<'TResult> 

Type Parameters

TResult

The type of result.

Parameters

exception
Type: System.Exception
The exception object used for the sequence’s termination.
scheduler
Type: System.Reactive.Concurrency.IScheduler
The scheduler to send the exceptional termination call on.

Return Value

Type: System.IObservable(TResult)
Observable sequence that terminates exceptionally with the specified exception object.
Show: