Observable.Catch<TSource, TException> Method (IObservable<TSource>, Func<TException, IObservable<TSource>>)

March 22, 2012

Continues an observable sequence that is terminated by an exception with the next observable sequence.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

public static IObservable<TSource> Catch<TSource, TException>(
	this IObservable<TSource> source,
	Func<TException, IObservable<TSource>> handler
)
where TException : Exception

Type Parameters

TSource
TException

Parameters

source
Type: System.IObservable<TSource>
handler
Type: System.Func<TException, IObservable<TSource>>

Return Value

Type: System.IObservable<TSource>
Returns IObservable<T>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<TSource>. When you use instance method syntax to call this method, omit the first parameter.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: