You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't seem to find a way to catch exceptions in a pipe.
For example, if I make an HTTP request (in action or map) and it fails, there is no way to catch it and provide an alternative flow.
I think in Cerebral you could pass a map with success/error keys for the two flows. Maybe something similar could be added here as well?
The text was updated successfully, but these errors were encountered:
We will implement more operators very soon. The op-op spec written for Overmind operators supports error handling as well.
So either:
tryMap(...,{resolved:,rejected:
})``
But also:
```jspipe(action(...),catchError(...),// only runs if previous operator throws erroraction(...),)
I think we probably need both, cause there are different situations where you might want one over the other. But yes, this is in "the pipe" (no pun intended) :)
I can't seem to find a way to catch exceptions in a pipe.
For example, if I make an HTTP request (in action or map) and it fails, there is no way to catch it and provide an alternative flow.
I think in Cerebral you could pass a map with success/error keys for the two flows. Maybe something similar could be added here as well?
The text was updated successfully, but these errors were encountered: