CliContract.Requires Method
Namespace: DensoCreate.Cli.Framework
Description
Checks that the condition expression is true. If it is not true, throws an exception.
Argument
Name | Type | Description |
---|---|---|
condition | bool | Condition expression expected to be true. |
message | string | Message if the check detects a problem. (Optional) |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Assertion violation | CliInternalException | If condition is false |