Does Phoenix have something similar to Rails’s rescue_from
?
1 Like
the v1.3 is still in a rc phase, so not officially released, but it seems to work really well already (at least for me). More in this article:
http://swanros.com/phoenix-1-3-is-pure-love-for-api-development/
3 Likes
You can override action
on your controllers no problem, just call super()
wrapped in a try to handle errors specially. I do that in my big project in quite a few areas via a set of helpers.
1 Like