<PackageReference Include="ReactiveUI.Primitives.Core" Version="10.2.0" />

ReactiveUI.Primitives.Advanced.ErrorCaptureWitness<T>

public sealed class ErrorCaptureWitness<T> : IObserver<T>
Observer that captures the first error seen during synchronous subscribe.
public Exception Error { get; }

Gets the captured error, or null if none.

public static Exception SubscribeGetError(IObservable<T> source)

Subscribes to source and returns the first error emitted during the synchronous subscribe call.

public void OnCompleted()

public void OnError(Exception error)

public void OnNext(T value)