CliContract.ThrowIfTrue Method
Namespace: DensoCreate.Cli.Framework
Description
Checks whether the condition is false. If it is not false, 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 true |