ThrowExceptionIf(Config<bool>, Config<string>) Constructor
Throws a ExecutionException with the specified message if the condition is true.
Namespace
Statiq.Core
Containing Type
ThrowExceptionIf

Syntax

public ThrowExceptionIf(Config<bool> condition, Config<string> message)

Parameters

Name Type Description
condition Config<bool> The condition to check.
message Config<string> The message of the exception to throw or null not to throw an exception.