Qbservable

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)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Catch(Of TSource, TException) ( _
    source As IQbservable(Of TSource), _
    handler As Expression(Of Func(Of TException, IObservable(Of TSource))) _
) As IQbservable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim handler As Expression(Of Func(Of TException, IObservable(Of TSource)))
Dim returnValue As IQbservable(Of TSource)

returnValue = source.Catch(handler)
public static IQbservable<TSource> Catch<TSource, TException>(
    this IQbservable<TSource> source,
    Expression<Func<TException, IObservable<TSource>>> handler
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TException>
static IQbservable<TSource>^ Catch(
    IQbservable<TSource>^ source, 
    Expression<Func<TException, IObservable<TSource>^>^>^ handler
)
static member Catch : 
        source:IQbservable<'TSource> * 
        handler:Expression<Func<'TException, IObservable<'TSource>>> -> IQbservable<'TSource> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The type of source.

  • TException
    The type of the exception.

Parameters

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 or .

See Also

Reference

Qbservable Class

Catch Overload

System.Reactive.Linq Namespace