Error Handling
sloth-pipe
allows handling errors that may occur during function execution in the pipeline. When an
error is thrown in a to
or tap
method, the catch
method is invoked if it is defined. This does
not stop the pipeline from executing, but it does allow for graceful error handling.
Example: