ThrowExceptionIf(Config<bool>, Config<Exception>) Constructor
Throws the specified exception if the condition is true.
Namespace
Statiq.Core
Containing Type
ThrowExceptionIf

Syntax

public ThrowExceptionIf(Config<bool> condition, Config<Exception> exception)

Parameters

Name Type Description
condition Config<bool> The condition to check.
exception Config<Exception> The exception to throw or null not to throw an exception.