Share via


Notification.CreateOnError<T> Method

Creates an object that represents an OnError notification to an observer.

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

Syntax

'Declaration
Public Shared Function CreateOnError(Of T) ( _
    error As Exception _
) As Notification(Of T)
'Usage
Dim error As Exception
Dim returnValue As Notification(Of T)

returnValue = Notification.CreateOnError(error)
public static Notification<T> CreateOnError<T>(
    Exception error
)
public:
generic<typename T>
static Notification<T>^ CreateOnError(
    Exception^ error
)
static member CreateOnError : 
        error:Exception -> Notification<'T> 
JScript does not support generic types and methods.

Type Parameters

  • T
    The notification argument type.

Parameters

Return Value

Type: System.Reactive.Notification<T>
The OnError notification containing the exception.

See Also

Reference

Notification Class

System.Reactive Namespace