Skip to content

Notification.CreateOnError(Exception) method

Defined in

Type: Notification Namespace: System.Reactive Assembly: System.Reactive.dll

Applies to

netstandard2.0

public static Notification<T> CreateOnError<T>(Exception error)

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

Type parameters

NameDescription
TThe type of the elements received by the observer. Upon dematerialization of the notifications into an observable sequence, this type is used as the element type for the sequence.

Parameters

NameTypeDescription
errorExceptionThe exception contained in the notification.

Returns: Notification -- The OnError notification containing the exception.

Exceptions

TypeCondition
System.ArgumentNullExceptionerror is null.