CliContract.ThrowIfNullOrEmpty Method
Namespace: DensoCreate.Cli.Framework
Description
Checks that the value is not null or an empty string.
Argument
| Name | Type | Description |
|---|---|---|
| value | string | The string to be inspected. |
| message | string | Message to be displayed if the check detects a problem. (Optional) |
Return value
- void
Exception
| Name | Exception class | Description |
|---|---|---|
| Assertion violation | CliInternalException | If value is null or an empty string |