Skip to main content

CliContract.ThrowIfFalse Method

Namespace: DensoCreate.Cli.Framework

Description

Throws an exception if the condition evaluates to false.

Argument

NameTypeDescription
conditionboolCondition expression expected to be true.
messagestringMessage if the check detects a problem. (Optional)

Return value

  • void

Exception

NameException classDescription
Assertion violationCliInternalExceptionIf condition is false