Qbservable::Catch<TSource, TException> Method (IQbservable<TSource>, Expression<Func<TException, IObservable<TSource>>>)

Continues a queryable observable sequence that is terminated by an exception of the specified type with the queryable observable sequence produced by the handler.

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

generic<typename TSource, typename TException>
static IQbservable<TSource>^ Catch(
	IQbservable<TSource>^ source, 
	Expression<Func<TException, IObservable<TSource>^>^>^ handler

Type Parameters


The type of source.


The type of the exception.


Type: System.Reactive.Linq::IQbservable<TSource>
The source sequence.
Type: System.Linq.Expressions::Expression<Func<TException, IObservable<TSource>>>
The exception handler function, producing another queryable observable sequence.

Return Value

Type: System.Reactive.Linq::IQbservable<TSource>
A queryable observable sequence containing the source sequence's elements, followed by the elements produced by the handler's resulting queryable observable sequence in case an exception occurred.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.