catch

inline fun catch(block: () -> Node): Node

Tries to execute the given block and returns an Error node if an exception is thrown.

Return

The Node resulting from the execution of the block, or an Error node if an exception is thrown.

Parameters

block

The block to be executed.