Table of Contents

Struct SuppressExceptionExecutorProvider<T1, T2>

Namespace
Executables.Executors
Assembly
executables.dll

Provides suppression executor for executors.

public readonly ref struct SuppressExceptionExecutorProvider<T1, T2>

Type Parameters

T1
T2
Inherited Members

Constructors

SuppressExceptionExecutorProvider(IExecutor<T1, T2>)

Provides suppression executor for executors.

public SuppressExceptionExecutorProvider(IExecutor<T1, T2> executor)

Parameters

executor IExecutor<T1, T2>

Methods

OfType<TEx>()

Suppresses exceptions of the specified type and converts the result into Optional<T>.

public IExecutor<T1, Optional<T2>> OfType<TEx>() where TEx : Exception

Returns

IExecutor<T1, Optional<T2>>

Executor that returns an empty optional when suppressed exception occurs.

Type Parameters

TEx

Exception type to suppress.