The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.


ReactiveTest.OnError<T> Method

Factory method for a recorded OnError notification at a given time with a given error.

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


Public Shared Function OnError(Of T) ( _
    ticks As Long, _
    exception As Exception _
) As Recorded(Of Notification(Of T))
Dim ticks As Long
Dim exception As Exception
Dim returnValue As Recorded(Of Notification(Of T))

returnValue = ReactiveTest.OnError(ticks, _
public static Recorded<Notification<T>> OnError<T>(
    long ticks,
    Exception exception
generic<typename T>
static Recorded<Notification<T>^> OnError(
    long long ticks, 
    Exception^ exception
static member OnError : 
        ticks:int64 * 
        exception:Exception -> Recorded<Notification<'T>> 
JScript does not support generic types and methods.

Type Parameters

  • T


  • ticks
    Type: System.Int64
    Recorded virtual time the OnError notification occurs.

  • exception
    Type: System.Exception
    Recorded exception stored in the OnError notification.

Return Value

Type: Microsoft.Reactive.Testing.Recorded<Notification<T>>
Recorded OnError notification.

See Also


ReactiveTest Class

Microsoft.Reactive.Testing Namespace