Table of Contents

Create Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/ExceptionCondition.cs

Create(Func<TResult, TException>)

Specifies the function delegate that determines the Exception to be thrown.

public ExceptionInvoker<TException, TResult> Create(Func<TResult, TException> handler)

Parameters

handler Func<TResult, TException>

The function delegate that determines the Exception to be thrown.

Returns

ExceptionInvoker<TException, TResult>

An ExceptionInvoker<TException> with the specified handler.

Exceptions

ArgumentNullException

handler cannot be null.