Skip to main content

CliContract.ThrowIfTrue Method

Namespace: DensoCreate.Cli.Framework

Description​

Checks whether the condition is false. If it is not false, throws an exception.

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 true