CliContract.ThrowIfNull Method
Namespace: DensoCreate.Cli.Framework
Description
Checks that a value is not null. If it is null, throws an exception.
Argument
Name | Type | Description |
---|---|---|
value | T | The value to be checked. |
message | string | Message if the check detects a problem. (Optional) |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Assertion violation | CliInternalException | If value is null |