tryOrNull

fun <T : Value<*>> tryOrNull(block: ValueFactory.() -> T): T?

Executes the given block and returns its result, or null if the conversion fails.

Return

the result of the block, or null if an exception occurs

Parameters

block

the block to execute, which may throw IllegalRawValueException