TaskObservableMethodBuilder.SetException(Exception) method¶
Defined in
Type: TaskObservableMethodBuilderSystem.Runtime.CompilerServices
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public void SetException(Exception exception)
Summary: Marks the observable as failed and binds the specified exception to the observable sequence.
Parameters
| Name | Type | Description |
|---|---|---|
exception | Exception | The exception to bind to the observable sequence. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | exception is null. |
| System.InvalidOperationException | The observable has already completed. |