Function StackCustom function
Catch Exception
Catch and handle exceptions when they occur.
Configuration:
The catch function should be defined as the first function in the root stack or in any function that creates a child stack. Within this function, define the logic for handling errors. You can modify the result to allow the process to continue, or simply log the error and throw it again.