Fractal Function Pattern was made as a solution to give a way of handler errors in a isolated way, so if something explot in a function, instead of keep throwing the error through all the system is going to receive an idempotent response so when function's caller receive the response, can determinated of what is going to receive in case something went wrong then take decition of what to do.
To install the extension, open the Extensions view on sidenav, search for Fractal Function to filter results and select Fractal Function Snippets authored by Frani.