Skip to main content

CliContract.ThrowIfNull Method

Namespace: DensoCreate.Cli.Framework

Description

Checks that a value is not null. If it is null, throws an exception.

Argument

NameTypeDescription
valueTThe value to be checked.
messagestringMessage if the check detects a problem. (Optional)

Return value

  • void

Exception

NameException classDescription
Assertion violationCliInternalExceptionIf value is null