Skip to main content

CliContract.ThrowIfNullOrEmpty Method

Namespace: DensoCreate.Cli.Framework

Description

Checks that the value is not null or an empty string.

Argument

NameTypeDescription
valuestringThe string to be inspected.
messagestringMessage to be displayed if the check detects a problem. (Optional)

Return value

  • void

Exception

NameException classDescription
Assertion violationCliInternalExceptionIf value is null or an empty string