CliContract.ThrowIfFalse Method
Namespace: DensoCreate.Cli.Framework
Description
Throws an exception if the condition evaluates to false.
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 |