Catches any exceptions thrown by the function and lifts the result into an Outcome. If your function returns an option use catchOption instead
catchOption
Catches any exceptions thrown by the function and lifts the result into an Outcome. The Optional value will be preserved as Present or Absent accordingly.