Skip to main content

CliContract.Requires Method

Namespace: DensoCreate.Cli.Framework

Description

Checks that the condition expression is true. If it is not true, 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 false