Skip to main content

CliContract.ThrowIfTypeIsNot Method

Namespace: DensoCreate.Cli.Framework

Description​

Checks for an instance of a specific class.

Argument​

NameTypeDescription
valueobjectValue to test.
messagestringMessage if the check detects a problem. (Optional)

Return value​

  • void

Exception​

NameException classDescription
Assertion violationCliInternalExceptionIf value is null or not an instance of the specified type