Function to catch and handle exceptions.
The result of the block execution, or an error.
The block of code to execute.