check

fun check(message: String, vararg blocks: () -> Unit)

Execute a list of code block collecting the exceptions they may throw, in case there is any error, it throws a MultipleException with all the thrown exceptions.

Parameters

message

Error message.

blocks

Blocks of code executed and checked.