Table of Contents

ThrowWhen Method

Definition

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

ThrowWhen(Action<ExceptionCondition<ArgumentException>>)

Validates and throws an ArgumentException (or a derived counterpart) from the specified delegate condition.

public static void ThrowWhen(Action<ExceptionCondition<ArgumentException>> condition)

Parameters

condition Action<ExceptionCondition<ArgumentException>>

The delegate that evaluates, creates and ultimately throws an ArgumentException (or a derived counterpart) from within a given scenario.

Exceptions

ArgumentNullException

condition is null.